| org.eclipse.ui.dialogs.WizardNewProjectCreationPage
WizardNewProjectCreationPage | public class WizardNewProjectCreationPage extends WizardPage (Code) | | Standard main page for a wizard that is creates a project resource.
This page may be used by clients as-is; it may be also be subclassed to suit.
Example usage:
mainPage = new WizardNewProjectCreationPage("basicNewProjectPage");
mainPage.setTitle("Project");
mainPage.setDescription("Create a new project resource.");
|
Method Summary | |
public void | createControl(Composite parent) (non-Javadoc)
Method declared on IDialogPage. | public WorkingSetGroup | createWorkingSetGroup(Composite composite, IStructuredSelection selection, String[] supportedWorkingSetTypes) Create a working set group for this page. | public IPath | getLocationPath() Returns the current project location path as entered by
the user, or its anticipated initial value. | public URI | getLocationURI() /**
Returns the current project location URI as entered by
the user, or null if a valid project location
has not been entered. | public IProject | getProjectHandle() Creates a project resource handle for the current project name field
value. | public String | getProjectName() Returns the current project name as entered by the user, or its anticipated
initial value. | public IWorkingSet[] | getSelectedWorkingSets() Return the selected working sets, if any. | public void | setInitialProjectName(String name) Sets the initial project name that this page will use when
created. | void | setLocationForSelection() Set the location to the default location if we are set to useDefaults. | public void | setVisible(boolean visible) | public boolean | useDefaults() Returns the useDefaults. | protected boolean | validatePage() Returns whether this page's controls currently all contain valid
values. |
projectNameField | Text projectNameField(Code) | | |
WizardNewProjectCreationPage | public WizardNewProjectCreationPage(String pageName)(Code) | | Creates a new project creation wizard page.
Parameters: pageName - the name of this page |
createControl | public void createControl(Composite parent)(Code) | | (non-Javadoc)
Method declared on IDialogPage.
|
createWorkingSetGroup | public WorkingSetGroup createWorkingSetGroup(Composite composite, IStructuredSelection selection, String[] supportedWorkingSetTypes)(Code) | | Create a working set group for this page. This method can only be called
once.
Parameters: composite - the composite in which to create the group Parameters: selection - the current workbench selection Parameters: supportedWorkingSetTypes - an array of working set type IDs that will restrict what typesof working sets can be chosen in this group the created group. If this method has been called previously theoriginal group will be returned. since: 3.4 |
getLocationPath | public IPath getLocationPath()(Code) | | Returns the current project location path as entered by
the user, or its anticipated initial value.
Note that if the default has been returned the path
in a project description used to create a project
should not be set.
the project location path or its anticipated initial value. |
getLocationURI | public URI getLocationURI()(Code) | | /**
Returns the current project location URI as entered by
the user, or null if a valid project location
has not been entered.
the project location URI, or null since: 3.2 |
getProjectHandle | public IProject getProjectHandle()(Code) | | Creates a project resource handle for the current project name field
value. The project handle is created relative to the workspace root.
This method does not create the project resource; this is the
responsibility of IProject::create invoked by the new
project resource wizard.
the new project resource handle |
getProjectName | public String getProjectName()(Code) | | Returns the current project name as entered by the user, or its anticipated
initial value.
the project name, its anticipated initial value, or null if no project name is known |
getSelectedWorkingSets | public IWorkingSet[] getSelectedWorkingSets()(Code) | | Return the selected working sets, if any. If this page is not configured
to interact with working sets this will be an empty array.
the selected working sets since: 3.4 |
setInitialProjectName | public void setInitialProjectName(String name)(Code) | | Sets the initial project name that this page will use when
created. The name is ignored if the createControl(Composite)
method has already been called. Leading and trailing spaces
in the name are ignored.
Providing the name of an existing project will not necessarily
cause the wizard to warn the user. Callers of this method
should first check if the project name passed already exists
in the workspace.
Parameters: name - initial project name for this page See Also: IWorkspace.validateName(Stringint) |
setLocationForSelection | void setLocationForSelection()(Code) | | Set the location to the default location if we are set to useDefaults.
|
setVisible | public void setVisible(boolean visible)(Code) | | |
useDefaults | public boolean useDefaults()(Code) | | Returns the useDefaults.
boolean |
validatePage | protected boolean validatePage()(Code) | | Returns whether this page's controls currently all contain valid
values.
true if all controls are valid, andfalse if at least one is invalid |
|
|