Class PluginInstaller

java.lang.Object
org.omegat.util.PluginInstaller

public final class PluginInstaller extends Object
Plugin installer utility class.
  • Method Details

    • getInstance

      public static PluginInstaller getInstance()
    • install

      public boolean install(File pluginFile)
      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

      public List<PluginInformation> getPluginList()
      Return the list of known available plugins. It includes plugins that have already been installed.
      Returns:
      List of PluginInformation