DiagramEditor.isDirty() + FileDiagramModificationListener [message #76589] |
Fri, 10 November 2006 09:27  |
Eclipse User |
|
|
|
Hello!
Currently FileDiagramModificationListener is responsible for listening resource
changes and setting editor state to dirty. The problem with this approach
is: editor will not became “!isDirty()” on undoing modification(s). Different
approach used in EMF-generated editor - BasicCommandStack.isSaveNeeded()
called to determine editor dirty state. As a result, editor.isDirty() returns
false if all the operations performed on current CommandStack since last
saving will be undone. Can we use the same approach in GMF diagram editor
or are there any ideas forcing GMF to listen for the resource changes?
-----------------
Alex Shatalin
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04187 seconds