Change dynamicaly Figure for Link or Node [message #96226] |
Wed, 24 January 2007 14:04  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Re: Change dynamicaly Figure for Link or Node [message #96894 is a reply to message #96808] |
Thu, 25 January 2007 10:51   |
Eclipse User |
|
|
|
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@news .eclipse.org
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@free.fr> wrote in message
> news:ep8akg$mkr$1@utils.eclipse.org...
>> 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
>
>
|
|
|
|
|
|
Re: Change dynamicaly Figure for Link or Node [message #99333 is a reply to message #99223] |
Tue, 30 January 2007 18:32  |
Eclipse User |
|
|
|
Boris Blajer a écrit :
>
> What exactly is your execution problem in the lite version? Do you have any
> stacktrace or any other manifestation of what is going wrong?
>
Hi Boris,
I found the problem, I forgot to clear both options "Use ImapMode" and
"utilize enhanced features of GMF runtime" ;).
Sorry for my lack of understanding.
Regards,
Hugues
|
|
|
Powered by
FUDForum. Page generated in 0.03669 seconds