public class LoadMetadataRepositoryJob extends ProvisioningJob
Modifier and Type | Field and Description |
---|---|
static QualifiedName |
ACCUMULATE_LOAD_ERRORS
The key that should be used to set a property on a repository load job to indicate
that load errors should be accumulated into a single status rather than reported
as they occur.
|
static Object |
LOAD_FAMILY
An object representing the family of jobs that load repositories.
|
static QualifiedName |
SUPPRESS_AUTHENTICATION_JOB_MARKER
The key that should be used to set a property on a repository load job to indicate
that authentication should be suppressed when loading the repositories.
|
static QualifiedName |
SUPPRESS_REPOSITORY_EVENTS
The key that should be used to set a property on a repository load job to indicate
that repository events triggered by this job should be suppressed so that clients
will ignore all events related to the load.
|
static QualifiedName |
WIZARD_CLIENT_SHOULD_SCHEDULE
The key that should be used to set a property on a repository load job to indicate
that a wizard receiving this job needs to schedule it.
|
RESTART_NONE, RESTART_ONLY, RESTART_OR_APPLY
Constructor and Description |
---|
LoadMetadataRepositoryJob(ProvisioningUI ui)
Create a job that loads the metadata repositories known by the specified RepositoryTracker.
|
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(Object family)
Returns whether this job belongs to the given family.
|
void |
reportAccumulatedStatus()
Report the accumulated status for repository load failures.
|
IStatus |
runModal(IProgressMonitor monitor)
Perform the specific work involved in running this job in
the current thread.
|
protected boolean |
shouldAccumulateFailures() |
getErrorStatus, getRestartPolicy, getSession, run, setAdditionalProgressMonitor
addJobChangeListener, cancel, canceling, create, 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
getAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdapter
public static final Object LOAD_FAMILY
public static final QualifiedName SUPPRESS_AUTHENTICATION_JOB_MARKER
public static final QualifiedName SUPPRESS_REPOSITORY_EVENTS
public static final QualifiedName WIZARD_CLIENT_SHOULD_SCHEDULE
public static final QualifiedName ACCUMULATE_LOAD_ERRORS
public LoadMetadataRepositoryJob(ProvisioningUI ui)
ui
- the ProvisioningUI providing the necessary servicespublic IStatus runModal(IProgressMonitor monitor)
ProvisioningJob
runModal
in class ProvisioningJob
monitor
- the progress monitor to use for the operationprotected boolean shouldAccumulateFailures()
public void reportAccumulatedStatus()
public boolean belongsTo(Object family)
Job
Clients may override this method. This default implementation always returns
false
. Overriding implementations must return false
for families they do not recognize.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.