Package org.eclipse.wst.xsl.ui.provisional.contentassist
public class AbstractXSLContentAssistProcessor extends java.lang.ObjectThis is an Abstract class that implementors should extend for implementing XSL Content Assist Processors. It provides common convience methods for information that is needed to construct a content assist processor.
Field Summary | |
protected ITextRegion | completionRegion |
protected int | cursorPosition |
protected java.lang.String | errorMessage |
protected java.lang.String | matchString |
protected IStructuredDocumentRegion | sdRegion |
protected ITextViewer | textViewer |
protected IDOMNode | xmlNode |
Constructor Summary |
AbstractXSLContentAssistProcessor() |
Method Summary | |
public char[] | getCompletionProposalAutoActivationCharacters() Returns the characters which when entered by the user should automatically trigger the presentation of possible completions. the auto activation characters for completion proposal or null if no auto activation is desired |
protected ITextRegion | getCompletionRegion(int documentPosition
,
org.w3c.dom.Node domnode) Return the region whose content's require completion. This is something of a misnomer as sometimes the user wants to be prompted for contents of a non-existent ITextRegion, such as for enumerated attribute values following an '=' sign. Copied from AbstractContentAssist Processor. |
protected ITextRegion | getCompletionRegion(int offset
,
IStructuredDocumentRegion sdRegion) |
public java.lang.String | getErrorMessage() (non-Javadoc) |
protected void | initializeProposalVariables(ITextViewer textViewer
,
int documentPosition) |
public void | setErrorMessage(java.lang.String errorMessage) Sets the error message for why content assistance didn't complete. |
Field Detail |
protected ITextRegion completionRegion
protected int cursorPosition
protected java.lang.String errorMessage
protected java.lang.String matchString
protected IStructuredDocumentRegion sdRegion
protected ITextViewer textViewer
protected IDOMNode xmlNode
Constructor Detail |
public AbstractXSLContentAssistProcessor()
Methods Detail |
public char[] getCompletionProposalAutoActivationCharacters()
Returns the characters which when entered by the user should
automatically trigger the presentation of possible completions.
the auto activation characters for completion proposal or
null
if no auto activation is desired
char[]
- an array of activation characters
protected ITextRegion getCompletionRegion(int documentPosition
,
org.w3c.dom.Node domnode)
Return the region whose content's require completion. This is something of a misnomer as sometimes the user wants to be prompted for contents of a non-existent ITextRegion, such as for enumerated attribute values following an '=' sign. Copied from AbstractContentAssist Processor.
documentPosition
domnode
ITextRegion
protected ITextRegion getCompletionRegion(int offset
,
IStructuredDocumentRegion sdRegion)
offset
sdRegion
ITextRegion
public java.lang.String getErrorMessage()
(non-Javadoc)
java.lang.String
protected void initializeProposalVariables(ITextViewer textViewer
,
int documentPosition)
textViewer
documentPosition
public void setErrorMessage(java.lang.String errorMessage)
Sets the error message for why content assistance didn't complete.
errorMessage