Package org.eclipse.pde.core.target
Class LoadTargetDefinitionJob
- java.lang.Object
- 
- org.eclipse.core.runtime.PlatformObject
- 
- org.eclipse.core.internal.jobs.InternalJob
- 
- org.eclipse.core.runtime.jobs.Job
- 
- org.eclipse.core.internal.resources.InternalWorkspaceJob
- 
- org.eclipse.core.resources.WorkspaceJob
- 
- org.eclipse.pde.core.target.LoadTargetDefinitionJob
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- Comparable,- IAdaptable
 
 public class LoadTargetDefinitionJob extends WorkspaceJob Sets the current target platform based on a target definition.- Since:
- 3.8
 
- 
- 
Constructor SummaryConstructors Constructor Description LoadTargetDefinitionJob(ITargetDefinition target)Constructs a new operation to load the specified target definition as the current target platform.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbelongsTo(Object family)static voidload(ITargetDefinition target)Constructs a new operation to load the specified target definition as the current target platform.static voidload(ITargetDefinition target, IJobChangeListener listener)Constructs a new operation to load the specified target definition as the current target platform.IStatusrunInWorkspace(IProgressMonitor monitor)- 
Methods inherited from class org.eclipse.core.runtime.jobs.JobaddJobChangeListener, 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.runtime.PlatformObjectgetAdapter
 
- 
 
- 
- 
- 
Constructor Detail- 
LoadTargetDefinitionJobpublic LoadTargetDefinitionJob(ITargetDefinition target) Constructs a new operation to load the specified target definition as the current target platform. Whennullis specified the target platform is empty and all other settings are default.Clients should use load(ITargetDefinition, IJobChangeListener)instead to ensure any existing jobs are cancelled.- Parameters:
- target- target definition or- nullif none
 
 
- 
 - 
Method Detail- 
loadpublic static void load(ITargetDefinition target) Constructs a new operation to load the specified target definition as the current target platform. Whennullis specified the target platform is empty and all other settings are default. This method will cancel all existing LoadTargetDefinitionJob instances then schedules the operation as a user job.- Parameters:
- target- target definition or- nullif none
 
 - 
loadpublic static void load(ITargetDefinition target, IJobChangeListener listener) Constructs a new operation to load the specified target definition as the current target platform. Whennullis specified the target platform is empty and all other settings are default. This method will cancel all existing LoadTargetDefinitionJob instances then schedules the operation as a user job. Adds the given listener to the job that is started.- Parameters:
- target- target definition or- nullif none
- listener- job change listener that will be added to the created job
 
 - 
runInWorkspacepublic IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException - Specified by:
- runInWorkspacein class- WorkspaceJob
- Throws:
- CoreException
 
 
- 
 
-