public class NewProjectAction
extends Action
Action that creates a new general project in workspace.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
projectName |
Constructor and Description |
---|
NewProjectAction() |
Modifier and Type | Method and Description |
---|---|
protected IProject |
createProject(java.lang.String projectName,
IProgressMonitor monitor)
Creates a new project
|
void |
run()
Run the action
|
void |
run(java.lang.String[] params,
ICheatSheetManager manager)
Execution of the action
|
protected void |
runWithProgress(IRunnableWithProgress runnable)
Run with progress
|
public void run(java.lang.String[] params, ICheatSheetManager manager)
params
- Array of parameters - index 0: projectNamemanager
- Cheatsheet Managerpublic void run()
protected void runWithProgress(IRunnableWithProgress runnable) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
runnable
- java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
protected IProject createProject(java.lang.String projectName, IProgressMonitor monitor) throws CoreException
projectName
- Name of the projectCoreException
CoreException