net.sourceforge.java.feednread.backend.jobs
Class NewsFeedUpdateManagerJob

java.lang.Object
  extended bynet.sourceforge.java.util.jobs.Job
      extended bynet.sourceforge.java.feednread.backend.jobs.NewsFeedUpdateManagerJob
All Implemented Interfaces:
IJob, IRunnableWithProgress

public class NewsFeedUpdateManagerJob
extends Job

Coordinates the well-regulated update of a Favorite bundle, e.g. a parent Category.

Author:
Sebastian Machhausen

Field Summary
private  MainApplicationWindow mainWindow
           
private  Favorite[] newsFeedFavorites
           
 
Fields inherited from class net.sourceforge.java.util.jobs.Job
 
Fields inherited from interface net.sourceforge.java.util.jobs.IJob
HIGH_PRIORITY, LOW_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NewsFeedUpdateManagerJob(MainApplicationWindow mainWindow, Favorite[] newsFeedFavorites)
           Creates a new NewsFeedUpdateManagerJob which coordinates the update of the specified Favoritess.
 
Method Summary
 void run(IProgressMonitor monitor)
           Activates the update process.
 
Methods inherited from class net.sourceforge.java.util.jobs.Job
cancel, done, getException, getJobManager, getName, getPriority, getStatus, getThread, isCanceled, join, setException, setJobManager, setName, setPriority, setThread, start, started, statusChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainWindow

private MainApplicationWindow mainWindow

newsFeedFavorites

private Favorite[] newsFeedFavorites
Constructor Detail

NewsFeedUpdateManagerJob

public NewsFeedUpdateManagerJob(MainApplicationWindow mainWindow,
                                Favorite[] newsFeedFavorites)

Creates a new NewsFeedUpdateManagerJob which coordinates the update of the specified Favoritess.

Parameters:
mainWindow - the Feed'n Read main window
newsFeedFavorites - the Favorites to update
Method Detail

run

public void run(IProgressMonitor monitor)
         throws InvocationTargetException,
                InterruptedException

Activates the update process.

Parameters:
monitor - the IProgressMonitor to use for reporting the progress of this NewsFeedUpdateManagerJob
Throws:
InvocationTargetException
InterruptedException
See Also:
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)