Package org.eclipse.ui.dialogs
Class WizardNewProjectReferencePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.ui.dialogs.WizardNewProjectReferencePage
- All Implemented Interfaces:
IDialogPage
,IMessageProvider
,IWizardPage
Standard project reference page for a wizard that creates a project resource.
This page may be used by clients as-is; it may be also be subclassed to suit.
Example usage:
referencePage = new WizardNewProjectReferencePage("basicReferenceProjectPage"); referencePage.setTitle("Project"); referencePage.setDescription("Select referenced projects.");
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
ConstructorDescriptionWizardNewProjectReferencePage
(String pageName) Creates a new project reference wizard page. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(Composite parent) Creates the top level control for this dialog page under the given parent composite.protected IStructuredContentProvider
Returns a content provider for the reference project viewer.IProject[]
Returns the referenced projects selected by the user.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, setVisible
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, setVisible
Methods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
WizardNewProjectReferencePage
Creates a new project reference wizard page.- Parameters:
pageName
- the name of this page
-
-
Method Details
-
createControl
Description copied from interface:IDialogPage
Creates 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
-
getContentProvider
Returns a content provider for the reference project viewer. It will return all projects in the workspace.- Returns:
- the content provider
-
getReferencedProjects
Returns the referenced projects selected by the user.- Returns:
- the referenced projects
-