@Override public void addPages() { super.addPages(); mainPage = new WizardNewProjectCreationPage("basicNewProjectPage") { //$NON-NLS-1$ @Override public void createControl(Composite parent) { super.createControl(parent); createWorkingSetGroup((Composite) getControl(), getSelection(), new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$ Dialog.applyDialogFont(getControl()); } }; mainPage.setTitle("Android Application"); mainPage.setDescription("Create Android Application Project"); this.addPage(mainPage); // only add page if there are already projects in the workspace if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) { referencePage = new WizardNewProjectReferencePage("basicReferenceProjectPage");//$NON-NLS-1$ referencePage.setTitle("Project References"); referencePage.setDescription("Project References"); this.addPage(referencePage); } }
@SuppressWarnings("unused") private WizardNewProjectReferencePage getWizardNewProjectReferencePage() { WizardNewProjectReferencePage referencePage = new WizardNewProjectReferencePage( "basicReferenceProjectPage"); referencePage.setTitle(ResourceMessages.NewProject_referenceTitle); referencePage.setDescription(ResourceMessages.NewProject_referenceDescription); return referencePage; }
/** * Adds the project references page to the wizard. */ protected void addProjectReferencePage() { // only add page if there are already projects in the workspace // i.e.: always adding reference page now instead of doing the check below because the django wizard // had problems when creating a new project and there were no projects in the workspace // (so, made the simpler solution which was just always showing that page) // // if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) { referencePage = new WizardNewProjectReferencePage("Reference Page"); referencePage.setTitle("Reference page"); referencePage.setDescription("Select referenced projects"); this.addPage(referencePage); }