|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.transaction.ResourceSetListenerImpl
org.eclipse.gmf.runtime.lite.edit.parts.update.TransactionalUpdateManager
public class TransactionalUpdateManager
Manages update for the diagram by requesting refresh of affected edit parts at the end of each transaction. Also manages notation model refreshers which are allowed to contribute their trigger commands before the transaction is committed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.ResourceSetListener |
---|
org.eclipse.emf.transaction.ResourceSetListener.Internal |
Constructor Summary | |
---|---|
TransactionalUpdateManager(org.eclipse.gef.EditPartViewer editPartViewer)
Creates an instance of TransactionalUpdateManager . |
Method Summary | |
---|---|
void |
addNotationModelRefresher(INotationModelRefresher refresher)
|
void |
addUpdatableEditPart(org.eclipse.emf.ecore.EObject source,
IUpdatableEditPart listener)
Registers the given updatable edit part as a listener to the given EObject . |
org.eclipse.emf.common.command.Command |
buildRefreshNotationModelCommand()
Returns the command that, if applied, synchronizes the notational model with the underlying domain model. |
void |
dispose()
|
protected Collection<IUpdatableEditPart> |
findAffectedParts(org.eclipse.emf.common.notify.Notification msg)
|
protected org.eclipse.gef.EditPartViewer |
getEditPartViewer()
|
protected Collection<IUpdatableEditPart> |
getRegisteredListeners(org.eclipse.emf.ecore.EObject source)
|
protected Collection<IUpdatableEditPart> |
getRegisteredListeners(org.eclipse.emf.common.notify.Notification msg)
|
void |
install(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Installs the update manager as a listener to the given editing domain. |
boolean |
isCanonicalStyleEvent(org.eclipse.emf.common.notify.Notification msg)
|
protected boolean |
isFiltered(org.eclipse.gmf.runtime.notation.View view)
|
boolean |
isInstalled()
Tells whether the update manager is installed. |
boolean |
isNotationModelRefresherInstalled(INotationModelRefresher refresher)
|
protected void |
processRefreshers(org.eclipse.gmf.runtime.lite.edit.parts.update.ComposeableRefresherImpl affectedRefreshers,
IUpdatableEditPart next,
org.eclipse.emf.common.notify.Notification msg)
|
void |
removeNotationModelRefresher(INotationModelRefresher refresher)
|
void |
removeUpdatableEditPart(org.eclipse.emf.ecore.EObject source,
IUpdatableEditPart listener)
Unregisters the given updatable edit part as a listener to the given EObject . |
void |
resourceSetChanged(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
|
protected boolean |
shouldNotifyParent(org.eclipse.emf.common.notify.Notification msg)
|
org.eclipse.emf.common.command.Command |
transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
|
void |
uninstall()
Uninstalls the update manager. |
Methods inherited from class org.eclipse.emf.transaction.ResourceSetListenerImpl |
---|
getFilter, getTarget, isAggregatePrecommitListener, isPostcommitOnly, isPrecommitOnly, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalUpdateManager(org.eclipse.gef.EditPartViewer editPartViewer)
TransactionalUpdateManager
.
Method Detail |
---|
public void install(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
public boolean isInstalled()
public void uninstall()
public org.eclipse.emf.common.command.Command buildRefreshNotationModelCommand()
public void addNotationModelRefresher(INotationModelRefresher refresher)
public void removeNotationModelRefresher(INotationModelRefresher refresher)
public boolean isNotationModelRefresherInstalled(INotationModelRefresher refresher)
public void addUpdatableEditPart(org.eclipse.emf.ecore.EObject source, IUpdatableEditPart listener)
EObject
.
public void removeUpdatableEditPart(org.eclipse.emf.ecore.EObject source, IUpdatableEditPart listener)
EObject
.
public void dispose()
protected final Collection<IUpdatableEditPart> getRegisteredListeners(org.eclipse.emf.ecore.EObject source)
protected final Collection<IUpdatableEditPart> getRegisteredListeners(org.eclipse.emf.common.notify.Notification msg)
public org.eclipse.emf.common.command.Command transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent event) throws org.eclipse.emf.transaction.RollbackException
transactionAboutToCommit
in interface org.eclipse.emf.transaction.ResourceSetListener
transactionAboutToCommit
in class org.eclipse.emf.transaction.ResourceSetListenerImpl
org.eclipse.emf.transaction.RollbackException
public void resourceSetChanged(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
resourceSetChanged
in interface org.eclipse.emf.transaction.ResourceSetListener
resourceSetChanged
in class org.eclipse.emf.transaction.ResourceSetListenerImpl
public boolean isCanonicalStyleEvent(org.eclipse.emf.common.notify.Notification msg)
protected void processRefreshers(org.eclipse.gmf.runtime.lite.edit.parts.update.ComposeableRefresherImpl affectedRefreshers, IUpdatableEditPart next, org.eclipse.emf.common.notify.Notification msg)
protected final org.eclipse.gef.EditPartViewer getEditPartViewer()
protected Collection<IUpdatableEditPart> findAffectedParts(org.eclipse.emf.common.notify.Notification msg)
protected boolean shouldNotifyParent(org.eclipse.emf.common.notify.Notification msg)
protected boolean isFiltered(org.eclipse.gmf.runtime.notation.View view)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |