nbz
nbz

Reputation: 3928

Eclipse plug-in: add controls to WizardNewProjectCreationPage

I was wondering if it is possible to add additional controls to the WizardNewProjectCreationPage. At this point it only has controls for a project name and location. I would like to keep these and add more to it.

I have seen the createControl method but I'm not sure how I can extend it without losing the controls already set by the WizardNewProjectCreationPage class and without having to rewrite the whole method again.

I forgot to add, that I have looked at a lot of tutorials and all of them discuss extending just a wizardPage and not a WizardNewProjectCreationPage in terms of controls.

Upvotes: 4

Views: 1312

Answers (1)

javilaureano
javilaureano

Reputation: 846

There are subclasses of WizardNewProjectCreationPage in Eclipse (such as NewProjectCreationPage).

I think you can extend the createControl method starting with this:

super.createControl(parent);    
Composite control = (Composite) getControl();

Then you can use 'control' to add the other controls.

Upvotes: 7

Related Questions