|
Eclipse JDT Release 3.6 |
||||||||||
| 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.jdt.ui.wizards.NewJavaProjectWizardPageOne
public class NewJavaProjectWizardPageOne
The first page of the New Java Project wizard. This page is typically used in combination with
NewJavaProjectWizardPageTwo. Clients can extend this page to modify the UI: Add, remove
or reorder sections.
Clients may instantiate or subclass.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
NewJavaProjectWizardPageOne()
Creates a new NewJavaProjectWizardPageOne. |
|
| Method Summary | |
|---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Control |
createInfoControl(org.eclipse.swt.widgets.Composite composite)
Creates the controls for the info section. |
protected org.eclipse.swt.widgets.Control |
createJRESelectionControl(org.eclipse.swt.widgets.Composite composite)
Creates the controls for the JRE selection |
protected org.eclipse.swt.widgets.Control |
createLocationControl(org.eclipse.swt.widgets.Composite composite)
Creates the controls for the location field. |
protected org.eclipse.swt.widgets.Control |
createNameControl(org.eclipse.swt.widgets.Composite composite)
Creates the controls for the name field. |
protected org.eclipse.swt.widgets.Control |
createProjectLayoutControl(org.eclipse.swt.widgets.Composite composite)
Creates the controls for the project layout selection. |
protected org.eclipse.swt.widgets.Control |
createWorkingSetControl(org.eclipse.swt.widgets.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. |
org.eclipse.core.runtime.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. |
org.eclipse.ui.IWorkingSet[] |
getWorkingSets()
Returns the working sets to which the new project should be added. |
void |
init(org.eclipse.jface.viewers.IStructuredSelection selection,
org.eclipse.ui.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(org.eclipse.swt.widgets.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(org.eclipse.ui.IWorkingSet[] workingSets)
Sets the working sets to which the new project should be added. |
| 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, 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 NewJavaProjectWizardPageOne()
NewJavaProjectWizardPageOne.
| Method Detail |
|---|
public void init(org.eclipse.jface.viewers.IStructuredSelection selection,
org.eclipse.ui.IWorkbenchPart activePart)
selection - used to initialize the fieldsactivePart - the (typically active) part to initialize the fields or nullpublic void createControl(org.eclipse.swt.widgets.Composite parent)
protected void setControl(org.eclipse.swt.widgets.Control newControl)
setControl in class org.eclipse.jface.dialogs.DialogPageprotected org.eclipse.swt.widgets.Control createNameControl(org.eclipse.swt.widgets.Composite composite)
composite - the parent composite
protected org.eclipse.swt.widgets.Control createLocationControl(org.eclipse.swt.widgets.Composite composite)
composite - the parent composite
protected org.eclipse.swt.widgets.Control createJRESelectionControl(org.eclipse.swt.widgets.Composite composite)
composite - the parent composite
protected org.eclipse.swt.widgets.Control createProjectLayoutControl(org.eclipse.swt.widgets.Composite composite)
composite - the parent composite
protected org.eclipse.swt.widgets.Control createWorkingSetControl(org.eclipse.swt.widgets.Composite composite)
composite - the parent composite
protected org.eclipse.swt.widgets.Control createInfoControl(org.eclipse.swt.widgets.Composite composite)
composite - the parent composite
public 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 workspace
uri - the new project locationpublic String getCompilerCompliance()
null to use the workspace
compiler compliance.
nullpublic IClasspathEntry[] getDefaultClasspathEntries()
public IClasspathEntry[] getSourceClasspathEntries()
IClasspathEntry.CPE_SOURCE.
public org.eclipse.core.runtime.IPath getOutputLocation()
public org.eclipse.ui.IWorkingSet[] getWorkingSets()
public void setWorkingSets(org.eclipse.ui.IWorkingSet[] workingSets)
workingSets - the initial selected working setspublic void setVisible(boolean visible)
setVisible in interface org.eclipse.jface.dialogs.IDialogPagesetVisible in class org.eclipse.jface.dialogs.DialogPage
|
Eclipse JDT Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.