|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.gui.UpgradeLauncher
public class UpgradeLauncher
This class provides services to:
Constructor Summary | |
---|---|
UpgradeLauncher()
|
Method Summary | |
---|---|
static void |
checkForUpdates(boolean interactive)
Check whether a newer release of YAAC and/or the currently used plugins is available, displaying status. |
static boolean |
downloadNewReleases(java.util.List<Provider> providerList,
java.lang.String[] versions,
int numNeedsUpgrade,
java.lang.String[] pluginDistroName,
java.lang.String[] pluginDistroType,
boolean useSourceForge)
Download the distributions of the new versions of YAAC and/or the supported plugins in a place expected by the upgrade.jar program. |
static java.io.File |
getInstallRootDirectory()
Locate the directory where YAAC is installed. |
static void |
transferToLauncher()
Start up the upgrader.jar program and shut down YAAC to get it out of the way. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpgradeLauncher()
Method Detail |
---|
public static void checkForUpdates(boolean interactive)
interactive
- boolean true if no-upgrade-needed status should be reported (out-of-date status is always reported)public static java.io.File getInstallRootDirectory()
public static boolean downloadNewReleases(java.util.List<Provider> providerList, java.lang.String[] versions, int numNeedsUpgrade, java.lang.String[] pluginDistroName, java.lang.String[] pluginDistroType, boolean useSourceForge) throws java.io.IOException
providerList
- List of Provider objects currently installed in YAAC, providing their currently installed version numbersversions
- String array of versions of available upgrades for the Providers in the providerList in the same order (null version string if not available for upgrade)numNeedsUpgrade
- number of elements in the providerList that are candidates for upgrade (newer versions available)pluginDistroName
- String base name of the distribution file for YAAC or a pluginpluginDistroType
- String file type of the distribution file for YAAC or a pluginuseSourceForge
- boolean true if the SourceForge repository should be used as a download source
java.io.IOException
- if download could not succeed for some reasonpublic static void transferToLauncher() throws java.io.IOException
java.io.IOException
- if upgrade.jar could not be started or YAAC wouldn't shut down
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |