I've implemented a multi page graphiti editor, where each page is a
special subclass of DiagramEditor that takes care to share the editing
domain with the other DiagramEditors within the same multi page editor.
However, this gives problems when closing the editor, since the first
DiagramEditor's DefaultUpdateBehavior will dispose the editing domain
and when the following ones try, they throw a NPE. The problem is the
second line, where getOperationHistory() returns null.
>As I explained, my use case is a multi page editor. Perhaps the generic
>parts of it could be integrated into Graphiti itself?
I'm rather reluctant with adding more infrastructure around editors to the
framework at least for now, since you easily get GEF dependencies here. I'm
not sure yet where Graphiti will evolve to, currently there are options like
moving to GEF4 (as soon as it is out) or JavaFX as rendering engines. Fo
rboth options we will pile up more effort when we add stuff around the
But there is a small example on multi page editors in the Graphiti examples.
Have you seen that?