protected static URL websiteURL;
static {
try {
websiteURL = new URL( [[#variable113d1ec0]]);
}
catch (MalformedURLException
mue) {
}
//does not happen
}
/**
* Construct the default ASpell plugin.
*/
/**
* Construct the default GPG plugin.
*/
public [[#variable113d1e60]]() {
super();
}
public String getDescription() {
// TODO (@author fdietz): i18n
return [[#variable113d1ce0]];
}
public URL getWebsite() {
return websiteURL;
}
public File locate() {
/* If this is a unix-based system, check the 2 best-known areas for the
* aspell binary.
*/
/* If this is a unix-based system, check the 2 best-known areas for the
* gpg binary.
*/
if (OSInfo.isLinux() || OSInfo.isSolaris()) {
if (defaultLinux.exists()) {
return defaultLinux;
}
else
if (defaultLocalLinux.exists()) {
return defaultLocalLinux;
}
}
/* RIYAD: The Prefs API cannot be used to read the Window's registry,
* it is coded to use the registry (if available) as a backing store
* on in the SOFTWARE/JavaSoft/Prefs registry keys for HKEY_CURRENT_USER
* and HKEY_LOCAL_MACHINE paths. I have seen a few java apps that use
* the Windows registry and they all required a native lib to do it.
*/
/* If this is windows, check the default installation location for the
* aspell.exe binary.
*/
/* If this is windows, check the default installation location for the
* gpg.exe binary.
*/
if (OSInfo.isWin32Platform() && defaultWin.exists()) {
return defaultWin;
}
/* Couldn't find anything, so return null and let the wizard ask the
* user.
*/
return null;
}
|