Howto create a new project wizard [message #249242] |
Mon, 05 November 2007 07:07  |
Eclipse User |
|
|
|
Originally posted by: rgl.ruilopes.com
Hello,
I'm trying to create a new java project wizard that adds some extra
entries into the project classpath. I've created this using a
org.eclipse.ui.newWizards extension. I can see the extension showing up
in the "file | new" menu, and I can even use the wizard, but when I
click the "Next" button on the wizard, no new page is displayed...
though, the println messages I've added show that these extension
methods are being called:
NewNascenteProjectWizard()
init()
addPages()
This is my addPages implementation:
public void addPages() {
System.out.println("addPages()");
mainPage = new WizardNewProjectCreationPage("mainPage");
mainPage.setTitle("New RIO project");
mainPage.setDescription("Create a new RIO project.");
addPage(javaPage);
javaPage = new JavaCapabilityConfigurationPage();
addPage(javaPage);
// TODO somehow call javaPage.init()
}
Is this missing something?
The full sources are at http://ruilopes.com/tmp/nascente.tgz (3 KiB)
TIA!
Best regards,
Rui Lopes
|
|
|
Re: Howto create a new project wizard [message #249252 is a reply to message #249242] |
Mon, 05 November 2007 07:22  |
Eclipse User |
|
|
|
Originally posted by: rgl.ruilopes.com
Hi again,
Rui Lopes wrote:
[...]
> This is my addPages implementation:
>
> public void addPages() {
> System.out.println("addPages()");
>
> mainPage = new WizardNewProjectCreationPage("mainPage");
> mainPage.setTitle("New RIO project");
> mainPage.setDescription("Create a new RIO project.");
> addPage(javaPage);
Oh, the problem was here... it should have been:
addPage(mainPage);
Sorry!
Best regards,
Rui Lopes
|
|
|
Powered by
FUDForum. Page generated in 0.02763 seconds