GMF Editor should use additional notation model [message #202962] |
Thu, 21 August 2008 19:49 |
Arne Schipper Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hi folks.
I'm trying to enhance an existing GMF-Editor. I created a state machine
editor, works fine, Statemachines are beeing saved as *.ssm and
*.ssm_diagram.
No what I want to do, is to put another "layer" over the existing editor
which should be able to edit properties of the editparts, and save them
into another file, e.g. *.ssm_layouthints.
I know there is a post similar to this problem
( news://news.eclipse.org:119/3d7e00c0e937d0562bd95cab0079497f $1@www.eclipse.org),
but in that case everything is stored in the notation model and
therefore the existing editor has to be altered. That is a thing I want
to avoide, because this extra functionality I want to develop is
intended to run with any editor later on. (Not only with the mentioned
state machine editor).
Short explanation what it is going to be:
I want to be able to annotate the editparts, or better the nodes, of a
diagram with special layout hints. E.g. I want to select a bunch of
nodes into a group and annotate this group with the hint "vertical, node
distance 20px". Another group might be annotated with the hint "circle".
All this information will be fed into a layouter which should do the
appropriate rendering according to the hints. As I'm going to develop
this as a plugin which is intended to run with any editor, changes to
the domain and even the notation model should be avoided, as well as to
the editor.
I hope someone can provide me some hints.
Cheers, arne
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03249 seconds