Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EOL] Delete the default group: Objects ??
[EOL] Delete the default group: Objects ?? [message #888130] Sun, 17 June 2012 18:35 Go to next message
Lili R is currently offline Lili R
Messages: 15
Registered: April 2012
Junior Member
Hi everybody!

I did a tool with EuGENia, and now I am customizing the palette. But I have the next problems:
I have an operation for creating groups, and it works ok. So, I create the group:

var nodesToolGroup1 = new GmfTool!ToolGroup;
nodesToolGroup1.title := 'Main Nodes';
nodesToolGroup1.collapsible := true;
palette.tools.add(nodesToolGroup1);

//Add tools to the group:
addGMFToolToGMFGroup('B','Main Nodes');
addGMFToolToGMFGroup('A','Main Nodes');


But, as I don't use the Objects group appears this error: "The feature 'entries' of 'Tool Group Objects' with 0 values must have at least 1 values."


So, I tried resolve it with something like this:


var toolGroupObjects = GmfTool!ToolGroup.all.selectOne(r|r.title ='Objects');
toolGroupObjects.title='Main Nodes';

and
//Add tools to the group:
addGMFToolToGMFGroup('B','Main Nodes');
addGMFToolToGMFGroup('A','Main Nodes');


But I need that the tools appears in the order that I have created them, I mean first X and after Y...
and with this the the order is A, B

There are any way to remove the default group "Objects"?

Thanks in advance!
Best regards,
Lili
Re: [EOL] Delete the default group: Objects ?? [message #888166 is a reply to message #888130] Sun, 17 June 2012 19:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Lili,

Did you mean to post this to eclipse.epsilon?

On 17/06/2012 8:35 PM, Lili R wrote:
> Hi everybody!
>
> I did a tool with EuGENia, and now I am customizing the palette. But
> I have the next problems:
> I have an operation for creating groups, and it works ok. So, I create
> the group:
>
> var nodesToolGroup1 = new GmfTool!ToolGroup;
> nodesToolGroup1.title := 'Main Nodes';
> nodesToolGroup1.collapsible := true;
> palette.tools.add(nodesToolGroup1);
>
> //Add tools to the group:
> addGMFToolToGMFGroup('B','Main Nodes');
> addGMFToolToGMFGroup('A','Main Nodes');
>
>
> But, as I don't use the Objects group appears this error: "The feature
> 'entries' of 'Tool Group Objects' with 0 values must have at least 1
> values."
>
>
> So, I tried resolve it with something like this:
>
>
> var toolGroupObjects = GmfTool!ToolGroup.all.selectOne(r|r.title
> ='Objects');
> toolGroupObjects.title='Main Nodes';
>
> and //Add tools to the group:
> addGMFToolToGMFGroup('B','Main Nodes');
> addGMFToolToGMFGroup('A','Main Nodes');
>
>
> But I need that the tools appears in the order that I have created
> them, I mean first X and after Y...
> and with this the the order is A, B
>
> There are any way to remove the default group "Objects"?
> Thanks in advance!
> Best regards,
> Lili
>
Re: [EOL] Delete the default group: Objects ?? [message #888187 is a reply to message #888166] Sun, 17 June 2012 20:36 Go to previous message
Lili R is currently offline Lili R
Messages: 15
Registered: April 2012
Junior Member
Hi,
Oh, sorry... yes, the section of Epsilon is the correct Smile
Thanks!
Previous Topic:[Texo] - Change package name in annotation model ?
Next Topic:Teneo proper save & validate
Goto Forum:
  


Current Time: Sat Oct 25 02:53:11 GMT 2014

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

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