| Can we dynamically add links to the connection arrow list? [message #178789] |
Mon, 24 March 2008 18:55  |
Eclipse User |
|
|
|
We have a success link defined, but for a particular element (lets call
it a decision),we would like to have multiple named success links that
are dynamically generated based on some properties of the decision element.
We would like the popup list that is displayed when the connection arrow
is dragged/dropped to have the particular links based on the properties
(where a and b would be entries in that list)
Like so:
__________
| |-----a-----> ...
| Decision |
|__________|-----b-----> ...
Does this make sense? If not feel free to ask any questions and I'll try
to clarify,
Thanks
Brian Jakubik
|
|
|
|
| Re: Can we dynamically add links to the connection arrow list? [message #179024 is a reply to message #178976] |
Tue, 25 March 2008 17:27   |
Eclipse User |
|
|
|
The problem with this is that the decision element in our case can be
dynamic, for example, it can have * named conditions,
like a=1 name=cond1, a=2 name=cond2,... where they are set through a
properties page, and are dynamic, so based on how many we conds we have,
we would like to see corresponding success links in the popup menu, such
as "cond1 link", "cond2 link", ... the hope is that we would use the
same success link, but set the name attribute on the link based on the
one that was chosen, in a one step process...
does that make sense?
____________ ___________________________
| |----------> | create cond1 success link |
| Decision | | create cond2 success link |
| | | create cond3 success link |
| a=1, cond1 | | create ... success link |
| a=2, cond2 | |___________________________|
| a=3, cond3 |
| ... |
|____________|
Hope this clarifies a few things...
Thanks
Brian Jakubik
Alex Shatalin wrote:
> Hello Brian,
>
> AFAIU, all you need is several link mappings for different link types
> (A/B/C) with corresponding initializers and constraints (if necessary)
> associated with the same toolbar tool in .gmfmap model. As a result
> you'll be able to generate diagram allowing you to create link between
> two nodes asking for the applicable link types prior to the link creation.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
| Re: Can we dynamically add links to the connection arrow list? [message #180232 is a reply to message #179024] |
Tue, 01 April 2008 15:29  |
Eclipse User |
|
|
|
Brian,
If you want to try modifying the generated code, take a look at your
generated ModelingAssistantProvider. You should be able to modify this
to suit your needs.
- Cherie
Brian Jakubik wrote:
> The problem with this is that the decision element in our case can be
> dynamic, for example, it can have * named conditions,
> like a=1 name=cond1, a=2 name=cond2,... where they are set through a
> properties page, and are dynamic, so based on how many we conds we have,
> we would like to see corresponding success links in the popup menu, such
> as "cond1 link", "cond2 link", ... the hope is that we would use the
> same success link, but set the name attribute on the link based on the
> one that was chosen, in a one step process...
>
> does that make sense?
>
> ____________ ___________________________
> | |----------> | create cond1 success link |
> | Decision | | create cond2 success link |
> | | | create cond3 success link |
> | a=1, cond1 | | create ... success link |
> | a=2, cond2 | |___________________________|
> | a=3, cond3 |
> | ... |
> |____________|
>
> Hope this clarifies a few things...
> Thanks
> Brian Jakubik
>
>
> Alex Shatalin wrote:
>> Hello Brian,
>>
>> AFAIU, all you need is several link mappings for different link types
>> (A/B/C) with corresponding initializers and constraints (if necessary)
>> associated with the same toolbar tool in .gmfmap model. As a result
>> you'll be able to generate diagram allowing you to create link between
>> two nodes asking for the applicable link types prior to the link
>> creation.
>>
>> -----------------
>> Alex Shatalin
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04012 seconds