public class WizardNewProjectCreationPage extends WizardPage
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.");
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
WizardNewProjectCreationPage(String pageName)
Creates a new project creation wizard page.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent)
(non-Javadoc)
Method declared on IDialogPage.
|
IPath |
getLocationPath()
Returns the current project location path as entered by
the user, or its anticipated initial value.
|
URI |
getLocationURI()
/**
Returns the current project location URI as entered by
the user, or
null if a valid project location
has not been entered. |
IProject |
getProjectHandle()
Creates a project resource handle for the current project name field value.
|
String |
getProjectName()
Returns the current project name as entered by the user, or its anticipated
initial value.
|
void |
setInitialProjectName(String name)
Sets the initial project name that this page will use when
created.
|
void |
setVisible(boolean visible)
The
DialogPage implementation of this
IDialogPage method sets the control to the given
visibility state. |
boolean |
useDefaults()
Returns the useDefaults.
|
protected boolean |
validatePage()
Returns whether this page's controls currently all contain valid
values.
|
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
public WizardNewProjectCreationPage(String pageName)
pageName
- the name of this pagepublic void createControl(Composite parent)
parent
- the parent compositepublic IPath getLocationPath()
public URI getLocationURI()
null
if a valid project location
has not been entered.null
public IProject getProjectHandle()
This method does not create the project resource; this is the responsibility
of IProject::create
invoked by the new project resource wizard.
public String getProjectName()
null
if no project name is knownpublic void setInitialProjectName(String name)
name
- initial project name for this pageIWorkspace.validateName(String, int)
protected boolean validatePage()
true
if all controls are valid, and
false
if at least one is invalidpublic void setVisible(boolean visible)
DialogPage
DialogPage
implementation of this
IDialogPage
method sets the control to the given
visibility state. Subclasses may extend.setVisible
in interface IDialogPage
setVisible
in class DialogPage
visible
- true
to make this page visible,
and false
to hide itpublic boolean useDefaults()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.