Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Create a second label in a Rectangle Figure
[Eugenia] Create a second label in a Rectangle Figure [message #760955] Mon, 05 December 2011 12:29 Go to previous message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
Hello everybody.

I created a node from following emfatic code.

@gmf.node(label="identifier,content", border.width="2",border.color="0,0,0",size="130,50",figure="rectangle", label.pattern="{0} : {1}")
class Goal extends StandardNode 
{
attr String identifier;
attr String content;
}


Im using the Message Format here.
What i want to achieve is a second label in the node, appear at a fixed place inside the node.

The result should look like an automatic generated node. The identifier should appear as always.
But the second label "content" should be placed at a specific point.

So i think i have to change the .gmfgraph file.
I already looked at the tutorial, but i can't imagine how to do this.

Any more tutorials ? ideas ?
Particularly i need to know how doing this in EOL.
Is there a complete Syntax of EOL anywhere ?

When i try doing it like this :

var GoalFigure = GmfGraph!Rectangle.all.
    selectOne(r|r.name = 'GoalFigure');
    
    GoalFigure.label = new GmfGraph!Label;


The object is inserted as a sibling of the main canvas.
Is there any reference about the properties etc. ?


Greetings

[Updated on: Mon, 05 December 2011 13:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[EOL] Get All Properties
Next Topic:[Eugenia] Deleting Tool Objects, Deleting Tool Connections
Goto Forum:
  


Current Time: Sat May 25 23:23:54 EDT 2013

Powered by FUDForum. Page generated in 0.05620 seconds