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

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

public class NewsFeedFavoritesTreeOPMLImportJob
extends Job

Job to import the favorite structure embedded in an opml file into a Category.

Author:
Sebastian Machhausen

Field Summary
private  NewsFeedFavoritesTreeOPMLImport importer
           
private  MainApplicationWindow mainWindow
           
private  String opmlFile
           
private  Category targetCategory
           
 
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
NewsFeedFavoritesTreeOPMLImportJob(MainApplicationWindow mainWindow, Category targetCategory, String opmlFile)
           Creates a new NewsFeedFavoritesTreeOPMLImportJob instance.
 
Method Summary
 void run(IProgressMonitor monitor)
           Starts this NewsFeedFavoritesTreeOPMLImportJob.
 
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

importer

private NewsFeedFavoritesTreeOPMLImport importer

targetCategory

private Category targetCategory

opmlFile

private String opmlFile

mainWindow

private MainApplicationWindow mainWindow
Constructor Detail

NewsFeedFavoritesTreeOPMLImportJob

public NewsFeedFavoritesTreeOPMLImportJob(MainApplicationWindow mainWindow,
                                          Category targetCategory,
                                          String opmlFile)

Creates a new NewsFeedFavoritesTreeOPMLImportJob instance.

Parameters:
mainWindow - the Feed'n Read main windo
targetCategory - the Category to import into
opmlFile - the name of the opml file to import from
Method Detail

run

public void run(IProgressMonitor monitor)
         throws InvocationTargetException,
                InterruptedException

Starts this NewsFeedFavoritesTreeOPMLImportJob.

Throws:
InvocationTargetException - if the operation detects a request to cancel, using IProgressMonitor.isCanceled(), it should exit by throwing InterruptedException
InterruptedException
See Also:
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)