com.bbn.swede.core.libraries
Class RefreshLibraryJob

java.lang.Object
  extended byJob
      extended bycom.bbn.swede.core.libraries.RefreshLibraryJob
All Implemented Interfaces:
Runnable

public class RefreshLibraryJob
extends Job
implements Runnable

An Eclipse job that updates a library. This is the preferred way to refresh a library because it provides support for grouping operations into families, and also for Eclipse provided scheduling and background processing.

Author:
aperezlo
See Also:
Job, Serialized Form

Constructor Summary
RefreshLibraryJob(ILibraryDescriptor ild, String family)
          Create a new refresh job.
RefreshLibraryJob(ILibraryDescriptor libraryDescriptor, String jobFamily, boolean isUser)
          Creates a job to refresh an Ontology Library.
 
Method Summary
 boolean belongsTo(Object family)
          Compares family names.
 void run()
           
protected  IStatus run(IProgressMonitor monitor)
          This operation does not respect cancelation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefreshLibraryJob

public RefreshLibraryJob(ILibraryDescriptor ild,
                         String family)
Create a new refresh job.

Parameters:
ild - the library to be updated
family - the job family name, or null

RefreshLibraryJob

public RefreshLibraryJob(ILibraryDescriptor libraryDescriptor,
                         String jobFamily,
                         boolean isUser)
Creates a job to refresh an Ontology Library.

Parameters:
libraryDescriptor - The library
jobFamily - The name of the job family
isUser - true if this is a user job, false if not
Method Detail

belongsTo

public boolean belongsTo(Object family)
Compares family names.

Parameters:
family - Family name to compare to
Returns:
true if this job belongs to the specified family, false if not.
See Also:
org.eclipse.core.internal.jobs.InternalJob#belongsTo(java.lang.Object)

run

public void run()
Specified by:
run in interface Runnable

run

protected IStatus run(IProgressMonitor monitor)
This operation does not respect cancelation.

See Also:
org.eclipse.core.internal.jobs.InternalJob#run(org.eclipse.core.runtime.IProgressMonitor)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.