use of org.eclipse.ui.dialogs.WizardNewProjectReferencePage in project erlide_eclipse by erlang.
the class NewErlangProjectWizard method addPages.
@Override
public void addPages() {
try {
super.addPages();
info = new NewProjectData();
info.copyFrom(ErlangProjectProperties.DEFAULT);
buildPages = Maps.newEnumMap(ProjectConfigType.class);
mainPage = new ErlangNewProjectCreationPage("mainPage", info);
mainPage.setTitle(ErlideUIPlugin.getResourceString("wizards.titles.newproject"));
mainPage.setDescription(ErlideUIPlugin.getResourceString("wizards.descs.newproject"));
mainPage.setImageDescriptor(ErlideUIPlugin.getDefault().getImageDescriptor(ErlideUIConstants.IMG_NEW_PROJECT_WIZARD));
addPage(mainPage);
builderPage = new ErlangProjectBuilderPage("builderPage", info);
builderPage.setTitle(ErlideUIPlugin.getResourceString("wizards.titles.builderprefs"));
builderPage.setDescription(ErlideUIPlugin.getResourceString("wizards.descs.builderprefs"));
builderPage.setImageDescriptor(ErlideUIPlugin.getDefault().getImageDescriptor(ErlideUIConstants.IMG_NEW_PROJECT_WIZARD));
addPage(builderPage);
for (final ProjectConfigType builder : ProjectConfigType.values()) {
final ProjectPreferencesWizardPage buildPage = ProjectPreferencesWizardPageFactory.create(builder, info);
buildPages.put(builder, buildPage);
buildPage.setImageDescriptor(ErlideUIPlugin.getDefault().getImageDescriptor(ErlideUIConstants.IMG_NEW_PROJECT_WIZARD));
addPage(buildPage);
}
// only add page if there are already projects in the workspace
if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) {
referencePage = new WizardNewProjectReferencePage(// $NON-NLS-1$
"basicReferenceProjectPage");
referencePage.setTitle(WizardMessages.NewProject_referenceTitle);
referencePage.setDescription(WizardMessages.NewProject_referenceDescription);
addPage(referencePage);
}
} catch (final Exception x) {
reportError(x);
}
}
Aggregations