| org.eclipse.ui.wizards.newresource.BasicNewResourceWizard org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard
BasicNewProjectResourceWizard | public class BasicNewProjectResourceWizard extends BasicNewResourceWizard implements IExecutableExtension(Code) | | Standard workbench wizard that creates a new project resource in the
workspace.
This class may be instantiated and used without further configuration; this
class is not intended to be subclassed.
Example:
IWorkbenchWizard wizard = new BasicNewProjectResourceWizard();
wizard.init(workbench, selection);
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.open();
During the call to open , the wizard dialog is presented to
the user. When the user hits Finish, a project resource with the
user-specified name is created, the dialog closes, and the call to
open returns.
|
Method Summary | |
public void | addPages() | public IProject | getNewProject() Returns the newly created project. | public void | init(IWorkbench workbench, IStructuredSelection currentSelection) | protected void | initializeDefaultPageImageDescriptor() | public boolean | performFinish() | public void | setInitializationData(IConfigurationElement cfig, String propertyName, Object data) Stores the configuration element for the wizard. | protected void | updatePerspective() Updates the perspective for the active page within the window. | public static void | updatePerspective(IConfigurationElement configElement) Updates the perspective based on the current settings in the
Workbench/Perspectives preference page.
Use the setting for the new perspective opening if we are set to open in
a new perspective.
A new project wizard class will need to implement the
IExecutableExtension interface so as to gain access to the
wizard's IConfigurationElement . |
BasicNewProjectResourceWizard | public BasicNewProjectResourceWizard()(Code) | | Creates a wizard for creating a new project resource in the workspace.
|
addPages | public void addPages()(Code) | | |
getNewProject | public IProject getNewProject()(Code) | | Returns the newly created project.
the created project, or null if project notcreated |
init | public void init(IWorkbench workbench, IStructuredSelection currentSelection)(Code) | | |
initializeDefaultPageImageDescriptor | protected void initializeDefaultPageImageDescriptor()(Code) | | |
performFinish | public boolean performFinish()(Code) | | |
setInitializationData | public void setInitializationData(IConfigurationElement cfig, String propertyName, Object data)(Code) | | Stores the configuration element for the wizard. The config element will
be used in performFinish to set the result perspective.
|
updatePerspective | protected void updatePerspective()(Code) | | Updates the perspective for the active page within the window.
|
updatePerspective | public static void updatePerspective(IConfigurationElement configElement)(Code) | | Updates the perspective based on the current settings in the
Workbench/Perspectives preference page.
Use the setting for the new perspective opening if we are set to open in
a new perspective.
A new project wizard class will need to implement the
IExecutableExtension interface so as to gain access to the
wizard's IConfigurationElement . That is the configuration
element to pass into this method.
Parameters: configElement - -the element we are updating with See Also: IPreferenceConstants.OPM_NEW_WINDOW See Also: IPreferenceConstants.OPM_ACTIVE_PAGE See Also: IWorkbenchPreferenceConstants.NO_NEW_PERSPECTIVE |
Fields inherited from org.eclipse.ui.wizards.newresource.BasicNewResourceWizard | protected IStructuredSelection selection(Code)(Java Doc)
|
Methods inherited from org.eclipse.ui.wizards.newresource.BasicNewResourceWizard | public IStructuredSelection getSelection()(Code)(Java Doc) public IWorkbench getWorkbench()(Code)(Java Doc) public void init(IWorkbench workbench, IStructuredSelection currentSelection)(Code)(Java Doc) protected void initializeDefaultPageImageDescriptor()(Code)(Java Doc) protected void selectAndReveal(IResource newResource)(Code)(Java Doc) public static void selectAndReveal(IResource resource, IWorkbenchWindow window)(Code)(Java Doc)
|
|
|