[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

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