|
||||||||||
| 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.canonical.AbstractNotationModelRefresher
public abstract class AbstractNotationModelRefresher
Listens to the given transactional editing domain in order to update the notational model to reflect changes in the domain model.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.ResourceSetListener |
|---|
org.eclipse.emf.transaction.ResourceSetListener.Internal |
| Constructor Summary | |
|---|---|
AbstractNotationModelRefresher()
|
|
| Method Summary | |
|---|---|
abstract org.eclipse.emf.common.command.Command |
buildRefreshNotationModelCommand()
Creates and returns the command that will update the notational model to reflect changes in the domain model. |
protected abstract org.eclipse.emf.transaction.NotificationFilter |
createFilter()
|
protected abstract CreateNotationalElementCommand |
getCreateNotationalElementCommand(ElementDescriptor descriptor)
Returns a command that will create a notational element to represent the domain model element described by the given ElementDescriptor. |
org.eclipse.emf.transaction.NotificationFilter |
getFilter()
|
protected abstract org.eclipse.gmf.runtime.notation.View |
getHost()
|
org.eclipse.gmf.runtime.notation.View |
getView()
|
protected int |
getVisualID(org.eclipse.gmf.runtime.notation.View view)
|
void |
install(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Deprecated. Use TransactionalUpdateManager. |
boolean |
isInstalled()
Deprecated. Use TransactionalUpdateManager. |
boolean |
isPrecommitOnly()
|
protected abstract boolean |
shouldCreateView(ElementDescriptor descriptor)
|
protected boolean |
shouldHandleNotification(org.eclipse.emf.common.notify.Notification nofitication)
This method may be overridden in subclasses to filter unneeded notifications that passed the NotificationFilter. |
org.eclipse.emf.common.command.Command |
transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
|
void |
uninstall()
Deprecated. Use TransactionalUpdateManager. |
| Methods inherited from class org.eclipse.emf.transaction.ResourceSetListenerImpl |
|---|
getTarget, isAggregatePrecommitListener, isPostcommitOnly, resourceSetChanged, setTarget, unsetTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.transaction.ResourceSetListener |
|---|
isAggregatePrecommitListener, isPostcommitOnly, resourceSetChanged |
| Constructor Detail |
|---|
public AbstractNotationModelRefresher()
| Method Detail |
|---|
public final org.eclipse.gmf.runtime.notation.View getView()
getView in interface INotationModelRefresherpublic void install(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
TransactionalUpdateManager.
public boolean isInstalled()
TransactionalUpdateManager.
public void uninstall()
TransactionalUpdateManager.
public boolean isPrecommitOnly()
isPrecommitOnly in interface org.eclipse.emf.transaction.ResourceSetListenerisPrecommitOnly in class org.eclipse.emf.transaction.ResourceSetListenerImplpublic org.eclipse.emf.common.command.Command transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
transactionAboutToCommit in interface org.eclipse.emf.transaction.ResourceSetListenertransactionAboutToCommit in class org.eclipse.emf.transaction.ResourceSetListenerImplpublic org.eclipse.emf.transaction.NotificationFilter getFilter()
getFilter in interface org.eclipse.emf.transaction.ResourceSetListenergetFilter in class org.eclipse.emf.transaction.ResourceSetListenerImplpublic abstract org.eclipse.emf.common.command.Command buildRefreshNotationModelCommand()
buildRefreshNotationModelCommand in interface INotationModelRefresherprotected boolean shouldHandleNotification(org.eclipse.emf.common.notify.Notification nofitication)
protected int getVisualID(org.eclipse.gmf.runtime.notation.View view)
protected abstract CreateNotationalElementCommand getCreateNotationalElementCommand(ElementDescriptor descriptor)
ElementDescriptor.
protected abstract org.eclipse.emf.transaction.NotificationFilter createFilter()
protected abstract boolean shouldCreateView(ElementDescriptor descriptor)
protected abstract org.eclipse.gmf.runtime.notation.View getHost()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||