Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Ordered list
Ordered list [message #1794847] Fri, 07 September 2018 15:27 Go to next message
Sergio García is currently offline Sergio GarcíaFriend
Messages: 15
Registered: May 2018
Junior Member
Hi!

So I developed a representation of a DSL with Sirius. The idea is to relate nodes on a behavior tree-style in ordered sets. When working with Xtext is easy to realize the order of the items (obviously) but I have no way of realizing it with the graphical syntax. I'm wondering if there's a way of getting the index of each list item and display it in its label. I'm attaching a screenshot to help you understand my idea.

Tell me if you need more info from me.

Best,
Sergio

Re: Ordered list [message #1794990 is a reply to message #1794847] Wed, 12 September 2018 09:33 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 201
Registered: August 2010
Senior Member
Hi Sergio,

I suggest you to create a Java service that will retrieve the index of the element and to call it from your label expression in the odesign. You will find a sample here : org.eclipse.sirius.sample.ecore.design

Regards,

Florian
Re: Ordered list [message #1795163 is a reply to message #1794990] Mon, 17 September 2018 13:25 Go to previous messageGo to next message
Sergio García is currently offline Sergio GarcíaFriend
Messages: 15
Registered: May 2018
Junior Member
OK, thanks. The link doesn't work, but I guess you mean something like: https://wiki.eclipse.org/Sirius/Tutorials/AdvancedTutorial#Java_Services

I'll try it and come back with the outcome :)
[SOLVED] Ordered list [message #1796359 is a reply to message #1795163] Thu, 11 October 2018 15:11 Go to previous message
Sergio García is currently offline Sergio GarcíaFriend
Messages: 15
Registered: May 2018
Junior Member
It worked, thanks!
Previous Topic:Question about Operation Action / Menu order
Next Topic:Could not serialize Mission via backtracking
Goto Forum:
  


Current Time: Sun Nov 18 03:56:01 GMT 2018

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

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

Back to the top