Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Display semantic properties elements on diagram
Display semantic properties elements on diagram [message #1734252] Mon, 06 June 2016 14:44 Go to next message
Alx Hvx is currently offline Alx HvxFriend
Messages: 40
Registered: March 2016
Member
Hi,

I have a problem that I am unable to solve.

I have a semantic element that contains some fields, one of these fields is made out of a java Enum (It means that the values can only be selected in a predefined set and are stored in an EList).

What I need to do is to display those values on a diagram instead of just in a list

Here is an example of what I have for the moment (List displayed on the property view) :

index.php/fa/26081/0/

And an outline of what I want to be displayed :

index.php/fa/26082/0/


I have tried to create a node mapping for those elements in the VSM but it is not working because the class of the elements on the list is not recognized (nothing is displayed)

Do you know if what I want to do is possible ?

Thanks,
Alexandre.


  • Attachment: enum.png
    (Size: 7.37KB, Downloaded 478 times)
  • Attachment: SCHEMA.PNG
    (Size: 2.87KB, Downloaded 255 times)

[Updated on: Mon, 06 June 2016 14:50]

Report message to a moderator

Re: Display properties semantic elements on diagram [message #1734472 is a reply to message #1734252] Wed, 08 June 2016 15:05 Go to previous messageGo to next message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hi Alexandre,

If I understand your need, you want display the enum's litterals?

You can find attached, an example to do that.

Regards,
--
Julien - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Display properties semantic elements on diagram [message #1734538 is a reply to message #1734472] Thu, 09 June 2016 09:23 Go to previous message
Alx Hvx is currently offline Alx HvxFriend
Messages: 40
Registered: March 2016
Member
Hi Julien,

Thank you very much it works !
I just did the enum literals finding inside a java service to make it a bit easier but the principle is the same.

Alexandre.
Previous Topic:creating the palette objects in the model
Next Topic:Unable to Resize Vertical Stacked Containers
Goto Forum:
  


Current Time: Fri Apr 26 14:18:05 GMT 2024

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

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

Back to the top