/** * Use this method to read the project settings from the wizard pages and feed them into the * project info class. */ @Override protected IProjectInfo getProjectInfo() { net.certware.intent.ui.wizard.IntentSpecificationProjectInfo projectInfo = new net.certware.intent.ui.wizard.IntentSpecificationProjectInfo(); projectInfo.setProjectName(mainPage.getProjectName()); return projectInfo; }
@Override public boolean performFinish() { try { // TODO Auto-generated method stub // See http://www.programcreek.com/2011/05/eclipse-jdt-tutorial-java-model/ // IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); // Crea un nuevo projecto final IProject project = root.getProject(page.getProjectName()); project.create(null); project.open(null); // Map props = project.getPersistentProperties(); /* //Crear el proyecto Java IProjectDescription description = project.getDescription(); //description.setLocation(page.getLocationPath()); //Associate nature description.setNatureIds(new String[]{JavaCore.NATURE_ID}); project.setDescription(description, null); IJavaProject javaProject = JavaCore.create(project); */ IFolder folder = project.getFolder("models"); folder.create(true, true, null); folder = project.getFolder("src-gen"); folder.create(true, true, null); return true; } catch (CoreException e) { // TODO Auto-generated catch block MessageDialog.openError(getShell(), "Error", e.getMessage()); return false; } }
/** * Use this method to read the project settings from the wizard pages and feed them into the * project info class. */ @Override protected IProjectInfo getProjectInfo() { org.uqbar.project.wollok.ui.wizard.WollokDslProjectInfo projectInfo = new org.uqbar.project.wollok.ui.wizard.WollokDslProjectInfo(); projectInfo.setProjectName(mainPage.getProjectName()); return projectInfo; }
protected void doPerformFinish(IProgressMonitor monitor) throws Exception { new org.emftext.sdk.concretesyntax.resource.cs.ui.CsNewProjectWizardLogic() .createExampleProject( monitor, wizardNewProjectCreationPage.getLocationPath(), wizardNewProjectCreationPage.getProjectName(), org.emftext.sdk.concretesyntax.resource.cs.ui.CsUIPlugin.PLUGIN_ID, NEW_PROJECT_ZIP_FILE_NAME); }
/** * {@inheritDoc} * * @see org.eclipse.jface.wizard.Wizard#getNextPage(org.eclipse.jface.wizard.IWizardPage) */ @Override public IWizardPage getNextPage(IWizardPage page) { if (page instanceof WizardNewProjectCreationPage) { WizardNewProjectCreationPage newPage = (WizardNewProjectCreationPage) page; container = newPage.getProjectName(); container = container + "/src/" + container.replaceAll("\\.", "/"); // $NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ container = container + "/common"; // $NON-NLS-1$ this.newAcceleoModulesCreationPage.setContainer(container); } return super.getNextPage(page); }
@Override public boolean performFinish() { fNewRProject = new ProjectCreator( fFirstPage.getProjectName(), (fFirstPage.useDefaults()) ? null : fFirstPage.getLocationPath(), (fReferencePage != null) ? fReferencePage.getReferencedProjects() : null, fFirstPage.getSelectedWorkingSets()) { @Override protected void doConfigProject(final IProject project, final IProgressMonitor monitor) throws CoreException { RProjects.setupRProject(fNewRProject.getProjectHandle(), monitor); } }; final boolean result = super.performFinish(); if (result && fNewRProject.getProjectHandle() != null) { updatePerspective(); selectAndReveal(fNewRProject.getProjectHandle()); } return result; }