Package org.omegat.externalfinder
Class ExternalFinder
java.lang.Object
org.omegat.externalfinder.ExternalFinder
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalFinderConfigurationGet the global configuration.static List<ExternalFinderItem>getItems()static ExternalFinderConfigurationGet the project-specific configuration.static voidOmegaT will call this method when loading.static voidsetGlobalConfig(ExternalFinderConfiguration newConfig) Set the global configuration.static voidsetProjectConfig(ExternalFinderConfiguration newConfig) Set the project-specific configuration.static void
-
Field Details
-
FINDER_FILE
- See Also:
-
-
Method Details
-
loadPlugins
public static void loadPlugins()OmegaT will call this method when loading. -
unloadPlugins
public static void unloadPlugins() -
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
Set the global configuration. Any existing configuration file will be overwritten with the new one. Pass null to delete the config file. -
getProjectConfig
Get the project-specific configuration.- Returns:
- The configuration, or null if no project is loaded or the project has no config file
-
setProjectConfig
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
-