|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.jobs.Job
net.sourceforge.java.feednread.backend.jobs.NewsFeedParserJob
net.sourceforge.java.feednread.backend.jobs.NewsFeedUpdateJob
Job to update a NewsFeed either by a given url or a
Favorite.
| Field Summary |
| Fields inherited from class net.sourceforge.java.feednread.backend.jobs.NewsFeedParserJob |
favorite, mainWindow, newsFeedUrl |
| 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 | |
NewsFeedUpdateJob(Favorite favorite,
MainApplicationWindow mainWindow)
Creates a new NewsFeedUpdateJob to update the newsfeed
set in the specified Favorite.
|
|
NewsFeedUpdateJob(String newsFeedUrl,
MainApplicationWindow mainWindow)
Creates a new NewsFeedUpdateJob to update the newsfeed at
the specified url.
|
|
| Method Summary | |
void |
run(IProgressMonitor monitor)
Activates the update process. |
private void |
updateFailed(LanguageResource resource)
Called in case this NewsFeedUpdateJob failed.
|
private void |
updateSucceeded(NewsFeed updatedNewsFeed)
Called in case this NewsFeedUpdateJob succeeded. |
| Methods inherited from class net.sourceforge.java.feednread.backend.jobs.NewsFeedParserJob |
getNewsFeedFromCache, parseNewsFeed |
| 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 |
| Constructor Detail |
public NewsFeedUpdateJob(String newsFeedUrl,
MainApplicationWindow mainWindow)
Creates a new NewsFeedUpdateJob to update the newsfeed at
the specified url.
newsFeedUrl - the url of the newsfeed to updatemainWindow - the Feed'n Read main window
public NewsFeedUpdateJob(Favorite favorite,
MainApplicationWindow mainWindow)
Creates a new NewsFeedUpdateJob to update the newsfeed
set in the specified Favorite.
favorite - the Favorite to update the newsfeed formainWindow - the Feed'n Read main window| Method Detail |
public void run(IProgressMonitor monitor)
Activates the update process. If the update completes correctly and
succesfully the corresponding tab is updated in the
NewsFeedTabBar showing the gui representation of the
updated newsfeed.
IJob.getException()
method.
run in interface IRunnableWithProgressrun in class NewsFeedParserJobmonitor - the IProgressMonitor to use for reporting
the progress of this NewsFeedUpdateJobIRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor),
IJob.getException()private void updateSucceeded(NewsFeed updatedNewsFeed)
Called in case this NewsFeedUpdateJob succeeded. The
corresponding tab in the NewsFeedTabBar is updated to the
specified NewsFeed. In addition a success message is
shown in the application status line.
updatedNewsFeed - the successfully updated NewsFeedprivate void updateFailed(LanguageResource resource)
Called in case this NewsFeedUpdateJob failed.
An error message is shown in the application status line.
resource - the LanguageResource used
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||