Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sample tree diagram specification
Sample tree diagram specification [message #1547864] Mon, 05 January 2015 17:55 Go to next message
Frédéric Botron is currently offline Frédéric BotronFriend
Messages: 9
Registered: December 2014
Junior Member
Hello everyone, and happy new year !

Congratulations to all contributors of the Sirius project, it is really interesting and pleasurable to work with. I am currently working with Sirius 1.0.1 bundled with Eclipse Modeling Tools (Luna).

My intention is to create a prototype of a multi-view application providing both diagram-based editors and tree-based editors enabling to modify the same model. I am currently designing the editors using Sirius, as described in the 4-minute tutorial. I have been able to find tutorials and sample projets regarding diagram-based editors, but I cannot find any material to help me to create the tree-based editor. I follow the instructions described in doc/specifier/trees/Trees.html, but I have some trouble in defining creation tools and modifying the context menus. None of them appear on my tree.

Could someone tell me where I can find a tree-based editor sample, either on this web site or on Github or anywhere else ?

Thanks in advance,

Fred
Re: Sample tree diagram specification [message #1549018 is a reply to message #1547864] Tue, 06 January 2015 09:18 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Fred,

We have not yet open-source tree based modeler, soon a more complete
example of the family will be available with a tree representation
definition. Waiting this you could provide your example and tell us what
is not working.

Best Regards.

Le 05/01/2015 19:54, Frédéric Botron a écrit :
> Hello everyone, and happy new year !
>
> Congratulations to all contributors of the Sirius project, it is
> really interesting and pleasurable to work with. I am currently working
> with Sirius 1.0.1 bundled with Eclipse Modeling Tools (Luna).
>
> My intention is to create a prototype of a multi-view application
> providing both diagram-based editors and tree-based editors enabling to
> modify the same model. I am currently designing the editors using
> Sirius, as described in the 4-minute tutorial. I have been able to find
> tutorials and sample projets regarding diagram-based editors, but I
> cannot find any material to help me to create the tree-based editor. I
> follow the instructions described in doc/specifier/trees/Trees.html, but
> I have some trouble in defining creation tools and modifying the context
> menus. None of them appear on my tree.
>
> Could someone tell me where I can find a tree-based editor sample,
> either on this web site or on Github or anywhere else ?
>
> Thanks in advance,
>
> Fred



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Sample tree diagram specification [message #1549546 is a reply to message #1549018] Tue, 06 January 2015 15:45 Go to previous messageGo to next message
Frédéric Botron is currently offline Frédéric BotronFriend
Messages: 9
Registered: December 2014
Junior Member
Thank you very much for your reply. I just solved my problem. In fact I was thinking that creating a TreeItemCreationTool was enough to enable a end-user to add child tree items to a given tree item, but the process is the same as for diagram-based editors (as in the 4' tutorial) : a CreateInstance element must be created in the TreeItemCreationTool to enable the child tree item creation. My mistake.

The only (minor) problem I have once the child is created is the following: I would like to change the selection in the tree, so that the newly-created child is automatically selected just after having been instantiated. Is it possible using one of the Sirius model operations ?
Re: Sample tree diagram specification [message #1549566 is a reply to message #1549546] Tue, 06 January 2015 16:04 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
The selection of created tree items is in work in progress [1]

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=428545

Le 06/01/2015 16:45, Frédéric Botron a écrit :
> Thank you very much for your reply. I just solved my problem. In fact
> I was thinking that creating a TreeItemCreationTool was enough to enable
> a end-user to add child tree items to a given tree item, but the process
> is the same as for diagram-based editors (as in the 4' tutorial) : a
> CreateInstance element must be created in the TreeItemCreationTool to
> enable the child tree item creation. My mistake.
>
> The only (minor) problem I have once the child is created is the
> following: I would like to change the selection in the tree, so that the
> newly-created child is automatically selected just after having been
> instantiated. Is it possible using one of the Sirius model operations ?
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Reusing Compley Diagram Elements
Next Topic:[Solved]How to bind edges only in the container
Goto Forum:
  


Current Time: Tue Apr 07 21:23:10 GMT 2020

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

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

Back to the top