[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Changing the OpenDiagramBehaviour

Hello all,

I want to modify attributes from the OpenDiagramBehaviour, is that possible?
For example in the Open???DiagramEditPolicy there is a private static
class OpenDiagramCommand with the editor id and the diagram kind.
Theses attributes are protected but I need them in another
OpenDiagramBehaviour, so I wanted to change these modifiers.
I searched for other entries in this newsgroup but unfortunately there
is no entry with this kind of question. Additionally I looked into the
gmfgen file for any possibilities, but without success. Maybe I didn't
see the option?
Or is the only chance to write a dynamic template (I never used them in
the past)? Which way is the common one, if both are possible?

My intention: I have an object (referencing object, non-containment),
which should open the correct diagram (from the referenced object) by
double click.

Thanks for your answers

Dennis