DiagramEditor inside MultiPageEditor? [message #636357] |
Sun, 31 October 2010 07:27  |
Eclipse User |
|
|
|
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 18:36   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
|
|
Re: DiagramEditor inside MultiPageEditor? [message #659605 is a reply to message #659574] |
Mon, 14 March 2011 15:23  |
Eclipse User |
|
|
|
A few years ago, our team was developing a few xml editors. The original solution we took was using EMF for the model and editor. We ran into many issues with that approach and we ended up re-writing the model and thus the editor. The re-wrote model is based on the simple w3c DOM model and uses Java annotations. We also developed a declarative approach for the form based xml editor.
So to answer your question, Sapphire based models and EMF based models don't interact. Sapphire models and editors are designed to be a replacement for the EMF based models and xml editors. We have developed quite a few xml editors using Sapphire and we are very happy with them in terms of ease of development, productivity and consistency of UI of different editors.
|
|
|
Powered by
FUDForum. Page generated in 0.07602 seconds