Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Displaying attributes of an entity on a diagram
Displaying attributes of an entity on a diagram [message #1790029] Sun, 03 June 2018 16:39 Go to next message
Joseph G. Briggs is currently offline Joseph G. BriggsFriend
Messages: 1
Registered: July 2009
Junior Member
I have modified the basicfamily example metamodel to include two new attributes on the Person abstract class:

  • age : EInt
  • hobby : EString


I would like to display these attributes on the example Sirius diagrams (already they show properly in the Properties window), but I am having trouble figuring out how to construct the .odesign file to do this.

I am just learning and haven't found any examples or explanation in the documentation or an answer to this question on the forum. Please forgive me if I have missed something obvious and point me to the appropriate resource.
Re: Displaying attributes of an entity on a diagram [message #1790215 is a reply to message #1790029] Thu, 07 June 2018 06:57 Go to previous message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017
Member
in the tutorial you have an Image as style of the node.
in the odesign click on the Workspace Image and look at the properties.
the Label Expression (under "Label") is "feature:name" (by Default I guess)

remove it and write: aql: self.age + '\n' + self.hobby

hope that helps you

Previous Topic:Disable vertical scroll bar container
Next Topic:Insert new form for source arrow
Goto Forum:
  


Current Time: Thu Apr 25 13:43:24 GMT 2024

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

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

Back to the top