Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom behaviour for starting a swing application
icon5.gif  Custom behaviour for starting a swing application [message #635603] Wed, 27 October 2010 09:34 Go to next message
Kai Maschke is currently offline Kai Maschke
Messages: 16
Registered: October 2010
Junior Member
Hi there,

what I want to do is to start a swing application by double-clicking on a node in my diagram. I figured out that, those actions can be realized with a "Custom Behaviour", which is set in the gmfgen.
But first I really don't understand how to write such an extension. Second, I didn't figure out the best way to extend the generated code.

So how can I write an extension without having to edit the generated code?

How can I implement an action to open a swing application by double-clicking on an node?

I am really thankful for any help!
Re: Custom behaviour for starting a swing application [message #635608 is a reply to message #635603] Wed, 27 October 2010 09:41 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 550
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

fto customize your code you can check this blogpost: http://www.bonitasoft.org/blog/eclipse/customize-your-gmf-ed itor-by-customizing-templates/

for the double-click behaviour, I think taht you should take a look at OpenEditPolicy

Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Previous Topic:how to save model file using xmi?
Next Topic:cast IEditingDomainProvider
Goto Forum:
  


Current Time: Thu May 23 04:14:23 EDT 2013

Powered by FUDForum. Page generated in 0.01618 seconds