Dynamic creation of tool [message #1405669] |
Thu, 07 August 2014 19:24  |
Eclipse User |
|
|
|
My usecase is that I need an edge creation tool. There are different (variable) types of edges which are deduced from the current instance of model.
The are two solutions that i anticipate
1. Create variable number of edge creation tool in the tool palaette. But i don't how to do with sirius. The number of tools should be dynamic based on the model.
2. Select the edge creation tool, a selection wizard appears to select the type of edge, and then click the source and target element.
Please let me know if any of the above things can be done with sirius
Any help much appreciated
Arun
|
|
|
Re: Dynamic creation of tool [message #1405943 is a reply to message #1405669] |
Fri, 08 August 2014 11:01  |
Eclipse User |
|
|
|
Le 08/08/2014 01:24, Arunkumar Ramaswamy a écrit :
> My usecase is that I need an edge creation tool. There are different
> (variable) types of edges which are deduced from the current instance of
> model.
What do you mean by "type of edges" in this context?
The structure of a Sirius VSM is fixed at runtime, so the set of Edge
Mapping available is fixed and can not vary depending on the instance
being edited.
If what varies in your case for each type is styling, you can look at
conditional styles, computed colors, and style customizations, to
compute the edge's style depending on characteristics of the underlying
semantic elements it represent, but in that case you don't need a
dynamic number of edge mappings and corresponding creation tools.
> The are two solutions that i anticipate
> 1. Create variable number of edge creation tool in the tool palaette.
> But i don't how to do with sirius. The number of tools should be dynamic
> based on the model.
This is not possible in Sirius.
> 2. Select the edge creation tool, a selection wizard appears to select
> the type of edge, and then click the source and target element.
It really depend on the meaning of "type of edge" in your case.
--
Pierre-Charles David - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.04776 seconds