org.eclipse.graphiti.ui.editor
Class DefaultUpdateBehavior.DefaultUpdateAdapter

java.lang.Object
  extended by AdapterImpl
      extended by org.eclipse.graphiti.ui.editor.DefaultUpdateBehavior.DefaultUpdateAdapter
Enclosing class:
DefaultUpdateBehavior

protected class DefaultUpdateBehavior.DefaultUpdateAdapter
extends AdapterImpl

The default implementation of the update adapter that cares about refreshing the diagram editor in case of resource changes. The default implementation will trigger the update of the diagram editor in case the EMF resource has been changed externally; in case the resource was deleted the default implementation will close the editor if there are no unsaved changes or ask the user what to do in case of unsaved changes.

Since:
0.11

Constructor Summary
protected DefaultUpdateBehavior.DefaultUpdateAdapter()
           
 
Method Summary
protected  void closeEditorAsynchronously()
          Triggers closing of the editor by scheduling an asynchronous call to DefaultUpdateBehavior.closeContainer().
 void notifyChanged(Notification msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUpdateBehavior.DefaultUpdateAdapter

protected DefaultUpdateBehavior.DefaultUpdateAdapter()
Method Detail

notifyChanged

public void notifyChanged(Notification msg)

closeEditorAsynchronously

protected void closeEditorAsynchronously()
Triggers closing of the editor by scheduling an asynchronous call to DefaultUpdateBehavior.closeContainer().



Copyright (c) SAP AG 2005, 2012.