Class WizardExternalProjectImportPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.ui.wizards.datatransfer.WizardExternalProjectImportPage
- All Implemented Interfaces:
IDialogPage,IMessageProvider,IWizardPage
Standard main page for a wizard that creates a project resource from whose
location already contains a project.
This page may be used by clients as-is; it may be also be subclassed to suit.
Example usage:
mainPage = new WizardExternalProjectImportPage("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
ConstructorsConstructorDescriptionCreates a new project creation wizard page. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(Composite parent) Creates the top level control for this dialog page under the given parent composite.Returns the current project location path as entered by the user, or its anticipated initial value.Creates a project resource handle for the current project name field value.Returns the current project name as entered by the user, or its anticipated initial value.voidsetVisible(boolean visible) TheDialogPageimplementation of thisIDialogPagemethod sets the control to the given visibility state.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, toStringMethods 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, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelpMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
WizardExternalProjectImportPage
public WizardExternalProjectImportPage()Creates a new project creation wizard page.
-
-
Method Details
-
createControl
Description copied from interface:IDialogPageCreates the top level control for this dialog page under the given parent composite.Implementors are responsible for ensuring that the created control can be accessed via
getControl- Parameters:
parent- the parent composite
-
getLocationPath
Returns the current project location path as entered by the user, or its anticipated initial value.- Returns:
- the project location path, its anticipated initial value, or
nullif no project location path is known
-
getProjectHandle
Creates a project resource handle for the current project name field value.This method does not create the project resource; this is the responsibility of
IProject::createinvoked by the new project resource wizard.- Returns:
- the new project resource handle
-
getProjectName
Returns the current project name as entered by the user, or its anticipated initial value.- Returns:
- the project name, its anticipated initial value, or
nullif no project name is known
-
setVisible
public void setVisible(boolean visible) Description copied from class:DialogPageTheDialogPageimplementation of thisIDialogPagemethod sets the control to the given visibility state. Subclasses may extend.- Specified by:
setVisiblein interfaceIDialogPage- Overrides:
setVisiblein classDialogPage- Parameters:
visible-trueto make this page visible, andfalseto hide it
-