Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Extend VE and custom constructors
Extend VE and custom constructors [message #130682] Fri, 08 September 2006 09:44
Eclipse UserFriend
Originally posted by: peter.vermeulen.maniagroup.com

I'm trying to extend the VE with some custom widgets that are all
subclassed from existing SWT widgets.
For example, I have a class MyButton that extends the SWT Button component.
Everything seems to work fine, but I still struggle with the following:

If I add a MyButton in the VE, it uses the default constructor:
MyButton(Composite parent, int style).
I would like to have a new constructor MyButton(Composite parent, int
style, String name) where name should be the name of the MyButton instance
that will be created.

e.g. VE should generate something like this: okButton = new Button(this,
SWT.NONE, "okButton");

I was able to modify the code that is generated when a property is changed
in VE (using an override file and decoder classes), but can not find how
to change the constructor.

Thank you very much for your help,

Peter Vermeulen,
Belgium
Previous Topic:can I build the source to .exe file
Next Topic:Extend VE and custom constructors
Goto Forum:
  


Current Time: Wed Apr 24 13:52:40 GMT 2024

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

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

Back to the top