Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius Moving a NodeCreationDescription(Moving a NodeCreationDescription to new ToolGroupSection)
Sirius Moving a NodeCreationDescription [message #1384787] Sun, 01 June 2014 18:58 Go to next message
João Martins is currently offline João MartinsFriend
Messages: 11
Registered: May 2014
Junior Member
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
Re: Sirius Moving a NodeCreationDescription [message #1384795 is a reply to message #1384787] Mon, 02 June 2014 07:03 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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
Previous Topic:Diagram Description with more than one sematic model
Next Topic:[gsoc2014] Tool groups/sections creation by refactoring
Goto Forum:
  


Current Time: Sat Apr 27 04:27:11 GMT 2024

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

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

Back to the top