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 #614599] Fri, 08 September 2006 09:44
Peter Vermeulen is currently offline Peter VermeulenFriend
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
Previous Topic:Extend VE and custom constructors
Next Topic:Vep 1.3 Code Generation
Goto Forum:
  


Current Time: Thu Sep 26 09:59:02 GMT 2024

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

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

Back to the top