|
Eclipse JDT Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.dialogs.DialogPage org.eclipse.jface.wizard.WizardPage org.eclipse.jdt.ui.wizards.NewElementWizardPage org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPage
Standard wizard page for creating new Java projects. This page can be used in project creation wizards for projects and will configure the project with the Java nature. This page also allows the user to configure the Java project's output location for class files generated by the Java builder.
Whenever possible clients should use the class JavaCapabilityConfigurationPage in favour of this class.
Field Summary |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
NewJavaProjectWizardPage(IWorkspaceRoot root,
WizardNewProjectCreationPage mainpage)
Creates a Java project wizard creation page. |
Method Summary | |
void | createControl(Composite parent)
|
protected IPath | getLocationPath()
Returns the project locaction path. |
IJavaProject | getNewJavaProject()
Returns the Java project handle by converting the result of getProjectHandle() into a Java project. |
IPath | getOutputLocation()
Returns the currently configured output location. |
protected IProject | getProjectHandle()
Returns the project handle. |
IClasspathEntry[] | getRawClassPath()
Returns the currently configured classpath. |
IRunnableWithProgress | getRunnable()
Returns the runnable that will create the Java project. |
protected void | initBuildPaths()
Forces the initialization of the Java project page. |
void | setDefaultClassPath(IClasspathEntry[] entries,
boolean appendDefaultJRE)
Sets the default classpath to be used for the new Java project. |
void | setDefaultOutputFolder(IPath path)
Sets the default output location to be used for the new Java project. |
void | setProjectModified()
Sets the project state to modified. |
void | setVisible(boolean visible)
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, dispose, 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 |
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp |
Constructor Detail |
public NewJavaProjectWizardPage(IWorkspaceRoot root, WizardNewProjectCreationPage mainpage)
The Java project wizard reads project name and location from the main page.
Method Detail |
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.
public 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.
public void setProjectModified()
protected IProject getProjectHandle()
protected IPath getLocationPath()
public IJavaProject getNewJavaProject()
public void createControl(Composite parent)
protected void initBuildPaths()
public void setVisible(boolean visible)
public IPath getOutputLocation()
public IClasspathEntry[] getRawClassPath()
public IRunnableWithProgress getRunnable()
To create the new java project, execute this runnable
|
Eclipse JDT Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |