| java.lang.Object org.netbeans.modules.xml.text.completion.XMLCompletionQuery
XMLCompletionQuery | public class XMLCompletionQuery implements CompletionQuery,XMLTokenIDs(Code) | | Consults grammar and presents list of possible choices
in particular document context.
Warning: It is public for unit test purposes only!
author: Petr Nejedly author: Sandeep Randhawa author: Petr Kuzel author: asgeir@dimonsoftware.com version: 1.01 |
Inner Class :public static class XMLCompletionResult extends CompletionQuery.DefaultResult | |
DOCUMENT_GRAMMAR_BINDING_PROP | final public static String DOCUMENT_GRAMMAR_BINDING_PROP(Code) | | |
getPerformer | public static GrammarQuery getPerformer(Document doc, XMLSyntaxSupport sup)(Code) | | Obtain grammar manager, cache results in document property
PROP_DOCUMENT_QUERY . It is always called from single
thread.
|
query | public CompletionQuery.Result query(JTextComponent component, int offset, SyntaxSupport support)(Code) | | Perform the query on the given component. The query usually
gets the component's document, the caret position and searches back
to examine surrounding context. Then it returns the result.
It is also called after every keystroke while opened completion
popup. So some result cache could be used. It is not easy at
this level because of BACKSPACE that can extend result.
Parameters: component - the component to use in this query. Parameters: offset - position in the component's document to which the query willbe performed. Usually it's a caret position. Parameters: support - syntax-support that will be used during resolving of the query. result of the query or null if there's no result. |
|
|