Class 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.
    • 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:
        execute in interface de.uka.ipd.sdq.workflow.jobs.IJob
        Throws:
        de.uka.ipd.sdq.workflow.jobs.UserCanceledException
        de.uka.ipd.sdq.workflow.jobs.JobFailedException
      • getName

        public String getName()
        Specified by:
        getName in interface de.uka.ipd.sdq.workflow.jobs.IJob
      • cleanup

        public void cleanup​(IProgressMonitor monitor)
                     throws de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
        Specified by:
        cleanup in interface de.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 project
        monitor - The progress monitor which displays progress
        Throws:
        de.uka.ipd.sdq.workflow.jobs.JobFailedException