Skip to main content



      Home
Home » Archived » Visual Editor (VE) » extending VE: accessing SWING/SWT objects
extending VE: accessing SWING/SWT objects [message #612746] Mon, 24 April 2006 17:23
Eclipse UserFriend
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
Previous Topic:how to replace control button
Next Topic:Regarding the implementation of VE
Goto Forum:
  


Current Time: Sun Jun 15 02:57:39 EDT 2025

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

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

Back to the top