|Diagram Editor doesn't close when file is deleted [message #689566]
||Mon, 27 June 2011 20:58
| Brian Fitzpatrick
Registered: July 2009
I've only just recently started diving into some of the gooey goodness of Graphiti and have run into a small problem I haven't found an example for yet.
I have an open diagram in an editor that extends org.eclipse.graphiti.ui.editor.DiagramEditor. When I delete the file that's open, the editor should close as is done with other editor types in Eclipse.
I looked at implementing a solution similar to what's described here for MultiPageEditor, but obviously there's no AbstractTextEditor#handleEditorInputChanged() method to override.
Is there another method to override? It seems there's a Diagram Resource Set Listener in the DiagramEditorInternal class, but it's private and I don't see a good way to hook into that mechanism.
Thanks in advance for any help and guidance here.
[Updated on: Mon, 27 June 2011 20:58]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02534 seconds