Extend VE and custom constructors [message #614599] |
Fri, 08 September 2006 09:44 |
Peter Vermeulen Messages: 11 Registered: July 2009 |
Junior Member |
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03538 seconds