net.sourceforge.java.feednread.backend.jobs
Class NewsFeedFavoritesTreeOPMLImportJob
java.lang.Object
net.sourceforge.java.util.jobs.Job
net.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
| Fields inherited from class net.sourceforge.java.util.jobs.Job |
|
|
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 |
importer
private NewsFeedFavoritesTreeOPMLImport importer
targetCategory
private Category targetCategory
opmlFile
private String opmlFile
mainWindow
private MainApplicationWindow mainWindow
NewsFeedFavoritesTreeOPMLImportJob
public NewsFeedFavoritesTreeOPMLImportJob(MainApplicationWindow mainWindow,
Category targetCategory,
String opmlFile)
Creates a new NewsFeedFavoritesTreeOPMLImportJob instance.
- Parameters:
mainWindow - the Feed'n Read main windotargetCategory - the Category to import intoopmlFile - the name of the opml file to import from
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)