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, setFocusupdateStatus, updateStatuscanFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetControl, getDescription, getErrorMessage, getMessage, getTitle, performHelppublic NewJavaProjectWizardPageTwo(NewJavaProjectWizardPageOne mainPage)
NewJavaProjectWizardPageTwo.mainPage - the first page of the wizardprotected final boolean useNewSourcePage()
JavaCapabilityConfigurationPagefalse is returned.useNewSourcePage in class JavaCapabilityConfigurationPagetrue if the new source page should be used.public void setVisible(boolean visible)
setVisible in interface IDialogPagesetVisible in class NewElementWizardPageprotected 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, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.