Runtime

org.eclipse.gmf.runtime.diagram.ui.resources.editor.document
Class DiagramModificationListener

java.lang.Object
  extended byorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramModificationListener
Direct Known Subclasses:
FileDiagramModificationListener

public class DiagramModificationListener
extends java.lang.Object

Listener for modification events on a diagram. This listener is well suited for detecting events that make a diagram dirty.


Constructor Summary
DiagramModificationListener(AbstractDocumentProvider documentProvider, DiagramDocument document)
          Constructs a modification listener which listens to modifications on a diagram.
 
Method Summary
protected  org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
          Gets the editingDomain.
 void startListening()
           
 void stopListening()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramModificationListener

public DiagramModificationListener(AbstractDocumentProvider documentProvider,
                                   DiagramDocument document)
Constructs a modification listener which listens to modifications on a diagram.

Parameters:
documentProvider - the FileDocumentProvider to handle the document being dirtied
document - the DiagramDocument being dirtied
Method Detail

startListening

public void startListening()

stopListening

public void stopListening()

getEditingDomain

protected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
Gets the editingDomain.

Returns:
Returns the editingDomain.

Runtime

Guidelines for using Eclipse APIs.

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