[EuGENia] Ordering of Tools, Adding custom menus, Drag'n'Drop [message #518511] |
Thu, 04 March 2010 05:45  |
Eclipse User |
|
|
|
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 #755001 is a reply to message #750737] |
Sun, 06 November 2011 10:37  |
Eclipse User |
|
|
|
Hi Jessica,
I'm not an expert in Eugenia but you can find useful examples on Epsilon repository.
dev.eclipse.org/viewsvn/viewvc.cgi/trunk/plugins/org.eclipse.epsilon.eugenia/transformations/ECore2GMF.eol?view=markup&root=Modeling_EPSILON&sortby=log
At line 14, you will see how to create a new tool group.
If you want to access to the palette, you may do this
var palette := GmfTool!Palette.all.first();
To get the current tool groups of the palette,
var currentTools = palette.tools
I hope it can help you,
aoyou
|
|
|
Powered by
FUDForum. Page generated in 0.42739 seconds