|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.sourceforge.rssowl.controller.thread.UpdateManager
public class UpdateManager
The Update Manager checks the version-file on a server for new releases of RSSOwl and displays a message in a new tab if a new version is available. The message also contains a list of new features if available. The Manager is a thread to avoid freezing of RSSOwl while the update informations are re- trieved.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private java.lang.String |
changelog
Changelog of newest version |
private boolean |
displayNoNewVersionInfo
True if the user wants to be informed even if no updated is available |
static java.lang.String |
MAJOR_VERSION
Set the current major version of RSSOwl [Format: x.x] |
static java.lang.String |
MINOR_VERSION
Set the current minor version of RSSOwl [Format: YYYY-MM-DD] [PR Format: Preview Release YYYY-MM-DD] |
private java.lang.String |
onlineVersion
RSSOwl Version as String |
private GUI |
rssOwlGui
RSSOwl Maincontroller |
private boolean |
showErrorMessage
If TRUE show an warning message when the connection fails |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
UpdateManager(GUI rssOwlGui)
Instantiate a new UpdateManager |
|
UpdateManager(GUI rssOwlGui,
boolean showErrorMessage)
Instantiate a new UpdateManager |
|
| Method Summary | |
|---|---|
(package private) void |
createErrorConnectInfo()
Display warning message in a dialog |
(package private) void |
createInfoTab()
Display the message in the tab |
(package private) void |
createNoNewVersionInfo()
Display the message in a dialog |
private void |
getChangelog()
Get changelog from server |
static java.lang.String |
getPublicVersion()
Get the correct formatted public version identifier |
private void |
getVersion()
Get version number from server |
void |
run()
Load versionnumber and changelog from server |
void |
setDisplayNoNewVersionInfo(boolean displayNoNewVersionInfo)
Set TRUE if the user wants to be informed even if no upted is available |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MAJOR_VERSION
public static final java.lang.String MINOR_VERSION
private java.lang.String changelog
private boolean displayNoNewVersionInfo
private java.lang.String onlineVersion
private GUI rssOwlGui
private boolean showErrorMessage
| Constructor Detail |
|---|
public UpdateManager(GUI rssOwlGui)
rssOwlGui - The RSSOwl Maincontroller
public UpdateManager(GUI rssOwlGui,
boolean showErrorMessage)
rssOwlGui - The RSSOwl MaincontrollershowErrorMessage - TRUE: Show warning message if con. fails| Method Detail |
|---|
public static java.lang.String getPublicVersion()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setDisplayNoNewVersionInfo(boolean displayNoNewVersionInfo)
displayNoNewVersionInfo - Set to TRUE if RSSOwl should give out
information, even if no new version is available.
private void getChangelog()
throws java.io.IOException
java.io.IOException - If an IO Error occurs
private void getVersion()
throws java.io.IOException
java.io.IOException - If an IO Error occursvoid createErrorConnectInfo()
void createInfoTab()
void createNoNewVersionInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||