Skip to main content



      Home
Home » Modeling » Epsilon » [EuGENia] Ordering of Tools, Adding custom menus, Drag'n'Drop
[EuGENia] Ordering of Tools, Adding custom menus, Drag'n'Drop [message #586968] Thu, 04 March 2010 05:45 Go to next message
Eclipse UserFriend
Q1: Is it possible to predefine the order of the tools in the tool palette through EuGENia. The order within the emf file is ignored and the tools are alphabetically ordered in the generated GMF editor. I was able the change the label of the tool grouping with an Ecore2GMF.eol:

var toolGroupObjects = GmfTool!ToolGroup.all.selectOne(r|r.title = 'Objects');
toolGroupObjects.title='Nodes';
Is this the supposed way ?

Q2: Can I add custom popup actions for specific nodes in the generated GMF diagram editor ? I need an action like replace node which will replace the node with an new node maintaining the incoming and outgoing links.

Q3: What is the supposed way to add a custom drag-and-drop handler to the GMF editor
Re: [EuGENia] Ordering of Tools, Adding custom menus, Drag'n'Drop [message #587003 is a reply to message #586968] Thu, 04 March 2010 07:14 Go to previous message
Eclipse UserFriend
Hi Ralf,

Ralf Nagel wrote:
> Q1: Is it possible to predefine the order of the tools in the tool
> palette through EuGENia. The order within the emf file is ignored and
> the tools are alphabetically ordered in the generated GMF editor. I was
> able the change the label of the tool grouping with an Ecore2GMF.eol:
>
> var toolGroupObjects = GmfTool!ToolGroup.all.selectOne(r|r.title =
> 'Objects');
> toolGroupObjects.title='Nodes';
> Is this the supposed way ?

Yes. You can use EOL to re-order the tools (or even create new tool
groups) as you see fit. Please let me know if you need an example and
I'll try to put together one.

>
> Q2: Can I add custom popup actions for specific nodes in the generated
> GMF diagram editor ? I need an action like replace node which will
> replace the node with an new node maintaining the incoming and outgoing
> links.

Yes. This article will probably help a lot:
http://www.eclipse.org/articles/article.php?file=Article-act ion-contribution/index.html

>
> Q3: What is the supposed way to add a custom drag-and-drop handler to
> the GMF editor

Google returned this: http://www.jevon.org/wiki/GMF_Drag_Drop If this
is not what you're looking for I'd suggest asking in the GMF newsgroup.

Cheers,
Dimitris

--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:[Eugenia] @gmf.diagram Annotations ignored
Next Topic:How to list all the wizards registered in Epsilon?
Goto Forum:
  


Current Time: Fri Jul 25 18:34:51 EDT 2025

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

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

Back to the top