Sample tree diagram specification [message #1547864] |
Mon, 05 January 2015 12:55  |
Eclipse User |
|
|
|
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 04:18   |
Eclipse User |
|
|
|
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 #1549566 is a reply to message #1549546] |
Tue, 06 January 2015 11:04  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05695 seconds