Class NewJavaProjectWizardPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.wizard.IWizardPage
Whenever possible clients should use the class JavaCapabilityConfigurationPage
in favor of this class.
Clients may instantiate or subclass.
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
ConstructorDescriptionNewJavaProjectWizardPage
(org.eclipse.core.resources.IWorkspaceRoot root, org.eclipse.ui.dialogs.WizardNewProjectCreationPage mainpage) Deprecated.Creates a Java project wizard creation page. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(org.eclipse.swt.widgets.Composite parent) Deprecated.void
dispose()
Deprecated.protected org.eclipse.core.runtime.IPath
Deprecated.Returns the project location path.Deprecated.Returns the Java project handle by converting the result ofgetProjectHandle()
into a Java project.org.eclipse.core.runtime.IPath
Deprecated.Returns the currently configured output location.protected org.eclipse.core.resources.IProject
Deprecated.Returns the project handle.Deprecated.Returns the currently configured classpath.org.eclipse.jface.operation.IRunnableWithProgress
Deprecated.Returns the runnable that will create the Java project.protected void
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
(org.eclipse.core.runtime.IPath path) Deprecated.Sets the default output location to be used for the new Java project.void
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.Methods inherited from class org.eclipse.jdt.ui.wizards.NewElementWizardPage
updateStatus, updateStatus
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, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, 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
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
Methods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
NewJavaProjectWizardPage
public NewJavaProjectWizardPage(org.eclipse.core.resources.IWorkspaceRoot root, org.eclipse.ui.dialogs.WizardNewProjectCreationPage mainpage) Deprecated.Creates a Java project wizard creation page.The Java project wizard reads project name and location from the main page.
- Parameters:
root
- the workspace rootmainpage
- the main page of the wizard
-
-
Method Details
-
dispose
public void dispose()Deprecated.- Specified by:
dispose
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
dispose
in classorg.eclipse.jface.dialogs.DialogPage
-
setDefaultOutputFolder
public void setDefaultOutputFolder(org.eclipse.core.runtime.IPath path) Deprecated.Sets the default output location to be used for the new Java project. This is the path of the folder (with the project) into which the Java builder will generate binary class files corresponding to the project's Java source files.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.- Parameters:
path
- the folder to be taken as the default output path
-
setDefaultClassPath
Deprecated.Sets the default classpath to be used for the new Java project.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.- Parameters:
entries
- the default classpath entriesappendDefaultJRE
-true
a variable entry for the default JRE (specified in the preferences) will be added to the classpath.
-
setProjectModified
public void setProjectModified()Deprecated.Sets the project state to modified. Doing so will initialize the page the next time it becomes visible.- Since:
- 2.0
-
getProjectHandle
protected org.eclipse.core.resources.IProject getProjectHandle()Deprecated.Returns the project handle. Subclasses should override this method if they don't provide a main page or if they provide their own main page implementation.- Returns:
- the project handle
-
getLocationPath
protected org.eclipse.core.runtime.IPath getLocationPath()Deprecated.Returns the project location path. Subclasses should override this method if they don't provide a main page or if they provide their own main page implementation.- Returns:
- the project location path
-
getNewJavaProject
Deprecated.Returns the Java project handle by converting the result ofgetProjectHandle()
into a Java project.- Returns:
- the Java project handle
- See Also:
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) Deprecated. -
initBuildPaths
protected void initBuildPaths()Deprecated.Forces the initialization of the Java project page. Default classpath or buildpath will be used if set. The initialization should only be performed when the project or default paths have changed. Toggling back and forward the pages without changes should not re-initialize the page, as changes from the user will be overwritten.- Since:
- 2.0
-
setVisible
public void setVisible(boolean visible) Deprecated.Extend this method to set a user defined default classpath or output location. The methodinitBuildPaths
is called when the page becomes visible the first time or the project or the default paths have changed.- Specified by:
setVisible
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
setVisible
in classNewElementWizardPage
- Parameters:
visible
- iftrue
the page becomes visible; otherwise it becomes invisible
-
getOutputLocation
public org.eclipse.core.runtime.IPath getOutputLocation()Deprecated.Returns the currently configured output location. Note that the returned path might not be valid.- Returns:
- the configured output location
- Since:
- 2.0
-
getRawClassPath
Deprecated.Returns the currently configured classpath. Note that the classpath might not be valid.- Returns:
- the configured classpath
- Since:
- 2.0
-
getRunnable
public org.eclipse.jface.operation.IRunnableWithProgress getRunnable()Deprecated.Returns the runnable that will create the Java project. The runnable will create and open the project if needed. The runnable will add the Java nature to the project, and set the project's classpath and output location.To create the new java project, execute this runnable
- Returns:
- the runnable
-
NewJavaProjectWizardPageTwo
orJavaCapabilityConfigurationPage
.