|
Re: Sirius Moving a NodeCreationDescription [message #1384795 is a reply to message #1384787] |
Mon, 02 June 2014 07:03 |
|
Hi João,
You can move elements to a ToolGroup with the following instruction
where gp is a ToolGroup and tool any instance of AbstractToolDescription:
gp.getTools().add(tool);
You can move elements to a ToolSection with the following instruction
where sec is a ToolSection and toolEntry any instance of ToolEntry:
sec.getOwnedTools().add(toolEntry);
To add a group to a section (ToolGroup inherits from ToolEntry), you can
do sec.getOwnedTools().add(gp);
To add a section as subsection of an other section:
mainSec.getSubSections().add(subSection);
Regards,
Maxime
Le 01/06/2014 20:58, João Martins a écrit :
> Hi,
>
> I am trying to create a new ToolGroupSection and and move a selected
> NodeCreationDescription to that new ToolGroupSection, I can create the
> new section but I can't move the NodeCreationDescription, in my last try
> I have try to get the eContents of the new ToolGroupSection and add as a
> EObject but it give me a error.
>
> If someone can give me a tip I will appreciate for the help.
>
> Best Regards
> João Martins
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02689 seconds