public class PropertyValueCompletionProvider
extends CompletionProviderBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PropertyValueCompletionProvider.LexerState
A simple enum to keep track of what "state" we're in at a specific
location in a CSS file.
|
| Constructor and Description |
|---|
PropertyValueCompletionProvider(boolean isLess) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addLessCompletions(java.util.List<Completion> completions,
PropertyValueCompletionProvider.LexerState state,
javax.swing.text.JTextComponent comp,
java.lang.String alreadyEntered)
Adds completions specific to Less.
|
java.lang.String |
getAlreadyEnteredText(javax.swing.text.JTextComponent comp) |
java.util.List<Completion> |
getCompletionsAt(javax.swing.text.JTextComponent comp,
java.awt.Point p) |
protected java.util.List<Completion> |
getCompletionsImpl(javax.swing.text.JTextComponent comp) |
java.util.List<ParameterizedCompletion> |
getParameterizedCompletions(javax.swing.text.JTextComponent tc) |
boolean |
isAutoActivateOkay(javax.swing.text.JTextComponent tc) |
boolean |
isValidChar(char ch) |
protected java.util.List<Completion> |
loadFromXML(java.lang.String resource)
Loads completions from an XML file.
|
public PropertyValueCompletionProvider(boolean isLess)
public java.lang.String getAlreadyEnteredText(javax.swing.text.JTextComponent comp)
public java.util.List<Completion> getCompletionsAt(javax.swing.text.JTextComponent comp,
java.awt.Point p)
public java.util.List<ParameterizedCompletion> getParameterizedCompletions(javax.swing.text.JTextComponent tc)
protected java.util.List<Completion> getCompletionsImpl(javax.swing.text.JTextComponent comp)
protected boolean addLessCompletions(java.util.List<Completion> completions,
PropertyValueCompletionProvider.LexerState state,
javax.swing.text.JTextComponent comp,
java.lang.String alreadyEntered)
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.public boolean isAutoActivateOkay(javax.swing.text.JTextComponent tc)
public boolean isValidChar(char ch)
protected java.util.List<Completion> loadFromXML(java.lang.String resource)
throws java.io.IOException
CompletionXml.dtd.resource - A resource the current ClassLoader can get to.java.io.IOException - If an IO error occurs.