DiagramEditor inside MultiPageEditor? [message #636357] |
Sun, 31 October 2010 11:27 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Hello,
I'm wondering whether it is possible to use the DiagramEditor as a page inside
a MultiPageEditor. I've already implemented this for GMF generated editors
(see article
http://www.eclipse.org/articles/article.php?file=Article-Int egrating-EMF-GMF-Editors/index.html),
and I'm thinking about moving one of my projects from GMF to Graphiti. For
this, I'd need two pages for different diagrams of the same diagram type (or
at least, with the same feature configuration). From a first look at
DiagramEditorInternal, this should be possible, but there are a few things I
might have to adapt (like command registrations). Has anyone attempted to use
the DiagramEditor as a MultiPageEditor page before? Since Graphiti is still in
incubation, would it be possible to create an intermediate superclass of
DiagramEditorInternal that contains all the stuff that standalone editors and
MultiPageEditor pages have in common?
Thanks
Volker Wegert
--
* Volker Wegert * http://www.volker-wegert.de/contact *
"With sufficient thrust, pigs fly just fine. However, this is not necessarily
a good idea. It is hard to be sure where they are going to land, and it could
be dangerous sitting under them as they fly overhead." (RFC 1925)
|
|
|
Re: DiagramEditor inside MultiPageEditor? [message #636569 is a reply to message #636357] |
Mon, 01 November 2010 22:36 |
Shenxue Zhou Messages: 60 Registered: July 2009 |
Member |
|
|
Volker Wegert wrote on Sun, 31 October 2010 05:27 | Hello,
I'm wondering whether it is possible to use the DiagramEditor as a page inside
a MultiPageEditor. I've already implemented this for GMF generated editors
(see article
http://www.eclipse.org/articles/article.php?file=Article-Int egrating-EMF-GMF-Editors/index.html),
and I'm thinking about moving one of my projects from GMF to Graphiti. For
this, I'd need two pages for different diagrams of the same diagram type (or
at least, with the same feature configuration). From a first look at
DiagramEditorInternal, this should be possible, but there are a few things I
might have to adapt (like command registrations). Has anyone attempted to use
the DiagramEditor as a MultiPageEditor page before? Since Graphiti is still in
incubation, would it be possible to create an intermediate superclass of
DiagramEditorInternal that contains all the stuff that standalone editors and
MultiPageEditor pages have in common?
Thanks
Volker Wegert
--
* Volker Wegert * http://www.volker-wegert.de/contact *
"With sufficient thrust, pigs fly just fine. However, this is not necessarily
a good idea. It is hard to be sure where they are going to land, and it could
be dangerous sitting under them as they fly overhead." (RFC 1925)
|
I've tried to put Graphiti diagram editor inside a multi-page editor. In my multi-editor, I also have an xml form editor and xml source editor (my domain object is persisted as an xml document). The three editors share the same model objects. I did bridge between different editor inputs and I had listeners on the model objects (mine is non-emf based).
Overall, things work fine.
Shenxue
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05216 seconds