[EOL] Delete the default group: Objects ?? [message #888130] |
Sun, 17 June 2012 18:35 |
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 |
Ed Merks Messages: 33140 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
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03168 seconds