|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gui.help.AbstractHelpFileStorageManager jap.JARHelpFileStorageManager
public final class JARHelpFileStorageManager
Handling of the JonDo help files
Field Summary | |
---|---|
static java.lang.String |
HELP_VERSION_ATTRIBUTE
|
static java.lang.String |
HELP_VERSION_FILE
|
static java.lang.String |
HELP_VERSION_NODE
|
private ZipArchiver |
m_archiver
|
private java.lang.String |
m_helpPath
|
Fields inherited from class gui.help.AbstractHelpFileStorageManager |
---|
HELP_DIR_EXISTS, HELP_FOLDER, HELP_INVALID_NOREAD, HELP_INVALID_NOWRITE, HELP_INVALID_NULL, HELP_INVALID_PATH_NOT_EXISTS, HELP_JONDO_EXISTS, HELP_NESTED, HELP_NO_DIR, HELP_VALID, HELP_VIRTUAL |
Constructor Summary | |
---|---|
JARHelpFileStorageManager()
|
Method Summary | |
---|---|
private static void |
createHelpVersionDoc(java.lang.String a_extractionPath)
creates an XML document containing the version of the JonDo help which has to match the actual JonDo version |
boolean |
ensureMostRecentVersion(java.lang.String helpPath)
|
boolean |
extractHelpFiles(java.lang.String a_extractionPath)
|
private boolean |
extractHelpFiles(java.lang.String a_extractionPath,
boolean bAcceptHelpFolderInPath)
|
private java.io.File |
getHelpFolder()
convenience function that returns a file reference to the current help root folder |
private java.lang.String |
getHelpVersion(java.lang.String a_helpFolder)
Reads the version string out of the help version XML file The help version number corresponds to the version number of the JonDo |
java.util.Observable |
getStorageObservable()
returns an observable object which allows ViewObjects to display storage processes, i.e. |
boolean |
handleHelpPathChanged(java.lang.String oldHelpPath,
java.lang.String newHelpPath,
boolean a_bIgnoreExistingHelpDir)
Performs the specific file storage operation to maintain a consistent file storage state when the help path changes |
boolean |
helpInstallationExists(java.lang.String helpPath)
|
java.lang.String |
helpPathValidityCheck(java.lang.String a_absolutePath,
boolean a_bIgnoreExistingHelpDir)
|
boolean |
helpVersionMismatch()
checks whether the help version number matches the JonDo version number |
private boolean |
installHelp(boolean a_bIgnoreExistingHelpDir)
installs the JonDo help externally out the JonDo Jarfile in the specified external destination folder. |
private boolean |
isHelpInstalled()
checks if there is a help installed in the specified external help path |
private boolean |
removeOldHelp(java.lang.String parentPath,
boolean a_bIgnoreExistingHelpDir)
|
private void |
setHelpPath(java.lang.String helpPath)
sets the specified path for external installation of the help files performs no validityCheck, because it is only called by handleHelpPathChanged, which is invoked by the JAPModel, which itself performs a validity check |
Methods inherited from class gui.help.AbstractHelpFileStorageManager |
---|
getInitPath, getLocalisedHelpDir |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HELP_VERSION_NODE
public static final java.lang.String HELP_VERSION_ATTRIBUTE
public static final java.lang.String HELP_VERSION_FILE
private java.lang.String m_helpPath
private ZipArchiver m_archiver
Constructor Detail |
---|
public JARHelpFileStorageManager()
Method Detail |
---|
private void setHelpPath(java.lang.String helpPath)
public boolean helpVersionMismatch()
public boolean handleHelpPathChanged(java.lang.String oldHelpPath, java.lang.String newHelpPath, boolean a_bIgnoreExistingHelpDir)
AbstractHelpFileStorageManager
handleHelpPathChanged
in class AbstractHelpFileStorageManager
oldHelpPath
- the path of the help files before the change.newHelpPath
- the path where the help files shall be installeda_bIgnoreExistingHelpDir
- true if any existing directory named help
will be removed in the installation folder
public java.lang.String helpPathValidityCheck(java.lang.String a_absolutePath, boolean a_bIgnoreExistingHelpDir)
helpPathValidityCheck
in class AbstractHelpFileStorageManager
public java.util.Observable getStorageObservable()
AbstractHelpFileStorageManager
getStorageObservable
in class AbstractHelpFileStorageManager
public boolean extractHelpFiles(java.lang.String a_extractionPath)
extractHelpFiles
in class AbstractHelpFileStorageManager
private boolean extractHelpFiles(java.lang.String a_extractionPath, boolean bAcceptHelpFolderInPath)
private boolean installHelp(boolean a_bIgnoreExistingHelpDir)
private static void createHelpVersionDoc(java.lang.String a_extractionPath)
private boolean removeOldHelp(java.lang.String parentPath, boolean a_bIgnoreExistingHelpDir)
private boolean isHelpInstalled()
private java.lang.String getHelpVersion(java.lang.String a_helpFolder)
versionFile
- the XML file where the help version is specified.
private java.io.File getHelpFolder()
public boolean ensureMostRecentVersion(java.lang.String helpPath)
ensureMostRecentVersion
in class AbstractHelpFileStorageManager
public boolean helpInstallationExists(java.lang.String helpPath)
helpInstallationExists
in class AbstractHelpFileStorageManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |