Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Palette configuration using Eugenia
Palette configuration using Eugenia [message #1008549] Tue, 12 February 2013 22:43 Go to next message
Hector Florez is currently offline Hector FlorezFriend
Messages: 6
Registered: February 2013
Location: Colombia
Junior Member
Dear All

I made my editor using Eugenia, and I need to re-order the elements in the palette by creating new palette groups

Where can I find information or examples??

Thanks


Regards,
Hector F
Re: Palette configuration using Eugenia [message #1008639 is a reply to message #1008549] Wed, 13 February 2013 11:42 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Hi Hector,

We don't have an Eugenia annotation for specifying a different tool group, I'm afraid. We always create two: one for the nodes and another for the links.

You'll need to write a polishing transformation to do that. This tutorial should be useful:

http://eclipse.org/epsilon/doc/articles/eugenia-polishing/

Could you give it a try and tell us if it works for you?
Antonio
Re: Palette configuration using Eugenia [message #1008695 is a reply to message #1008639] Wed, 13 February 2013 15:44 Go to previous messageGo to next message
Hector Florez is currently offline Hector FlorezFriend
Messages: 6
Registered: February 2013
Location: Colombia
Junior Member
Hi Antonio

I could modify the palette. However, I also need to remove some elements..

I wrote the next lines, but it doesn't work.

var toolGroupConnections = GmfTool!ToolGroup.all.selectOne(r|r.title = 'Connections');
toolEntry = toolGroupConnections.tools.selectOne(r|r.title = 'ElementToDelete');
toolGroupConnections.entries.remove(toolEntry);


The error log shows the message:

Error
Wed Feb 13 10:39:58 COT 2013
Property 'entries' not found in object org.eclipse.gmf.tooldef.impl.ToolGroupImpl@b077ad 


Do you know the solution? or do you know another way to delete the entry?

Thank you so much


Regards,
Hector F
Re: Palette configuration using Eugenia [message #1008981 is a reply to message #1008695] Thu, 14 February 2013 08:47 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Hi Hector,

According to the EPackage Registry view, GmfTool!ToolGroup doesn't have any feature named "entries". There's one called "tools", though: you might want to use that one.

That view is very handy for writing all this EOL code Smile.

You're welcome,
Antonio
Re: Palette configuration using Eugenia [message #1009267 is a reply to message #1008981] Thu, 14 February 2013 19:48 Go to previous messageGo to next message
Hector Florez is currently offline Hector FlorezFriend
Messages: 6
Registered: February 2013
Location: Colombia
Junior Member
Hi Antonio

Thank you so much for your help

I could configure the palette.

Also I made a small example. I hope it can be useful

hflorezf-en.blogspot.com/2013/02/gmf-editor-using-eugenia.html


Regards,
Hector F

[Updated on: Fri, 15 February 2013 13:26]

Report message to a moderator

Re: Palette configuration using Eugenia [message #1009712 is a reply to message #1009267] Fri, 15 February 2013 15:09 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

You're welcome! Thanks for your article as well Smile.
Previous Topic:[EuGENia][EOL]
Next Topic:[EGL] Expected to return a Set, but returned a class
Goto Forum:
  


Current Time: Fri Mar 29 02:04:27 GMT 2024

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

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

Back to the top