Package org.omegat.externalfinder
Class ExternalFinder
- java.lang.Object
-
- org.omegat.externalfinder.ExternalFinder
-
public final class ExternalFinder extends java.lang.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)
andExternalFinderItem
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:
- omegat-plugin-externalfinder on GitHub
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FINDER_FILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExternalFinderConfiguration
getGlobalConfig()
Get the global configuration.static java.util.List<ExternalFinderItem>
getItems()
static ExternalFinderConfiguration
getProjectConfig()
Get the project-specific configuration.static void
loadPlugins()
OmegaT will call this method when loading.static void
setGlobalConfig(ExternalFinderConfiguration newConfig)
Set the global configuration.static void
setProjectConfig(ExternalFinderConfiguration newConfig)
Set the project-specific configuration.static void
unloadPlugins()
-
-
-
Field Detail
-
FINDER_FILE
public static final java.lang.String FINDER_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 java.util.List<ExternalFinderItem> getItems()
-
-