Class CreatePluginProjectJob
- java.lang.Object
-
- org.palladiosimulator.analyzer.workflow.jobs.CreatePluginProjectJob
-
- All Implemented Interfaces:
de.uka.ipd.sdq.workflow.jobs.IJob
public class CreatePluginProjectJob extends Object implements 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
Constructors Constructor Description CreatePluginProjectJob(AbstractPCMWorkflowRunConfiguration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup(IProgressMonitor monitor)voidcreateContainerPlugin(IProgressMonitor monitor)The function implements all steps, which are necessary for the creation of a Plugin Projectvoidexecute(IProgressMonitor monitor)StringgetName()static IFoldergetOrCreateFolder(IProject project, String folderName)return a handle to the specified folder within the given project.static IProjectgetProject(String projectId)returns a new project to be used for the simulation
-
-
-
Constructor Detail
-
CreatePluginProjectJob
public CreatePluginProjectJob(AbstractPCMWorkflowRunConfiguration configuration)
-
-
Method Detail
-
execute
public void execute(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.UserCanceledException, de.uka.ipd.sdq.workflow.jobs.JobFailedException
- Specified by:
executein interfacede.uka.ipd.sdq.workflow.jobs.IJob- Throws:
de.uka.ipd.sdq.workflow.jobs.UserCanceledExceptionde.uka.ipd.sdq.workflow.jobs.JobFailedException
-
getName
public String getName()
- Specified by:
getNamein interfacede.uka.ipd.sdq.workflow.jobs.IJob
-
cleanup
public void cleanup(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
- Specified by:
cleanupin interfacede.uka.ipd.sdq.workflow.jobs.IJob- Throws:
de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
-
getProject
public static IProject getProject(String projectId)
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
-
-