|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.equinox.p2.operations.ProvisioningJob
org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob
public class LoadMetadataRepositoryJob
A job that loads a set of metadata repositories and caches the loaded repositories. This job can be used when repositories are loaded by a client who wishes to maintain (and pass along) the in-memory references to the repositories. For example, repositories can be loaded in the background and then passed to another component, thus ensuring that the repositories remain loaded in memory.
Field Summary | |
---|---|
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. |
Fields inherited from class org.eclipse.equinox.p2.operations.ProvisioningJob |
---|
RESTART_NONE, RESTART_ONLY, RESTART_OR_APPLY |
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 | |
---|---|
LoadMetadataRepositoryJob(ProvisioningUI ui)
Create a job that loads the metadata repositories known by the specified RepositoryTracker. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.equinox.p2.operations.ProvisioningJob |
---|
getErrorStatus, getRestartPolicy, getSession, run, setAdditionalProgressMonitor |
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 |
Field Detail |
---|
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
Constructor Detail |
---|
public LoadMetadataRepositoryJob(ProvisioningUI ui)
ui
- the ProvisioningUI providing the necessary servicesMethod Detail |
---|
public IStatus runModal(IProgressMonitor monitor)
ProvisioningJob
runModal
in class ProvisioningJob
monitor
- the progress monitor to use for the operation
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.
belongsTo
in class Job
family
- the job family identifier
true
if this job belongs to the given family, and
false
otherwise.
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.