Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Which method is called when a tool in the palette becomes active?
Which method is called when a tool in the palette becomes active? [message #534298] Tue, 18 May 2010 11:24 Go to next message
Eclipse UserFriend
Hi,

I need to urgently do some processing before the user adds a node to the canvas.

I assume the only way to do this is to override the method(s) that gets invoked when the (create node) tool in the palette becomes active, i.e., the user clicks on this tool.
Can anyone tell me which method of which class would I have to override to do my processing?

An alternative would be to override the method that gets called when the user already activated the tool and is performing a click on the canvas to add the node.

Thanks,
Thomas L
Re: Which method is called when a tool in the palette becomes active? [message #534892 is a reply to message #534298] Thu, 20 May 2010 10:58 Go to previous messageGo to next message
Eclipse UserFriend
Really, does no one know? Any hint would appreciated.

Thanks
Re: Which method is called when a tool in the palette becomes active? [message #534903 is a reply to message #534892] Thu, 20 May 2010 11:32 Go to previous message
Eclipse UserFriend
Hi Thomas,

A semantic element and a View are created in a method
org.eclipse.gmf.runtime.diagram.ui.tools.CreationTool.perfor mCreation()

Tanya.
Previous Topic:How to constrain a reference to be from a particular set ?
Next Topic:Open GMF Project from Ganymede Version to Galileo Version
Goto Forum:
  


Current Time: Thu Mar 27 03:48:32 EDT 2025

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

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

Back to the top