Eclipse PDE
Release 3.8

org.eclipse.pde.core.target
Class LoadTargetDefinitionJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by org.eclipse.core.internal.resources.InternalWorkspaceJob
                  extended by org.eclipse.core.resources.WorkspaceJob
                      extended by 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

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
 
Constructor Summary
LoadTargetDefinitionJob(ITargetDefinition target)
          Constructs a new operation to load the specified target definition as the current target platform.
 
Method Summary
 boolean belongsTo(Object family)
           
static void load(ITargetDefinition target)
          Constructs a new operation to load the specified target definition as the current target platform.
static void load(ITargetDefinition target, IJobChangeListener listener)
          Constructs a new operation to load the specified target definition as the current target platform.
 IStatus runInWorkspace(IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.core.internal.resources.InternalWorkspaceJob
run
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

LoadTargetDefinitionJob

public LoadTargetDefinitionJob(ITargetDefinition target)
Constructs a new operation to load the specified target definition as the current target platform. When null is 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 null if none
Method Detail

load

public static void load(ITargetDefinition target)
Constructs a new operation to load the specified target definition as the current target platform. When null is 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 null if none

load

public static void load(ITargetDefinition target,
                        IJobChangeListener listener)
Constructs a new operation to load the specified target definition as the current target platform. When null is 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 null if none
listener - job change listener that will be added to the created job

belongsTo

public boolean belongsTo(Object family)
Overrides:
belongsTo in class Job

runInWorkspace

public IStatus runInWorkspace(IProgressMonitor monitor)
                       throws CoreException
Specified by:
runInWorkspace in class WorkspaceJob
Throws:
CoreException

Eclipse PDE
Release 3.8

Guidelines for using Eclipse APIs.

Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.