Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [GMF] Adding options to DropDown-Menu of a Node
[GMF] Adding options to DropDown-Menu of a Node [message #759108] Sat, 26 November 2011 13:34 Go to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
Hello,

i got a model containing the following node.


class Reference {
   attr String name;
   attr String path;
}



i post it modelled with emfatic here.

I want to add an option to the Dropdown-Menu of this node.
So when i add one Reference Node to canvas, and right click on it, i want to have a new option called "Set path..." where i can use my own javacode to get a popup.


How can i add such an option ? Can i use my own javacode in it ?



Greetings
Snakebyte

[Updated on: Sat, 26 November 2011 14:38]

Report message to a moderator

Re: [GMF] Adding options to DropDown-Menu of a Node [message #759125 is a reply to message #759108] Sat, 26 November 2011 15:53 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
any suggestions ?
Re: [GMF] Adding options to DropDown-Menu of a Node [message #759295 is a reply to message #759125] Mon, 28 November 2011 09:52 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 769
Registered: July 2009
Location: Grenoble, France
Senior Member
With GMF Tooling, you can do that by adding the necessary tool into the
..gmftool. However, I think your problem is more related to EMFatic.
You'd rather try to have an answer by asking the EMFatic people.

Regards,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: [GMF] Adding options to DropDown-Menu of a Node [message #760252 is a reply to message #759295] Thu, 01 December 2011 17:08 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
No it is not.
Your suggestions is exactly what i want.
Can you give me some more Detail on how adding a DropDown Action via gmftool ?
Re: [GMF] Adding options to DropDown-Menu of a Node [message #760387 is a reply to message #760252] Fri, 02 December 2011 09:05 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 769
Registered: July 2009
Location: Grenoble, France
Senior Member
On 01/12/2011 18:08, Snakebyte wrote:
> No it is not.
> Your suggestions is exactly what i want.
> Can you give me some more Detail on how adding a DropDown Action via
> gmftool ?

To be honest, I don't know.
I always prefer using the general Eclipse way to do so, using the
org.eclipse.ui.menus extension point

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fworkbench_cmd_menus.htm

--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: [GMF] Adding options to DropDown-Menu of a Node [message #760469 is a reply to message #760387] Fri, 02 December 2011 13:48 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 697
Registered: November 2009
Senior Member
Hi,

I think you cannot add this via GMF Tool. As far as I know is there something to add these defined in the gmftool meta-model but it is not implemented in the transformations that produce the java code.

Ralph
Previous Topic:how to hide the file extension name in the project explore?
Next Topic:problems with XYlayout
Goto Forum:
  


Current Time: Tue Nov 25 21:18:29 GMT 2014

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

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