Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sirius-dev] [gsoc2014] Tool groups/sections creation by refactoring

Hello João,

You can't update eContent because it is not an EReference, it is an EOperation of EObject.

To add a NodeCreationDescription or any other tool to a Tool Section, use :
- yourSection.getOwnedTools().add(yourTool)
- If yourTool variable is an EObject: yourSection.getOwnedTools().add((ToolEntry)yourTool)

Regards
Boubekeur.

Le 01.06.2014 20:52, João Martins a écrit :
Hi,
As I already said I am looking for the bug434698 [1],
 I have a difficulty that still can not solve,
I am trying to create a new section and and move the selected
NodeCreationDescription to that new section, I can create the new
section but when I can't move the Node, in my last try I have try to
get the eContents of the new section 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 

Links:
------
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=434698#c2



Back to the top