public class NewJavaProjectWizardPage extends NewElementWizardPage
Whenever possible clients should use the class JavaCapabilityConfigurationPage
in favor of this class.
Clients may instantiate or subclass.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.Constructor and Description |
---|
NewJavaProjectWizardPage(IWorkspaceRoot root,
WizardNewProjectCreationPage mainpage)
Creates a JavaScript project wizard creation page.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent) |
void |
dispose() |
protected IPath |
getLocationPath()
Returns the project location path.
|
IJavaScriptProject |
getNewJavaProject()
Returns the JavaScript project handle by converting the result of
getProjectHandle() into a JavaScript project. |
IPath |
getOutputLocation()
Returns the currently configured output location.
|
protected IProject |
getProjectHandle()
Returns the project handle.
|
IIncludePathEntry[] |
getRawClassPath()
Returns the currently configured classpath.
|
IRunnableWithProgress |
getRunnable()
Returns the runnable that will create the JavaScript project.
|
protected void |
initBuildPaths()
Forces the initialization of the JavaScript project page.
|
void |
setDefaultClassPath(IIncludePathEntry[] entries,
boolean appendDefaultJRE)
Sets the default classpath to be used for the new JavaScript project.
|
void |
setDefaultOutputFolder(IPath path)
Sets the default output location to be used for the new JavaScript 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.
|
updateStatus, updateStatus
public NewJavaProjectWizardPage(IWorkspaceRoot root, WizardNewProjectCreationPage mainpage)
The JavaScript project wizard reads project name and location from the main page.
root
- the workspace rootmainpage
- the main page of the wizardpublic void dispose()
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(IIncludePathEntry[] entries, boolean appendDefaultJRE)
The caller of this method is responsible for creating the classpath entries
for the IJavaScriptProject
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 IJavaScriptProject getNewJavaProject()
getProjectHandle()
into a JavaScript 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 class NewElementWizardPage
visible
- if true
the page becomes visible; otherwise
it becomes invisiblepublic IPath getOutputLocation()
public IIncludePathEntry[] getRawClassPath()
public IRunnableWithProgress getRunnable()
To create the new JavaScript project, execute this runnable
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.