Class ExternalFinder

java.lang.Object
org.omegat.externalfinder.ExternalFinder

public final class ExternalFinder extends Object
Entry point for ExternalFinder functionality.

ExternalFinder was originally a plugin developed by Chihiro Hio, and generously donated for inclusion in OmegaT itself.

See getProjectFile(IProject) and ExternalFinderItem for details about how this implementation's behavior differs from the original plugin.

See the plugin page or package.html for information about the XML format.

See Also:
  • Field Details

  • Method Details

    • loadPlugins

      public static void loadPlugins()
      OmegaT will call this method when loading.
    • unloadPlugins

      public static void unloadPlugins()
    • getGlobalConfig

      public static ExternalFinderConfiguration getGlobalConfig()
      Get the global configuration. This is stored in the user's OmegaT configuration directory. If the file does not exist, an empty configuration will be created and returned.
      Returns:
      The configuration (will never be null)
    • setGlobalConfig

      public static void setGlobalConfig(ExternalFinderConfiguration newConfig)
      Set the global configuration. Any existing configuration file will be overwritten with the new one. Pass null to delete the config file.
    • getProjectConfig

      public static ExternalFinderConfiguration getProjectConfig()
      Get the project-specific configuration.
      Returns:
      The configuration, or null if no project is loaded or the project has no config file
    • setProjectConfig

      public static void setProjectConfig(ExternalFinderConfiguration newConfig)
      Set the project-specific configuration. Has no effect if no project is loaded. Any existing configuration file will be overwritten with the new one. Pass null to delete the config file.
    • getItems

      public static List<ExternalFinderItem> getItems()