Package org.omegat.util
Class PluginInstaller
java.lang.Object
org.omegat.util.PluginInstaller
Plugin installer utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginInstallerReturn the list of known available plugins.booleanInstalls a plugin from the specified file.
-
Method Details
-
getInstance
-
install
Installs a plugin from the specified file.The method validates the plugin file, * unpacks it, checks the manifest information, and confirms the installation with the user. If the plugin is already installed, the user is prompted to overwrite or upgrade the plugin. Returns whether the installation was successful.
- Parameters:
pluginFile- the plugin file to be installed (either in JAR or ZIP format)- Returns:
- true if the plugin was successfully installed, false otherwise
-
getPluginList
Return the list of known available plugins. It includes plugins that have already been installed.- Returns:
- List of PluginInformation
-