extending VE: accessing SWING/SWT objects [message #612746] |
Mon, 24 April 2006 17:23 |
Eclipse User |
|
|
|
Originally posted by: sgollery.cadrc.calpoly.edu
I'm trying to extend VE so that I can attach fields from my domain model
to specific widgets through a controller.
I see how to add my own action to the popup menu for anything on the
visual editor window, but I can't figure out how to get from the current
selection to anything that connects to a specific widget -- I can get
the widget's class name, but nothing that (as far as I can tell)
represents the widget itself in the code.
For instance: if I have a JButton named jButton1 and there is a
getJButton1 method in the class that extends JFrame, I'd like to be able
to get something representing that method so that I can use it in the
configuration for my controller. But all I can get from the selection
object is the name of the JButton class.
It seems that all the information I need is in the model maintained by
VE/GEF/EMF. If anyone can help me understand how to get to it, it would
be very helpful.
Steven Gollery
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds