[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Change dynamicaly Figure for Link or Node

Thanks for your answers Boris,


I did the mindmap tutorial, and It's not exactly that I want to do.
Because it's impossible to convert a link to another link, you have to destroy and recreate It...


But Alex Shatalin has given the answer:
news://news.eclipse.org:119/3c3172e6f4928c90e951d3b33ff@xxxxxxxxxxxxxxxx


Best regards,


Hugues Rerolle






Boris Blajer a écrit :
Hi Hugues,

Currently, support for this is only generated in the lite runtime. You would need to define several node (or link) mappings with different visual representations,
associate each with a constraint and a feature seq initializer (constraints should be mutually inclusive and collectively exhaustive, and the feature seq initializers should
initialize the elements to match the corresponding constraint). An example of such a makeup for a link can be found in the MindMap example.


Best regards,
Boris Blajer


"Hugues Rérolle" <yougze@xxxxxxx> wrote in message news:ep8akg$mkr$1@xxxxxxxxxxxxxxxxxxxx
Hi all,

I want to know if it's possible to change the Figure of an element (link
or node) without destroy and recreate it.

For example in a diagram when I change the type of a link I want that the figure changes automatically (type EXTENDS = dash arrow , type INCLUDES = solid arrow, etc...)

Thanks in advance,


Hugues