Package org.omegat.gui.common
Class EntryInfoSearchThread<T>
- java.lang.Object
-
- java.lang.Thread
-
- org.omegat.gui.common.EntryInfoSearchThread<T>
-
- Type Parameters:
T
- result type of found data
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
DictionariesTextArea.DictionaryEntriesSearchThread
,FindGlossaryThread
,FindMatchesThread
,MultipleTransFindThread
public abstract class EntryInfoSearchThread<T> extends java.lang.Thread
Base class for search info about current entry in the separate thread. Implementation must check isEntryChanged method and exit if antry changed, against create multimple threads when user travels by entries fast.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntryInfoSearchThread.EntryChangedException
Any search can generate this exception for stop searching if entry changed.
-
Constructor Summary
Constructors Constructor Description EntryInfoSearchThread(EntryInfoThreadPane<T> pane, SourceTextEntry entry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
EntryInfoSearchThread
public EntryInfoSearchThread(EntryInfoThreadPane<T> pane, SourceTextEntry entry)
Constructor.- Parameters:
pane
- entry info paneentry
- current entry
-
-