Package org.omegat.gui.editor.mark
Class CalcMarkersThread
- java.lang.Object
-
- java.lang.Thread
-
- org.omegat.gui.editor.mark.CalcMarkersThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class CalcMarkersThread extends java.lang.Thread
This class calls all marks calculators in background, check if source entry changed, and send add marks to editor. Used for spell/grammar checkers, TransTips, etc.
-
-
Constructor Summary
Constructors Constructor Description CalcMarkersThread(MarkerController mc, IMarker marker, int markerIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SegmentBuilder entryBuilder)
void
add(SegmentBuilder[] entryBuilders)
void
reset()
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
marker
public final IMarker marker
-
-
Constructor Detail
-
CalcMarkersThread
public CalcMarkersThread(MarkerController mc, IMarker marker, int markerIndex)
-
-
Method Detail
-
reset
public void reset()
-
add
public void add(SegmentBuilder[] entryBuilders)
-
add
public void add(SegmentBuilder entryBuilder)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-