org.eclipse.gmf.runtime.lite.edit.parts.update.canonical
Class OwnedLinksNotationModelRefresher

java.lang.Object
  extended by org.eclipse.emf.transaction.ResourceSetListenerImpl
      extended by org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher
          extended by org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.OwnedLinksNotationModelRefresher
All Implemented Interfaces:
EventListener, org.eclipse.emf.transaction.ResourceSetListener, org.eclipse.emf.transaction.ResourceSetListener.Internal, INotationModelRefresher

public abstract class OwnedLinksNotationModelRefresher
extends AbstractNotationModelRefresher


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.ResourceSetListener
org.eclipse.emf.transaction.ResourceSetListener.Internal
 
Constructor Summary
OwnedLinksNotationModelRefresher(IViewService viewService)
           
 
Method Summary
 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  List getNotationalChildLinks()
           
protected abstract  List getSemanticChildLinks()
           
protected  boolean isValidLinkSource(org.eclipse.gmf.runtime.notation.View sourceCandidate, LinkDescriptor linkDescriptor)
          Returns whether the given view can be source of the given link.
protected  boolean isValidLinkTarget(org.eclipse.gmf.runtime.notation.View targetCandidate, LinkDescriptor linkDescriptor)
          Returns whether the given view can be source of the given link.
 
Methods inherited from class org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher
createFilter, getCreateNotationalElementCommand, getFilter, getHost, getView, getVisualID, install, isInstalled, isPrecommitOnly, shouldCreateView, shouldHandleNotification, transactionAboutToCommit, uninstall
 
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

OwnedLinksNotationModelRefresher

public OwnedLinksNotationModelRefresher(IViewService viewService)
Method Detail

buildRefreshNotationModelCommand

public org.eclipse.emf.common.command.Command buildRefreshNotationModelCommand()
Description copied from class: AbstractNotationModelRefresher
Creates and returns the command that will update the notational model to reflect changes in the domain model.

Specified by:
buildRefreshNotationModelCommand in interface INotationModelRefresher
Specified by:
buildRefreshNotationModelCommand in class AbstractNotationModelRefresher

getSemanticChildLinks

protected abstract List getSemanticChildLinks()

getNotationalChildLinks

protected abstract List getNotationalChildLinks()

isValidLinkSource

protected boolean isValidLinkSource(org.eclipse.gmf.runtime.notation.View sourceCandidate,
                                    LinkDescriptor linkDescriptor)
Returns whether the given view can be source of the given link.


isValidLinkTarget

protected boolean isValidLinkTarget(org.eclipse.gmf.runtime.notation.View targetCandidate,
                                    LinkDescriptor linkDescriptor)
Returns whether the given view can be source of the given link.



Copyright © 2012. All Rights Reserved.