Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Evaluating Sirius
Evaluating Sirius [message #1716612] Sun, 06 December 2015 11:06 Go to next message
Markus Knecht is currently offline Markus KnechtFriend
Messages: 1
Registered: December 2015
Junior Member
At the moment I'm evaluating some tools for a project I'm currently working on. Sirius seems very promissing, but I have no experience wit it and with eclipse plugin/extension development, but I have used eclipse as a developer in the past.

I played a bit around with the target to make a really fast prototype (to find out if sirius is the right way to go), but I struggled to implement a core functionallity I need.

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).
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.

Is this somehow possible with sirius and if yes how do I have to approach that?
Re: Evaluating Sirius [message #1716948 is a reply to message #1716612] Wed, 09 December 2015 08:40 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 554
Registered: July 2009
Senior Member
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
Previous Topic:Can't create a Node with Border Nodes
Next Topic:Survey about new tool for modelling and DSL design
Goto Forum:
  


Current Time: Wed Jan 27 11:20:55 GMT 2021

Powered by FUDForum. Page generated in 0.02540 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top