public interface IModelAPIState
| Modifier and Type | Method and Description |
|---|---|
void |
activateResource(org.eclipse.emf.ecore.resource.Resource aResource)
Activate the specified resource.
|
void |
addBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
Add a batched EMF model listener (i.e., subscribe).
|
void |
addLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Add a low-level EMF model listener (i.e., subscribe).
|
void |
addModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Add an EMF model listener (i.e., subscribe).
|
void |
addPostLoadComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass)
Add a resource/API class to the set to indicate that post-load processing
has been completed for the resource/API class.
|
void |
addResourceListener(IResourceListener aIResourceListener)
Add a Resource listener (i.e., subscribe).
|
void |
addValidateComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass,
java.lang.Object aObjectNotification)
Add a class to indicate that validation processing has been successfully performed
for a given API in response to a given notification.
|
boolean |
beginTransaction()
Method to begin a new transaction using a ChangeRecorder.
|
boolean |
cancelTransaction()
Method to cancel a transaction.
|
void |
closeResource(org.eclipse.emf.ecore.resource.Resource aResource)
Close the specified resource.
|
void |
conditionallyDisplayLoadResults()
Conditionally display messages regarding assets that are upgraded and/or revalidated.
|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI aURIResource)
Using the specified URI, create a new Resource in the editing domain and return
that Resource to the caller.
|
void |
dispatchBatchedNotifications()
Dispatch all queued notifications.
|
void |
dispose()
Dispose of this Model API State instance.
|
boolean |
endTransaction()
Method to end the current transaction.
|
boolean |
endTransaction(boolean abRecord)
Method to end the current transaction.
|
boolean |
endTransaction(boolean abRecord,
org.eclipse.emf.ecore.resource.Resource aResourcePrimary)
Method to end the current transaction.
|
org.eclipse.emf.ecore.resource.Resource |
findResource(org.eclipse.emf.common.util.URI aURI)
Find the Resource corresponding to the specified URI in the ResourceSet.
|
void |
flushCommandStack()
Flush the command stack, removing any undoable change events.
|
java.util.List |
getBatchedModelListeners()
Returns the list of batched model listeners.
|
org.eclipse.emf.common.notify.Adapter |
getChangeNotificationHandler()
Adapter registered with the EditingDomain ResourceSet
|
org.eclipse.emf.ecore.change.util.ChangeRecorder |
getChangeRecorder()
Method to return the current ChangeRecorder.
|
int |
getChangeRecorderUsageCount()
Getter for ChangeRecorder usage count.
|
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain |
getEditingDomain()
Getter for the editing domain.
|
java.util.Locale |
getLocale()
Get API Locale.
|
java.util.List |
getLowLevelModelListeners()
Returns the list of low-level model listeners.
|
IMessageBoxDelegate |
getMessageBoxDelegate()
Get the message box delegate for this API.
|
java.util.List |
getModelListeners()
Returns the list of model listeners.
|
long |
getModificationStamp(org.eclipse.emf.ecore.resource.Resource aResource)
Get the in-memory modification stamp for the specified resource.
|
NotificationBatch |
getNotificationBatch()
Returns the current notification batch.
|
IPersistenceServicesDelegate |
getPersistenceServicesDelegate()
Get the persistence services delegate for this API.
|
IPreferences |
getPreferences()
Return the preferences service.
|
IPreferencesDelegate |
getPreferencesDelegate()
Get the optional preferences delegate for the API.
|
java.util.List |
getResourceListeners()
Returns the list of Resource listeners.
|
IScrollableMessageDelegate |
getScrollableMessageDelegate()
Get the scrollable message delegate for this API.
|
com.corticon.license.IStudioLicense |
getStudioLicense()
Return the Studio License if it exists.
|
IUserInterfaceInfoDelegate |
getUserInterfaceInfoDelegate()
Get the user interface info delegate for this API.
|
boolean |
isBatchNotifications()
Accessor method for indicator that controls EMF model change notification queuing.
|
boolean |
isDebugSysout()
Accessor method for system diagnostics state.
|
boolean |
isDisableRefresh()
Accessor method for disable refresh state.
|
boolean |
isDisableTransactions()
Getter for disable transactions mode.
|
boolean |
isInhibitNotification()
Accessor method for indicator that controls EMF model change notification.
|
boolean |
isOperationModeNormal()
Determine whether operation mode is normal (i.e., no undo/redo in progress).
|
boolean |
isOperationModeRedo()
Determine whether redo is in progress.
|
boolean |
isOperationModeUndo()
Determine whether undo is in progress.
|
boolean |
isPostLoadComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass)
Check to determine whether post-load processing has been completed for the
specified Resource/API class.
|
boolean |
isPostLoadInProgress()
Check to determine whether post load processing is currently in progress.
|
boolean |
isResourceActivated(org.eclipse.emf.ecore.resource.Resource aResource)
Check to determine whether the specified resource is activated.
|
boolean |
isResourceConflict(org.eclipse.emf.ecore.resource.Resource aResource)
Determine whether the given Resource has a modification stamp on disk that differs
from that which is recorded in the API.
|
boolean |
isResourceDemandLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
Check to determine whether the specified resource was demand-loaded via loadResource
as opposed to lazy-loaded.
|
boolean |
isResourceLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
Determine whether the specified resource is loaded.
|
boolean |
isResourceReferenced(org.eclipse.emf.common.util.URI aURI)
Determine whether the resource, specified by a URI, is referenced by any other
resource that is currently in the editing domain.
|
boolean |
isResourceRevalidated(org.eclipse.emf.ecore.resource.Resource aResource)
Determine whether the resource was revalidated in postLoad.
|
boolean |
isResourceUpgraded(org.eclipse.emf.ecore.resource.Resource aResource)
Determine whether the resource was upgraded in postLoad.
|
boolean |
isSaveInProgress()
Check to determine whether save is in progress.
|
boolean |
isScrollableMessageDelegateAvailable()
Check to determine whether scrollable message delegate is available.
|
boolean |
isSuppressMessageBoxes()
Check to determine whether message box display is currently suppressed.
|
boolean |
isSuppressModifiedFlagUpdates()
Check to determine whether updates to the resource modified flag are being suppressed.
|
boolean |
isSuppressPostLoad()
Check to determine whether post load processing is currently suppressed.
|
boolean |
isTransactionInProgress()
Return
true if a transaction is currently in progress. |
boolean |
isValidateComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass,
java.lang.Object aObjectNotification)
Check to determine whether validation processing has been completed for the
specified Resource/API class/Notification.
|
org.eclipse.emf.ecore.resource.Resource |
loadResource(org.eclipse.emf.common.util.URI aURIResource)
Convenience method to load the the editing domain's resource set with the
contents of the specified file.
|
org.eclipse.emf.ecore.resource.Resource |
loadResource(org.eclipse.emf.common.util.URI aURIResource,
boolean abDemandLoad)
Convenience method to load the the editing domain's resource set with the
contents of the specified file.
|
void |
redo()
Redo current changes.
|
org.eclipse.emf.ecore.resource.Resource |
reloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
Reload the specified resource (unload/load).
|
void |
removeBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
Remove an batched EMF model listener (i.e., un-subscribe).
|
void |
removeLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Remove a low-level EMF model listener (i.e., un-subscribe).
|
void |
removeModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Remove an EMF model listener (i.e., un-subscribe).
|
void |
removePostLoadComplete(org.eclipse.emf.ecore.resource.Resource aResource)
Remove all post-load completion records for the specified resource.
|
void |
removeResource(org.eclipse.emf.ecore.resource.Resource aResource)
Remove the specified resource from the resource set.
|
void |
removeResourceListener(IResourceListener aIResourceListener)
Remove a resource listener (i.e., un-subscribe).
|
boolean |
rollbackTransaction()
Rollback the current transaction, leaving the API
in its state as of the first beginTransaction.
|
void |
saveAll()
Save all resource changes.
|
void |
saveResource(org.eclipse.emf.ecore.resource.Resource aResource)
Save the contents of the specified resource to the file system with no
special options.
|
void |
setBatchNotifications(boolean abQueueNotifications)
Setter for indicator that controls EMF model change notification queueing.
|
void |
setChangeRecorder(org.eclipse.emf.ecore.change.util.ChangeRecorder aChangeRecorder)
Method to set the current ChangeRecorder.
|
void |
setChangeRecorderUsageCount(int aiChangeRecorderUsageCount)
Setter for ChangeRecorder usage count.
|
void |
setDebugSysout(boolean abDebugSysout)
Setter to enable system output diagnostics.
|
void |
setDisableRefresh(boolean abDisableRefresh)
Setter to disable/enable automatic refresh of workspace on asset save.
|
void |
setDisableTransactions(boolean abDisableTransactions)
Setter to disable/enable transactions.
|
void |
setEditingDomain(org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain aAdapterFactoryEditingDomain)
Setter for the editing domain.
|
void |
setInhibitNotification(boolean abInhibitNotification)
Setter for indicator that controls EMF model change notification.
|
void |
setLocale(java.util.Locale aLocale)
Set API Locale.
|
void |
setMessageBoxDelegate(IMessageBoxDelegate aIMessageBoxDelegate)
Set the optional message box delegate for the API.
|
void |
setModelListeners(java.util.List aListModelListeners)
Set the list of model listeners.
|
void |
setModificationStamp(org.eclipse.emf.ecore.resource.Resource aResource,
long alModificationStamp)
Set the modification stamp for the specified Resource.
|
void |
setPersistenceServicesDelegate(IPersistenceServicesDelegate aIPersistenceServicesDelegate)
Set the optional persistence services delegate for the API.
|
void |
setPostLoadInProgress(boolean abPostLoadInProgress)
Setter for post load in progress indicator.
|
void |
setPreferencesDelegate(IPreferencesDelegate aIPreferencesDelegate)
Set the optional preferences delegate for the API.
|
void |
setSaveInProgress(boolean abSaveInProgress)
Setter for save in progress indicator.
|
void |
setScrollableMessageDelegate(IScrollableMessageDelegate aIScrollableMessageDelegate)
Set the optional scrollable messages delegate for the API.
|
void |
setSuppressMessageBoxes(boolean abSuppressMessageBoxes)
Setter for suppress message boxes indicator.
|
void |
setSuppressModifiedFlagUpdates(boolean abSuppressModifiedFlagUpdates)
Setter for suppress modified flag updates indicator.
|
void |
setSuppressPostLoad(boolean abSuppressPostLoad)
Setter for suppress post load indicator.
|
void |
setUserInterfaceInfoDelegate(IUserInterfaceInfoDelegate aIUserInterfaceInfoDelegate)
Set the optional user interface info delegate for the API.
|
void |
signalRevalidated(org.eclipse.emf.ecore.resource.Resource aResource)
Signal that the specified Resource was revalidated in postLoad by recording it
LoadResults.
|
void |
signalUpgraded(org.eclipse.emf.ecore.resource.Resource aResource)
Signal that the specified Resource was upgraded in postLoad by recording it
LoadResults.
|
void |
undo()
Undo current changes.
|
void |
unloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
Unload the specified resource.
|
void activateResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be activated.void addModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to add to subscription list.void addBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
aIBatchedChangedListener - Batched listener instance to add to subscription list.void addLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to add to subscription list.void addPostLoadComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass)
aResource - Resource for which post-load processing has been completed.aClass - API class for which post-load processing has been completed.void addResourceListener(IResourceListener aIResourceListener)
aIResourceListener - Resource listener instance to add to subscription list.void addValidateComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass,
java.lang.Object aObjectNotification)
aResource - Resource for which validation processing has been completed.aClass - API class for which validation processing has been completed.aObjectNotification - Notification object instance.boolean beginTransaction()
true if transaction successfully started.boolean cancelTransaction()
true if transaction successfully canceled.void closeResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be closed.void conditionallyDisplayLoadResults()
org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI aURIResource)
aURIResource - URI of Resource to be created.void dispatchBatchedNotifications()
void dispose()
boolean endTransaction()
true if transaction successfully completed.boolean endTransaction(boolean abRecord)
abRecord - true to record transaction in command stack.true if transaction successfully completed.boolean endTransaction(boolean abRecord,
org.eclipse.emf.ecore.resource.Resource aResourcePrimary)
abRecord - true to record transaction in command stack.aResourcePrimary - Optional reference to primary resource in API that created this transaction.true if transaction successfully completed.org.eclipse.emf.ecore.resource.Resource findResource(org.eclipse.emf.common.util.URI aURI)
aURI - URI to locate.null.void flushCommandStack()
org.eclipse.emf.common.notify.Adapter getChangeNotificationHandler()
org.eclipse.emf.ecore.change.util.ChangeRecorder getChangeRecorder()
int getChangeRecorderUsageCount()
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain getEditingDomain()
java.util.Locale getLocale()
IMessageBoxDelegate getMessageBoxDelegate()
null if none has been specified.java.util.List getModelListeners()
java.util.List getBatchedModelListeners()
java.util.List getLowLevelModelListeners()
IPersistenceServicesDelegate getPersistenceServicesDelegate()
IPreferences getPreferences()
IPreferencesDelegate getPreferencesDelegate()
java.util.List getResourceListeners()
long getModificationStamp(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource whose modification stamp is to be returned.boolean isInhibitNotification()
true if EMF model change notifications are inhibited.boolean isPostLoadInProgress()
true if post load processing is currently in progress.boolean isOperationModeNormal()
true if no undo/redo is in progress.boolean isOperationModeUndo()
true if undo is in progress.boolean isOperationModeRedo()
true if redo is in progress.boolean isPostLoadComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass)
aResource - Resource to test.aClass - API class to test.true if post load processing has been completed for the Resource/API.boolean isBatchNotifications()
true if EMF model change notifications are queued.boolean isResourceActivated(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to test.true if the specified resource is activated.boolean isResourceConflict(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource whose time stamp should be tested.true if disk resource modification stamp does not match API records.boolean isResourceDemandLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to test.true if the specified resource was demand-loaded.boolean isResourceLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to test.true if specified resource is loaded.boolean isResourceReferenced(org.eclipse.emf.common.util.URI aURI)
aURI - URI of referenced resource.true if that resource is referenced by any other.boolean isResourceUpgraded(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be tested.true if Resource was upgraded in postLoad.boolean isResourceRevalidated(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be tested.true if Resource was revalidated in postLoad.boolean isSuppressModifiedFlagUpdates()
true if updates to modified flag are being suppressed.boolean isSuppressMessageBoxes()
true if message box display is currently suppressed.boolean isSuppressPostLoad()
true if post load processing is currently suppressed.boolean isTransactionInProgress()
true if a transaction is currently in progress.true if a transaction is currently in progress.boolean isValidateComplete(org.eclipse.emf.ecore.resource.Resource aResource,
java.lang.Class aClass,
java.lang.Object aObjectNotification)
aResource - Resource to test.aClass - API class to test.aObjectNotification - Notification object.true if validation has been completed for the Resource/API/Notification.void setChangeRecorder(org.eclipse.emf.ecore.change.util.ChangeRecorder aChangeRecorder)
aChangeRecorder - ChangeRecorder instance.void setChangeRecorderUsageCount(int aiChangeRecorderUsageCount)
aChangeRecorder - ChangeRecorder usage count.void setDebugSysout(boolean abDebugSysout)
abDebugSysout - true to enable diagnostics.boolean isDebugSysout()
true if diagnostics are enabled.boolean isDisableTransactions()
true if transactions are disabled.boolean isDisableRefresh()
true if refreshing of Eclipse workspace on resource save is disabled.boolean isSaveInProgress()
true if save is in progress.boolean isScrollableMessageDelegateAvailable()
true if scrollable message delegate is available.org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI aURIResource)
aURIResource - URI of resource to load.null if an error occurs.org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI aURIResource,
boolean abDemandLoad)
aURIResource - URI of resource to load.abDemandLoad - true to indicate that Resource is should be considered demand-loaded.null if an error occurs.void redo()
org.eclipse.emf.ecore.resource.Resource reloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be reloaded.void removeModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to remove from subscription list.void removeBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
aIBatchedChangedListener - Listener instance to remove from subscription list.void removeLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to remove from subscription list.void removePostLoadComplete(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource whose post-load records are to be removed.void removeResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be removed.void removeResourceListener(IResourceListener aIResourceListener)
aIResourceListener - Resource listener instance to remove from subscription list.boolean rollbackTransaction()
void saveAll()
void saveResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource instance to savevoid setDisableTransactions(boolean abDisableTransactions)
abDisableTransactions - true if transactions should be disabledvoid setDisableRefresh(boolean abDisableRefresh)
abDisableRefresh - true if refresh workspace should be disabled.void setEditingDomain(org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain aAdapterFactoryEditingDomain)
aAdapterFactoryEditingDomain - Instance of the editing domain.void setLocale(java.util.Locale aLocale)
Locale - for this API.void setInhibitNotification(boolean abInhibitNotification)
abInhibitNotification - true to inhibit EMF model change notifications.void setMessageBoxDelegate(IMessageBoxDelegate aIMessageBoxDelegate)
aIMessageBoxDelegate - Message box delegate instance.void setModelListeners(java.util.List aListModelListeners)
aListModelListeners - List of model listeners.void setPersistenceServicesDelegate(IPersistenceServicesDelegate aIPersistenceServicesDelegate)
aIPersistenceServicesDelegate - Persistence services delegate instance.void setPreferencesDelegate(IPreferencesDelegate aIPreferencesDelegate)
aIPreferencesDelegate - Preferences delegate instance.void setPostLoadInProgress(boolean abPostLoadInProgress)
abPostLoadInProgress - true to indicate that post load is in progress.void setModificationStamp(org.eclipse.emf.ecore.resource.Resource aResource,
long alModificationStamp)
aResource - Resource whose modification stamp is to be set.aDate - Time stamp of save.void setBatchNotifications(boolean abQueueNotifications)
abQueueNotifications - true to queue EMF model change notifications.void setSaveInProgress(boolean abSaveInProgress)
abSaveInProgress - true to set save in progress indicator.void setScrollableMessageDelegate(IScrollableMessageDelegate aIScrollableMessageDelegate)
aIScrollableMessageDelegate - Message box delegate instance.void setSuppressModifiedFlagUpdates(boolean abSuppressModifiedFlagUpdates)
abSuppressModifiedFlagUpdates - true to set suppress modified flag updates indicator.void setSuppressMessageBoxes(boolean abSuppressMessageBoxes)
abSuppressMessageBoxes - true to set suppress message boxes indicator.void setSuppressPostLoad(boolean abSuppressPostLoad)
abSuppressPostLoad - true to set suppress post load indicator.void setUserInterfaceInfoDelegate(IUserInterfaceInfoDelegate aIUserInterfaceInfoDelegate)
aIUserInterfaceInfoDelegate - User interface info delegate instance.void signalRevalidated(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource that was revalidated.void signalUpgraded(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource that was upgraded.void undo()
void unloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to unload.NotificationBatch getNotificationBatch()
IScrollableMessageDelegate getScrollableMessageDelegate()
com.corticon.license.IStudioLicense getStudioLicense()
IUserInterfaceInfoDelegate getUserInterfaceInfoDelegate()
null if none has been specified.Copyright © 2005-2013 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.