Package org.fife.rsta.ac.less
Class LessCodeCompletionProvider
java.lang.Object
org.fife.ui.autocomplete.CompletionProviderBase
org.fife.rsta.ac.css.PropertyValueCompletionProvider
org.fife.rsta.ac.less.LessCodeCompletionProvider
- All Implemented Interfaces:
org.fife.ui.autocomplete.CompletionProvider
The main completion provider for Less code.
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.fife.rsta.ac.css.PropertyValueCompletionProvider
PropertyValueCompletionProvider.LexerState -
Field Summary
FieldsFields inherited from class org.fife.ui.autocomplete.CompletionProviderBase
EMPTY_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddLessBuiltinFunctionCompletions(List<org.fife.ui.autocomplete.Completion> completions, String alreadyEntered) protected booleanaddLessCompletions(List<org.fife.ui.autocomplete.Completion> completions, PropertyValueCompletionProvider.LexerState state, JTextComponent comp, String alreadyEntered) Overridden to handle Less properly.private voidaddLessVariableCompletions(List<org.fife.ui.autocomplete.Completion> completions, JTextComponent comp, String alreadyEntered) private List<org.fife.ui.autocomplete.Completion> private IconLoads an icon by file name.Methods inherited from class org.fife.rsta.ac.css.PropertyValueCompletionProvider
getAlreadyEnteredText, getCompletionsAt, getCompletionsImpl, getParameterizedCompletions, isAutoActivateOkay, isValidChar, loadFromXMLMethods inherited from class org.fife.ui.autocomplete.CompletionProviderBase
clearParameterizedCompletionParams, getCompletions, getListCellRenderer, getParameterChoicesProvider, getParameterListEnd, getParameterListSeparator, getParameterListStart, getParent, setAutoActivationRules, setListCellRenderer, setParameterChoicesProvider, setParameterizedCompletionParams, setParent
-
Field Details
-
functionCompletions
-
-
Constructor Details
-
LessCodeCompletionProvider
LessCodeCompletionProvider()Constructor.
-
-
Method Details
-
addLessCompletions
protected boolean addLessCompletions(List<org.fife.ui.autocomplete.Completion> completions, PropertyValueCompletionProvider.LexerState state, JTextComponent comp, String alreadyEntered) Overridden to handle Less properly.- Overrides:
addLessCompletionsin classPropertyValueCompletionProvider- Parameters:
completions- The completion set to add to.state- The current lexer state.comp- The text component whose content is being parsed.alreadyEntered- The text already entered by the user.- Returns:
- Whether any completions were added.
-
addLessBuiltinFunctionCompletions
-
addLessVariableCompletions
private void addLessVariableCompletions(List<org.fife.ui.autocomplete.Completion> completions, JTextComponent comp, String alreadyEntered) -
createFunctionCompletions
- Throws:
IOException
-
loadIcon
Loads an icon by file name. Note that, if Less completion support gets more icons, we should create an IconFactory class and remove this method.- Parameters:
name- The icon file name.- Returns:
- The icon.
-