Skip to main content



      Home
Home » Eclipse Projects » Sirius » Display semantic properties elements on diagram
Display semantic properties elements on diagram [message #1734252] Mon, 06 June 2016 10:44 Go to next message
Eclipse UserFriend
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 498 times)
  • Attachment: SCHEMA.PNG
    (Size: 2.87KB, Downloaded 280 times)

[Updated on: Mon, 06 June 2016 10:50] by Moderator

Re: Display properties semantic elements on diagram [message #1734472 is a reply to message #1734252] Wed, 08 June 2016 11:05 Go to previous messageGo to next message
Eclipse UserFriend
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 05:23 Go to previous message
Eclipse UserFriend
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: Wed Mar 26 08:12:50 EDT 2025

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

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

Back to the top