org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard Java Examples
The following examples show how to use
org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavaProjectWizard.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
@Override public boolean performFinish() { boolean res= super.performFinish(); if (res) { final IJavaElement newElement= getCreatedElement(); IWorkingSet[] workingSets= fFirstPage.getWorkingSets(); if (workingSets.length > 0) { PlatformUI.getWorkbench().getWorkingSetManager().addToWorkingSets(newElement, workingSets); } BasicNewProjectResourceWizard.updatePerspective(fConfigElement); selectAndReveal(fSecondPage.getJavaProject().getProject()); Display.getDefault().asyncExec(new Runnable() { public void run() { IWorkbenchPart activePart= getActivePart(); if (activePart instanceof IPackagesViewPart) { PackageExplorerPart view= PackageExplorerPart.openInActivePerspective(); view.tryToReveal(newElement); } } }); } return res; }
Example #2
Source File: NewTmfProjectWizard.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public boolean performFinish() { fProjectName = fMainPage.getProjectName(); fProjectLocation = fMainPage.useDefaults() ? null : fMainPage.getLocationURI(); fProject = TmfProjectRegistry.createProject(fProjectName, fProjectLocation, new NullProgressMonitor()); BasicNewProjectResourceWizard.updatePerspective(fConfigElement); return true; }
Example #3
Source File: PythonProjectWizard.java From Pydev with Eclipse Public License 1.0 | 5 votes |
/** * The user clicked Finish button * * Launches another thread to create Python project. A progress monitor is shown in the UI thread. */ @Override public boolean performFinish() { createdProject = createNewProject(); IWorkingSet[] workingSets = projectPage.getWorkingSets(); if (workingSets.length > 0) { PlatformUI.getWorkbench().getWorkingSetManager().addToWorkingSets(createdProject, workingSets); //Workaround to properly show project in Package Explorer: if Top Level Elements are //working sets, and the destination working set of the new project is selected, that set //must be reselected in order to display the project. PydevPackageExplorer pView = (PydevPackageExplorer) PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getActivePage() .findView("org.python.pydev.navigator.view"); if (pView != null) { IWorkingSet[] inputSets = ((PydevCommonViewer) pView.getCommonViewer()).getSelectedWorkingSets(); if (inputSets != null && inputSets.length == 1) { IWorkingSet inputSet = inputSets[0]; if (inputSet != null) { for (IWorkingSet destinationSet : workingSets) { if (inputSet.equals(destinationSet)) { pView.getCommonViewer().setInput(inputSet); break; } } } } } } // Switch to default perspective (will ask before changing) BasicNewProjectResourceWizard.updatePerspective(fConfigElement); BasicNewResourceWizard.selectAndReveal(createdProject, workbench.getActiveWorkbenchWindow()); return true; }
Example #4
Source File: PythonGettingStartedWizard.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public boolean performFinish() { // Switch to default 'Pydev' perspective (asks before changing) BasicNewProjectResourceWizard.updatePerspective(fConfigElement); return true; }
Example #5
Source File: LangNewProjectWizard.java From goclipse with Eclipse Public License 1.0 | 5 votes |
@Override public boolean performFinish() { ProjectCreationOperation projectCreator = getProjectCreator(); boolean success = projectCreator.performCreateProject(); if(success) { BasicNewProjectResourceWizard.updatePerspective(fConfigElement); selectAndReveal(projectCreator.getCreatedProject()); projectCreator.performFinishActions(); } return success; }
Example #6
Source File: NewReportProjectWizard.java From birt with Eclipse Public License 1.0 | 4 votes |
/** * Updates the perspective for the active page within the window. */ protected void updatePerspective( ) { BasicNewProjectResourceWizard.updatePerspective( configElement ); }
Example #7
Source File: NewLibraryWizardAdapterFactory.java From birt with Eclipse Public License 1.0 | 4 votes |
public void updatePerspective( IConfigurationElement configElement ) { BasicNewProjectResourceWizard.updatePerspective( configElement ); }