Runtime

org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document
Class FileDiagramModificationListener

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramModificationListener
              extended by org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.FileDiagramModificationListener
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

public class FileDiagramModificationListener
extends DiagramModificationListener

Listener for modification events on a diagram. This listener is well suited for detecting save events.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
FileDiagramModificationListener(FileDocumentProvider documentProvider, DiagramDocument document, IFileEditorInput input)
          Constructs a modification listener which listens to modifications on a diagram and handles saving of files.
 
Method Summary
 boolean isAdapterForType(java.lang.Object type)
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
           
 
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramModificationListener
getDiagramDocument, getEditingDomain, getTarget, setTarget, startListening, stopListening, unsetTarget
 
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
addAdapter, basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, resolve, selfAdapt, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDiagramModificationListener

public FileDiagramModificationListener(FileDocumentProvider documentProvider,
                                       DiagramDocument document,
                                       IFileEditorInput input)
Constructs a modification listener which listens to modifications on a diagram and handles saving of files.

Parameters:
documentProvider - the FileDocumentProvider to handle the document being saved
document - the DiagramDocument being saved
input - the IFileEditorInput that contains the file being saved
Method Detail

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
Overrides:
isAdapterForType in class DiagramModificationListener

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter
Overrides:
notifyChanged in class DiagramModificationListener

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.