Class SafeProjectRestartJob

  • All Implemented Interfaces:
    Comparable, org.eclipse.core.runtime.IAdaptable

    public class SafeProjectRestartJob
    extends ProjectRestartJob
    Job to stop and re-start project service lifecycle. Unlike ProjectRestartJob this job starts exclusive operation before performing restart. In particular, this means
    • The job waits completion of a running exclusive operation.
    • The job is automatically canceled if the project was stopped before the operation was started.
    • Field Summary

      • Fields inherited from class org.eclipse.core.runtime.jobs.Job

        ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
      • Fields inherited from class org.eclipse.core.internal.jobs.InternalJob

        manager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.core.runtime.IStatus run​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      • Methods inherited from class org.eclipse.core.runtime.jobs.Job

        addJobChangeListener, cancel, canceling, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
      • Methods inherited from class org.eclipse.core.internal.jobs.InternalJob

        compareTo
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

        getAdapter
    • Constructor Detail

      • SafeProjectRestartJob

        public SafeProjectRestartJob​(IWorkspaceOrchestrator workspaceOrchestrator,
                                     IDtProject project)
        Creates an instance of the job.
        Parameters:
        workspaceOrchestrator - the workspace orchestrator, cannot be null
        project - the project, cannot be null
    • Method Detail

      • run

        protected org.eclipse.core.runtime.IStatus run​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Overrides:
        run in class ProjectRestartJob