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
public class WizardNewProjectReferencePage extends WizardPage
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
Constructors Constructor Description WizardNewProjectReferencePage(String pageName)Creates a new project reference wizard page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateControl(Composite parent)Creates the top level control for this dialog page under the given parent composite.protected IStructuredContentProvidergetContentProvider()Returns a content provider for the reference project viewer.IProject[]getReferencedProjects()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
-
-
-
-
Constructor Detail
-
WizardNewProjectReferencePage
public WizardNewProjectReferencePage(String pageName)
Creates a new project reference wizard page.- Parameters:
pageName- the name of this page
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
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
-
getContentProvider
protected IStructuredContentProvider getContentProvider()
Returns a content provider for the reference project viewer. It will return all projects in the workspace.- Returns:
- the content provider
-
getReferencedProjects
public IProject[] getReferencedProjects()
Returns the referenced projects selected by the user.- Returns:
- the referenced projects
-
-