public final class Core
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Core.RunnableWithException |
Modifier and Type | Field and Description |
---|---|
protected static IEditor |
editor |
protected static IGlossaries |
glossary |
protected static IAutoSave |
saveThread |
Modifier and Type | Method and Description |
---|---|
static void |
executeExclusively(boolean waitForUnlock,
Core.RunnableWithException run)
Use this to perform operations that must not be run concurrently.
|
static IAutoSave |
getAutoSave() |
static IComments |
getComments()
Get comments area
|
static IDictionaries |
getDictionaries() |
static IEditor |
getEditor()
Get editor instance.
|
static FilterMaster |
getFilterMaster() |
static IGlossaries |
getGlossary()
Get glossary instance.
|
static GlossaryManager |
getGlossaryManager() |
static IIssues |
getIssues() |
static MachineTranslateTextArea |
getMachineTranslatePane() |
static IMainWindow |
getMainWindow()
Get main window instance.
|
static java.util.List<IMarker> |
getMarkers() |
static IMatcher |
getMatcher()
Get matcher component instance.
|
static INotes |
getNotes()
Get notes instance.
|
static java.util.Map<java.lang.String,java.lang.String> |
getParams() |
static java.util.List<java.lang.String> |
getPluginsLoadingErrors()
Get all plugin loading errors.
|
static IProject |
getProject()
Get project instance.
|
static Segmenter |
getSegmenter() |
static ISpellChecker |
getSpellChecker()
Get spell checker instance.
|
static ITagValidation |
getTagValidation()
Get tag validation component instance.
|
static void |
initializeConsole(java.util.Map<java.lang.String,java.lang.String> params)
Initialize application components.
|
static void |
initializeGUI(java.lang.ClassLoader classLoader,
java.util.Map<java.lang.String,java.lang.String> params)
Initialize application components.
|
static void |
pluginLoadingError(java.lang.String errorText)
Any plugin can call this method for say about error on loading.
|
static void |
registerFilterClass(java.lang.Class<? extends IFilter> clazz) |
static void |
registerMachineTranslationClass(java.lang.Class<? extends IMachineTranslation> clazz) |
static void |
registerMarker(IMarker marker)
Register class for calculate marks.
|
static void |
registerMarkerClass(java.lang.Class<? extends IMarker> clazz) |
static void |
registerTokenizerClass(java.lang.Class<? extends ITokenizer> clazz) |
protected static void |
setCurrentProject(IProject currentProject)
Set project instance for unit tests.
|
static void |
setFilterMaster(FilterMaster newFilterMaster) |
protected static void |
setMainWindow(IMainWindow mainWindow)
Set main window instance for unit tests.
|
static void |
setProject(IProject newCurrentProject)
Set new current project.
|
static void |
setSegmenter(Segmenter newSegmenter) |
protected static IEditor editor
protected static IAutoSave saveThread
protected static IGlossaries glossary
public static IProject getProject()
public static void setProject(IProject newCurrentProject)
public static IMainWindow getMainWindow()
public static IEditor getEditor()
public static ITagValidation getTagValidation()
public static IIssues getIssues()
public static IMatcher getMatcher()
public static ISpellChecker getSpellChecker()
public static FilterMaster getFilterMaster()
public static void setFilterMaster(FilterMaster newFilterMaster)
public static MachineTranslateTextArea getMachineTranslatePane()
public static IAutoSave getAutoSave()
public static IGlossaries getGlossary()
public static GlossaryManager getGlossaryManager()
public static INotes getNotes()
public static IComments getComments()
public static IDictionaries getDictionaries()
public static Segmenter getSegmenter()
public static void setSegmenter(Segmenter newSegmenter)
public static void initializeGUI(java.lang.ClassLoader classLoader, java.util.Map<java.lang.String,java.lang.String> params) throws java.lang.Exception
java.lang.Exception
public static void initializeConsole(java.util.Map<java.lang.String,java.lang.String> params) throws java.lang.Exception
java.lang.Exception
protected static void setMainWindow(IMainWindow mainWindow)
mainWindow
- protected static void setCurrentProject(IProject currentProject)
currentProject
- public static void registerMarker(IMarker marker)
marker
- marker implementationpublic static java.util.List<IMarker> getMarkers()
public static java.util.Map<java.lang.String,java.lang.String> getParams()
public static void registerFilterClass(java.lang.Class<? extends IFilter> clazz)
public static void registerMachineTranslationClass(java.lang.Class<? extends IMachineTranslation> clazz)
public static void registerMarkerClass(java.lang.Class<? extends IMarker> clazz)
public static void registerTokenizerClass(java.lang.Class<? extends ITokenizer> clazz)
public static java.util.List<java.lang.String> getPluginsLoadingErrors()
public static void pluginLoadingError(java.lang.String errorText)
public static void executeExclusively(boolean waitForUnlock, Core.RunnableWithException run) throws java.lang.Exception
For instance project load/save/compile/autosave operations must not be executed in parallel because it will break project files, especially during team synchronization. For guaranteed non-parallel execution, all such operations must be executed via this method.
waitForUnlock
- should execution wait for unlock 3 minutesrun
- code for executejava.lang.Exception