public class NewJavaProjectWizardPageTwo extends JavaCapabilityConfigurationPage
JavaCapabilityConfigurationPage
, the wizard page does an
early project creation (so that linked folders can be defined) and, if an
existing external location was specified, detects the class path.
Clients may instantiate or subclass.
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
NewJavaProjectWizardPageTwo(NewJavaProjectWizardPageOne mainPage)
Constructor for the
NewJavaProjectWizardPageTwo . |
Modifier and Type | Method and Description |
---|---|
protected IProject |
createProvisonalProject()
Creates the provisional project on which the wizard is working on.
|
protected void |
initializeBuildPath(IJavaProject javaProject,
IProgressMonitor monitor)
Evaluates the new build path and output folder according to the settings on the first page.
|
void |
performCancel()
Called from the wizard on cancel.
|
void |
performFinish(IProgressMonitor monitor)
Called from the wizard on finish.
|
protected void |
removeProvisonalProject()
Removes the provisional project.
|
void |
setVisible(boolean visible) |
protected boolean |
useNewSourcePage()
Clients can override this method to choose if the new source page is used.
|
configureJavaProject, configureJavaProject, createControl, createProject, createProject, dispose, getJavaProject, getOutputLocation, getRawClassPath, getRunnable, init, setFocus
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 NewJavaProjectWizardPageTwo(NewJavaProjectWizardPageOne mainPage)
NewJavaProjectWizardPageTwo
.mainPage
- the first page of the wizardprotected final boolean useNewSourcePage()
JavaCapabilityConfigurationPage
false
is returned.useNewSourcePage
in class JavaCapabilityConfigurationPage
true
if the new source page should be used.public void setVisible(boolean visible)
setVisible
in interface IDialogPage
setVisible
in class NewElementWizardPage
protected void initializeBuildPath(IJavaProject javaProject, IProgressMonitor monitor) throws CoreException
JavaCapabilityConfigurationPage.init(IJavaProject, IPath, IClasspathEntry[], boolean)
.
Clients can override this method.javaProject
- the new project which is already created when this method is called.monitor
- the progress monitorCoreException
- thrown when initializing the build path failedpublic void performFinish(IProgressMonitor monitor) throws CoreException, InterruptedException
monitor
- the progress monitorCoreException
- thrown when the project creation or configuration failedInterruptedException
- thrown when the user cancelled the project creationprotected IProject createProvisonalProject()
protected void removeProvisonalProject()
public void performCancel()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.