/** {@inheritDoc} */ @Override protected WizardNewProjectCreationPage createNewProjectCreationPage() { WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage(); newProjectPage.setTitle("Papyrus SysML Project"); newProjectPage.setDescription("Create a New Papyrus SysML Project"); return newProjectPage; }
public void addPages() { channel = new ModelChannel("newBlockWizard"); new NewMetroProjectWizardController().initialize(); projectPage = new WizardNewProjectCreationPage("mainPage"); // $NON-NLS-1$ String title = MetroStudioUI.getResourceString("new.blockDevelopment.mainPage.title"); // $NON-NLS-1$ projectPage.setTitle(title); String descr = MetroStudioUI.getResourceString("new.blockDevelopment.mainPage.description"); // $NON-NLS-1$ projectPage.setDescription(descr); addPage(projectPage); selectionPage = new NewMetroProjectSelectionPage("selectionPage", channel); title = MetroStudioUI.getResourceString("new.blockDevelopment.selectionPage.title"); // $NON-NLS-1$ selectionPage.setTitle(title); descr = MetroStudioUI.getResourceString("new.blockDevelopment.mainPage.description"); // $NON-NLS-1$ selectionPage.setDescription(descr); addPage(selectionPage); }
@Override public void addPages() { // TODO Auto-generated method stub super.addPages(); page = new WizardNewProjectCreationPage("From Scratch Project Wizard"); page.setTitle("New Project"); page.setDescription("Creates a new planner project"); addPage(page); }
@Override public void addPages() { super.addPages(); mainPage = new WizardNewProjectCreationPage("basicNewProjectPage") // $NON-NLS-1$ { @Override public void createControl(Composite parent) { super.createControl(parent); validatePage(); } @Override protected boolean validatePage() { boolean valid = super.validatePage(); if (!valid) { return false; } // Check if there's already a directory/files at the destination IPath location = getLocationPath(); if (useDefaults()) { // needs to append the project name since getLocationPath() returns the workspace path // in this case location = location.append(getProjectName()); } File file = location.toFile(); if (file.exists()) { setMessage(Messages.NewSampleProjectWizard_LocationExistsMessage, WARNING); return true; } setErrorMessage(null); setMessage(null); return true; } }; mainPage.setTitle(Messages.NewSampleProjectWizard_ProjectPage_Title); mainPage.setDescription(Messages.NewSampleProjectWizard_ProjectPage_Description); addPage(mainPage); String name = sample.getName(); if (name != null) { mainPage.setInitialProjectName(name); } }
/** * Creates the sole wizard page contributed by this base implementation; the standard Eclipse * WizardNewProjectCreationPage. * * @see WizardNewProjectCreationPage#WizardNewProjectCreationPage(String) */ public void init(IWorkbench workbench, IStructuredSelection selection) { // Set default image for all wizard pages IPath path = new Path( org.emftext.sdk.concretesyntax.resource.cs.ui.CsUIResourceBundle .NEW_PROJECT_WIZARD_PAGE_ICON); Bundle bundle = org.emftext.sdk.concretesyntax.resource.cs.ui.CsUIPlugin.getDefault().getBundle(); URL url = FileLocator.find(bundle, path, null); ImageDescriptor descriptor = ImageDescriptor.createFromURL(url); setDefaultPageImageDescriptor(descriptor); wizardNewProjectCreationPage = new WizardNewProjectCreationPage(pageName); wizardNewProjectCreationPage.setTitle(pageTitle); wizardNewProjectCreationPage.setDescription(pageDescription); wizardNewProjectCreationPage.setInitialProjectName(pageProjectName); this.addPage(wizardNewProjectCreationPage); setWindowTitle( org.emftext.sdk.concretesyntax.resource.cs.ui.CsUIResourceBundle .NEW_PROJECT_WIZARD_WINDOW_TITLE); }
/** * Use this method to add pages to the wizard. The one-time generated version of this class will * add a default new project page to the wizard. */ public void addPages() { mainPage = new WizardNewProjectCreationPage("basicNewProjectPage"); mainPage.setTitle("IntentSpecification Project"); mainPage.setDescription("Create a new IntentSpecification project."); addPage(mainPage); }
/** * Use this method to add pages to the wizard. The one-time generated version of this class will * add a default new project page to the wizard. */ public void addPages() { mainPage = new WizardNewProjectCreationPage("basicNewProjectPage"); // $NON-NLS-1$ mainPage.setTitle(Messages.WollokDslNewProjectWizard_pageTitle); mainPage.setDescription(Messages.WollokDslNewProjectWizard_pageDescription); addPage(mainPage); }