Class CreatePluginProjectJob
java.lang.Object
org.palladiosimulator.analyzer.workflow.jobs.CreatePluginProjectJob
- All Implemented Interfaces:
de.uka.ipd.sdq.workflow.jobs.IJob
Creates an Eclipse plug-in project with default folders for source code and
models. The project can be used to store analysis date, e.g. (transformed)
PCM models, simulation code and so on.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup
(IProgressMonitor monitor) void
createContainerPlugin
(IProgressMonitor monitor) The function implements all steps, which are necessary for the creation of a Plugin Projectvoid
execute
(IProgressMonitor monitor) getName()
static IFolder
getOrCreateFolder
(IProject project, String folderName) return a handle to the specified folder within the given project.static IProject
getProject
(String projectId) returns a new project to be used for the simulation
-
Constructor Details
-
CreatePluginProjectJob
-
-
Method Details
-
execute
public void execute(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.UserCanceledException, de.uka.ipd.sdq.workflow.jobs.JobFailedException - Specified by:
execute
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Throws:
de.uka.ipd.sdq.workflow.jobs.UserCanceledException
de.uka.ipd.sdq.workflow.jobs.JobFailedException
-
getName
- Specified by:
getName
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
-
cleanup
public void cleanup(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.CleanupFailedException - Specified by:
cleanup
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Throws:
de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
-
getProject
returns a new project to be used for the simulation- Returns:
- a handle to the project to be used for the simulation
-
getOrCreateFolder
public static IFolder getOrCreateFolder(IProject project, String folderName) throws de.uka.ipd.sdq.workflow.jobs.JobFailedException return a handle to the specified folder within the given project. Creates a new one if no such folder exists so far.- Throws:
de.uka.ipd.sdq.workflow.jobs.JobFailedException
-
createContainerPlugin
public void createContainerPlugin(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.JobFailedException The function implements all steps, which are necessary for the creation of a Plugin Project- Parameters:
projectId
- The ID of the new projectmonitor
- The progress monitor which displays progress- Throws:
de.uka.ipd.sdq.workflow.jobs.JobFailedException
-