Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Howto create a new project wizard
Howto create a new project wizard [message #249242] Mon, 05 November 2007 07:07 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Building JDT with different compiler option
Next Topic:Can't create Java Run Configuration
Goto Forum:
  


Current Time: Fri Apr 25 01:49:07 EDT 2025

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

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

Back to the top