|
Re: Evaluating Sirius [message #1716948 is a reply to message #1716612] |
Wed, 09 December 2015 08:40 |
|
Le 07/12/2015 16:04, Markus Knecht a écrit :
> I need a dynamic palett.
> I have some Models (of another type then what Im currently editing),
> these models describe some components.
>
> Know I want a button somewhere (preferably in the header of the pallett
> where the notes are or in the toolbar at the top).
This part is possible through a Sirius-specific extension point to add
new elements to the "tabbar" integrated inside Sirius diagrams.
> When the User clicks this button he can search for these other models
> and select some of them and when he is done, I create some tools based
> on the components in these models and provide them in the toolbar.
I assume you mean "in the palette here"?
> Is this somehow possible with sirius and if yes how do I have to
> approach that?
This is not currently possible as such. The set of all possible tools
which will appear inside the palette is fixed, as they are defined
inside the static VSMs (the .odesign files). Which subset of these tools
is visible at a given point can be made dynamic, and the actual behavior
of any of these can be as dynamic as you want, but currently the set of
available tools is statically defined.
One thing you can do right now, which would provide the same
functionality but with a different UI is to define a single static tool
in the palette (defined in the .odesign) which, when invoked, opens a
dialog box where the user can select which model/component to add to the
diagram. This is what Ecore Tools [1] does for example for many of its
tools ("Add" and "Add related elements" for exemple, see screenshots at
[2]).
You are not the first one to express this kind of need for a more
dynamic palette content, see for example "Bug 442145 - Provide an API to
dynamically add odesign elements" [3]. It seems your case is a little
more constrained and could avoid some of the complexities of a
completely open approach. Feel free to comment on that bug or create a
separate feature request.
Regards,
Pierre-Charles
[1] https://www.eclipse.org/ecoretools/
[2] https://www.eclipse.org/ecoretools/doc/index.html
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=442145
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03181 seconds