public class NewJavaProjectWizardPage extends NewElementWizardPage
Whenever possible clients should use the class JavaCapabilityConfigurationPage
in favor of this class.
Clients may instantiate or subclass.
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
NewJavaProjectWizardPage(IWorkspaceRoot root,
WizardNewProjectCreationPage mainpage)
Deprecated.
Creates a Java project wizard creation page.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent)
Deprecated.
|
void |
dispose()
Deprecated.
|
protected IPath |
getLocationPath()
Deprecated.
Returns the project location path.
|
IJavaProject |
getNewJavaProject()
Deprecated.
Returns the Java project handle by converting the result of
getProjectHandle() into a Java project. |
IPath |
getOutputLocation()
Deprecated.
Returns the currently configured output location.
|
protected IProject |
getProjectHandle()
Deprecated.
Returns the project handle.
|
IClasspathEntry[] |
getRawClassPath()
Deprecated.
Returns the currently configured classpath.
|
IRunnableWithProgress |
getRunnable()
Deprecated.
Returns the runnable that will create the Java project.
|
protected void |
initBuildPaths()
Deprecated.
Forces the initialization of the Java project page.
|
void |
setDefaultClassPath(IClasspathEntry[] entries,
boolean appendDefaultJRE)
Deprecated.
Sets the default classpath to be used for the new Java project.
|
void |
setDefaultOutputFolder(IPath path)
Deprecated.
Sets the default output location to be used for the new Java project.
|
void |
setProjectModified()
Deprecated.
Sets the project state to modified.
|
void |
setVisible(boolean visible)
Deprecated.
Extend this method to set a user defined default classpath or output location.
|
updateStatus, updateStatus
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
public NewJavaProjectWizardPage(IWorkspaceRoot root, WizardNewProjectCreationPage mainpage)
The Java project wizard reads project name and location from the main page.
root
- the workspace rootmainpage
- the main page of the wizardpublic void dispose()
dispose
in interface IDialogPage
dispose
in class DialogPage
public void setDefaultOutputFolder(IPath path)
The wizard will create this folder if required.
The default classpath will be applied when initBuildPaths
is
called. This is done automatically when the page becomes visible and
the project or the default paths have changed.
path
- the folder to be taken as the default output pathpublic void setDefaultClassPath(IClasspathEntry[] entries, boolean appendDefaultJRE)
The caller of this method is responsible for creating the classpath entries
for the IJavaProject
that corresponds to the created project.
The caller is responsible for creating any new folders that might be mentioned
on the classpath.
The default output location will be applied when initBuildPaths
is
called. This is done automatically when the page becomes visible and
the project or the default paths have changed.
entries
- the default classpath entriesappendDefaultJRE
- true
a variable entry for the
default JRE (specified in the preferences) will be added to the classpath.public void setProjectModified()
protected IProject getProjectHandle()
protected IPath getLocationPath()
public IJavaProject getNewJavaProject()
getProjectHandle()
into a Java project.getProjectHandle()
public void createControl(Composite parent)
protected void initBuildPaths()
public void setVisible(boolean visible)
initBuildPaths
is called when the page becomes
visible the first time or the project or the default paths have changed.setVisible
in interface IDialogPage
setVisible
in class NewElementWizardPage
visible
- if true
the page becomes visible; otherwise
it becomes invisiblepublic IPath getOutputLocation()
public IClasspathEntry[] getRawClassPath()
public IRunnableWithProgress getRunnable()
To create the new java project, execute this runnable
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.