|EOL Change attribute 'external' of DiagramLabel [message #766305]
||Thu, 15 December 2011 14:27
| Snakebyte Missing name
Registered: November 2011
i created a Model and an Editor in Eugenia.
Now i want to customize this Editor in EOL.
And it works really great for now.
Im using the EPackageRegistry View for getting the right attributes etc.
Now i want to add a new DiagramLabel to Canvas. And i do it like that in my ECore2GMF.eol file :
var masterModule = GmfGraph!Canvas.all.selectOne(as|as.name="Model");
var label = new GmfGraph!DiagramLabel;
label.name = "StrategyLabelContext";
label.elementIcon = false;
label.figure = GmfGraph!FigureDescriptor.all.selectOne(as|as.name="StrategyFigure");
//label.external = false;
This works great. The Label is added and all the attributes set correctly, except for one. The external attribute.
I tried it like above. But the generation always told me that 'external' is an unsetable feature. And in the EPackageRegistry View it is written in italic.
Does that mean that it is unchangable ?
Do i have to do set it during the construction of my DiagramLabel 'label'?
Can somnebody give me some code examples, on how to set it to true in EOL ?
[Updated on: Thu, 15 December 2011 14:28]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.07320 seconds