Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Looking for a small example containing a tree representation
Looking for a small example containing a tree representation [message #1693966] Wed, 29 April 2015 15:28 Go to next message
Vincent Aravantinos is currently offline Vincent AravantinosFriend
Messages: 2
Registered: July 2014
Junior Member
Hi,

was trying to build a simple tree representation and I fail to do a lot of basic stuff (popup tool, creation tool) so I think a basic example could help but the tutorial proposes only a diagram-based example. Any basic tree-based editor example out there?

Thanks!
V.
Re: Looking for a small example containing a tree representation [message #1694118 is a reply to message #1693966] Thu, 30 April 2015 15:45 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

To display a diagram with a tree layout, under the diagram description
(at the same level than the layers) you need to create an "Ordered Tree
Layout" element (right click "New Layout> Ordered Tree Layout").
In the styles of your edge mappings, the "Routing Style" should probably
be set to "Tree" too, but it will work with the other routing styles too.

I don't think there is a sample in the default bundle, but there are
some in the test suite in the sirius git repository
(http://git.eclipse.org/c/sirius/org.eclipse.sirius.git).
org.eclipse.sirius.tests.junit\data\unit\layout\layouts.odesign is one
of them.

I don't think there are specific behaviors for the tools such as popup
tool or creation tool. Am I missing something from your question?

Regards,
Steve

Le 30/04/2015 16:12, Vincent Aravantinos a écrit :
> Hi,
>
> was trying to build a simple tree representation and I fail to do a lot
> of basic stuff (popup tool, creation tool) so I think a basic example
> could help but the tutorial proposes only a diagram-based example. Any
> basic tree-based editor example out there?
>
> Thanks!
> V.


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Looking for a small example containing a tree representation [message #1694272 is a reply to message #1694118] Mon, 04 May 2015 06:48 Go to previous messageGo to next message
Vincent Aravantinos is currently offline Vincent AravantinosFriend
Messages: 2
Registered: July 2014
Junior Member
Hi Steve,

thanks, the test suites will provide me with a start!

Regarding the pop-up and creation tools, I was referring to the first and last item tools mentioned in the documentation: http://www.eclipse.org/sirius/doc/specifier/trees/Trees.html#item_tools

Cheers,
V.
Re: Looking for a small example containing a tree representation [message #1694293 is a reply to message #1694272] Mon, 04 May 2015 08:30 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Vincent,

Le 04/05/2015 08:48, Vincent Aravantinos a écrit :
> Hi Steve,
>
> thanks, the test suites will provide me with a start!
>
> Regarding the pop-up and creation tools, I was referring to the first
> and last item tools mentioned in the documentation:
> http://www.eclipse.org/sirius/doc/specifier/trees/Trees.html#item_tools

Steve misread your first message and gave you some pointers to the Tree
routing on diagrams.

For Tree representations, there is no sample in the default bundle, but
you might find some cases in the test suite in the sirius git repository
(http://git.eclipse.org/c/sirius/org.eclipse.sirius.git).

I think you could find some tips in:
. org.eclipse.sirius.tests.junit
. \data\tree\unit\dnd\vp926.odesign
. \data\tree\unit\tools\tree.odesign
. org.eclipse.sirius.tests.swtbot
. \data\unit\tree\popupMenus\vp915.odesign


>
> Cheers,
> V.

Regards

--
Maxime - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Sirius from ecore model.
Next Topic:Sirius from ecore model.
Goto Forum:
  


Current Time: Tue Apr 16 21:29:26 GMT 2024

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

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

Back to the top