public class NewJavaProjectWizardPageOne extends WizardPage
NewJavaProjectWizardPageTwo. Clients can extend this page to modify the UI: Add, remove
or reorder sections.
Clients may instantiate or subclass.
ERROR, INFORMATION, NONE, WARNING| Constructor and Description |
|---|
NewJavaProjectWizardPageOne()
Creates a new
NewJavaProjectWizardPageOne. |
| Modifier and Type | Method and Description |
|---|---|
void |
createControl(Composite parent) |
protected Control |
createInfoControl(Composite composite)
Creates the controls for the info section.
|
protected Control |
createJRESelectionControl(Composite composite)
Creates the controls for the JRE selection
|
protected Control |
createLocationControl(Composite composite)
Creates the controls for the location field.
|
protected Control |
createNameControl(Composite composite)
Creates the controls for the name field.
|
protected Control |
createProjectLayoutControl(Composite composite)
Creates the controls for the project layout selection.
|
protected Control |
createWorkingSetControl(Composite composite)
Creates the controls for the working set selection.
|
String |
getCompilerCompliance()
Returns the compiler compliance to be used for the project, or
null to use the workspace
compiler compliance. |
IClasspathEntry[] |
getDefaultClasspathEntries()
Returns the default class path entries to be added on new projects.
|
IPath |
getOutputLocation()
Returns the source class path entries to be added on new projects.
|
URI |
getProjectLocationURI()
Returns the current project location path as entered by the user, or
null
if the project should be created in the workspace. |
String |
getProjectName()
Gets a project name for the new project.
|
IClasspathEntry[] |
getSourceClasspathEntries()
Returns the source class path entries to be added on new projects.
|
IWorkingSet[] |
getWorkingSets()
Returns the working sets to which the new project should be added.
|
void |
init(IStructuredSelection selection,
IWorkbenchPart activePart)
The wizard owning this page can call this method to initialize the fields from the
current selection and active part.
|
protected void |
setControl(Control newControl) |
void |
setProjectLocationURI(URI uri)
Sets the project location of the new project or
null if the project
should be created in the workspace |
void |
setProjectName(String name)
Sets the name of the new project
|
void |
setVisible(boolean visible) |
void |
setWorkingSets(IWorkingSet[] workingSets)
Sets the working sets to which the new project should be added.
|
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelppublic NewJavaProjectWizardPageOne()
NewJavaProjectWizardPageOne.public void init(IStructuredSelection selection, IWorkbenchPart activePart)
selection - used to initialize the fieldsactivePart - the (typically active) part to initialize the fields or nullpublic void createControl(Composite parent)
protected void setControl(Control newControl)
setControl in class DialogPageprotected Control createNameControl(Composite composite)
composite - the parent compositeprotected Control createLocationControl(Composite composite)
composite - the parent compositeprotected Control createJRESelectionControl(Composite composite)
composite - the parent compositeprotected Control createProjectLayoutControl(Composite composite)
composite - the parent compositeprotected Control createWorkingSetControl(Composite composite)
composite - the parent compositeprotected Control createInfoControl(Composite composite)
composite - the parent compositepublic String getProjectName()
public void setProjectName(String name)
name - the new namepublic URI getProjectLocationURI()
null
if the project should be created in the workspace.public void setProjectLocationURI(URI uri)
null if the project
should be created in the workspaceuri - the new project locationpublic String getCompilerCompliance()
null to use the workspace
compiler compliance.nullpublic IClasspathEntry[] getDefaultClasspathEntries()
public IClasspathEntry[] getSourceClasspathEntries()
IClasspathEntry.CPE_SOURCE.public IPath getOutputLocation()
public IWorkingSet[] getWorkingSets()
public void setWorkingSets(IWorkingSet[] workingSets)
workingSets - the initial selected working setspublic void setVisible(boolean visible)
setVisible in interface IDialogPagesetVisible in class DialogPage
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.