Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Extend VE and custom constructors
Extend VE and custom constructors [message #614599] Fri, 08 September 2006 05:44
Eclipse UserFriend
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:Extend VE and custom constructors
Next Topic:Vep 1.3 Code Generation
Goto Forum:
  


Current Time: Sat Jun 21 20:33:23 EDT 2025

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

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

Back to the top