|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.ui.dialogs.WizardNewProjectCreationPage
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.");
Field Summary |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
WizardNewProjectCreationPage(String pageName)
Creates a new project creation wizard page. |
|
WizardNewProjectCreationPage(String pageName,
IStructuredSelection selection,
String[] workingSetTypes)
Deprecated. default placement of the working set group has been removed. If you wish to use the working set block please call createWorkingSetGroup(Composite, IStructuredSelection, String[])
in your overriden createControl(Composite)
implementation. This method will be removed before 3.4 ships. |
Method Summary | |
void |
createControl(Composite parent)
(non-Javadoc) Method declared on IDialogPage. |
WorkingSetGroup |
createWorkingSetGroup(Composite composite,
IStructuredSelection selection,
String[] supportedWorkingSetTypes)
Create a working set group for this page. |
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. |
IWorkingSet[] |
getSelectedWorkingSets()
Return the selected working sets, if any. |
void |
setInitialProjectName(String name)
Sets the initial project name that this page will use when created. |
void |
setVisible(boolean visible)
Sets the visibility of this dialog page. |
boolean |
useDefaults()
Returns the useDefaults. |
protected boolean |
validatePage()
Returns whether this page's controls currently all contain valid values. |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp |
Constructor Detail |
public WizardNewProjectCreationPage(String pageName)
pageName
- the name of this pagepublic WizardNewProjectCreationPage(String pageName, IStructuredSelection selection, String[] workingSetTypes)
createWorkingSetGroup(Composite, IStructuredSelection, String[])
in your overriden createControl(Composite)
implementation. This method will be removed before 3.4 ships.
pageName
- selection
- workingSetTypes
- Method Detail |
public void createControl(Composite parent)
parent
- the parent compositepublic WorkingSetGroup createWorkingSetGroup(Composite composite, IStructuredSelection selection, String[] supportedWorkingSetTypes)
composite
- the composite in which to create the groupselection
- the current workbench selectionsupportedWorkingSetTypes
- an array of working set type IDs that will restrict what types
of working sets can be chosen in this group
public 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)
IDialogPage
setVisible
in interface IDialogPage
setVisible
in class DialogPage
public boolean useDefaults()
public IWorkingSet[] getSelectedWorkingSets()
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.