com.ibm.carma.ui.job
Class ExtractJob

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 com.ibm.carma.ui.job.AbstractCarmaJob
                  extended by com.ibm.carma.ui.job.FileExtensionJob
                      extended by com.ibm.carma.ui.job.RefreshJob
                          extended by com.ibm.carma.ui.job.ExtractJob
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable

public class ExtractJob
extends RefreshJob

This User Job will extract a container into a project. If the project does not exist, it will be created and mapped to the passed container. If the project already exists and is mapped to the same RepositoryInstance as container, then a new folder will be created and mapped to container.

IStatus's containing IStatus.ERROR are returned if


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Constructor Summary
ExtractJob(java.lang.String name, ResourceContainer container, org.eclipse.core.resources.IProject project)
          Creates a new Job for extracting a ResourceContainer into a Project.
ExtractJob(java.lang.String name, ResourceContainer container, org.eclipse.core.resources.IProject project, boolean refresh)
           
 
Method Summary
 org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class com.ibm.carma.ui.job.AbstractCarmaJob
displayCustomReturns, displayCustomReturns, displayCustomReturns, displayCustomReturns, getActionFromReturns, getActionName
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, 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, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

ExtractJob

public ExtractJob(java.lang.String name,
                  ResourceContainer container,
                  org.eclipse.core.resources.IProject project)
Creates a new Job for extracting a ResourceContainer into a Project.

Parameters:
name - name of the job
container - Resource container to extract to the given IProject
project - the project to extract the Resource Container content into

ExtractJob

public ExtractJob(java.lang.String name,
                  ResourceContainer container,
                  org.eclipse.core.resources.IProject project,
                  boolean refresh)
Parameters:
name - name of the job
container - Resource container to extract to the given IProject
project - the project to extract the Resource Container content into
refresh - true if the CARMA hierarchy should be refreshed prior to the extract operation
Method Detail

run

public org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
Overrides:
run in class RefreshJob