Runtime

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

java.lang.Object
  extended byorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramModificationListener
      extended byorg.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.FileDiagramModificationListener

public class FileDiagramModificationListener
extends DiagramModificationListener

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


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
 void startListening()
           
 void stopListening()
           
 
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramModificationListener
getEditingDomain
 
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

startListening

public void startListening()
Overrides:
startListening in class DiagramModificationListener

stopListening

public void stopListening()
Overrides:
stopListening in class DiagramModificationListener

Runtime

Guidelines for using Eclipse APIs.

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