Package org.omegat.gui.glossary
Class GlossaryAutoCompleterView
java.lang.Object
org.omegat.gui.editor.autocompleter.AbstractAutoCompleterView
org.omegat.gui.editor.autocompleter.AutoCompleterListView
org.omegat.gui.glossary.GlossaryAutoCompleterView
The glossary auto-completer view.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeListData(String prevText, boolean contextualOnly) Compute the items visible in the auto-completer listEach view should determine how to print a view item.static voidbooleanReturn true to indicate that the view has relevant contextual suggestions that merit displaying the AutoCompleter popup unprompted.static voidMethods inherited from class org.omegat.gui.editor.autocompleter.AutoCompleterListView
getList, getPreferredHeight, getPreferredWidth, getRowCount, getSelectedValue, getViewContent, processKeys, updateViewDataMethods inherited from class org.omegat.gui.editor.autocompleter.AbstractAutoCompleterView
getName, getTargetLanguage, getTokenizer, setParent, shouldCloseOnSelection
-
Constructor Details
-
GlossaryAutoCompleterView
Deprecated. -
GlossaryAutoCompleterView
-
-
Method Details
-
loadPlugins
public static void loadPlugins() -
unloadPlugins
public static void unloadPlugins() -
shouldPopUp
public boolean shouldPopUp()Description copied from class:AbstractAutoCompleterViewReturn true to indicate that the view has relevant contextual suggestions that merit displaying the AutoCompleter popup unprompted.- Overrides:
shouldPopUpin classAutoCompleterListView- Returns:
- Whether or not the AutoCompleter should appear
-
computeListData
Description copied from class:AutoCompleterListViewCompute the items visible in the auto-completer list- Specified by:
computeListDatain classAutoCompleterListView- Parameters:
prevText- the text in the editing field up to the cursor location- Returns:
- a list of AutoCompleterItems.
-
itemToString
Description copied from class:AutoCompleterListViewEach view should determine how to print a view item.- Specified by:
itemToStringin classAutoCompleterListView- Parameters:
item- The item to print- Returns:
- A string representation of the view item
-