org.eclipse.mofscript.editor
Class MofScriptContentAssistProcessor
java.lang.Object
org.eclipse.mofscript.editor.MofScriptContentAssistProcessor
- All Implemented Interfaces:
- org.eclipse.jface.text.contentassist.IContentAssistProcessor
- Direct Known Subclasses:
- MofScriptUML2ContentAssistProcessor
public class MofScriptContentAssistProcessor
- extends java.lang.Object
- implements org.eclipse.jface.text.contentassist.IContentAssistProcessor
Provides content assist for the MOFScript editor
- Author:
- jol
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MofScriptContentAssistProcessor
public MofScriptContentAssistProcessor()
clean
public void clean()
- Cleans the previous competion, current result type and current
context class
setEditor
public void setEditor(MofScriptTextEditor editor)
computeCompletionProposals
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int documentOffset)
- Computes completion for MOFScript
- Specified by:
computeCompletionProposals
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- Parameters:
viewer
- documentOffset
-
- Returns:
- information used to present the proposed completion to the user
computeContextInformation
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
int documentOffset)
- Specified by:
computeContextInformation
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- Parameters:
viewer
- documentOffset
-
getCompletionProposalAutoActivationCharacters
public char[] getCompletionProposalAutoActivationCharacters()
- Specified by:
getCompletionProposalAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
getContextInformationAutoActivationCharacters
public char[] getContextInformationAutoActivationCharacters()
- Specified by:
getContextInformationAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
getContextInformationValidator
public org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
- Specified by:
getContextInformationValidator
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
getErrorMessage
public java.lang.String getErrorMessage()
- Specified by:
getErrorMessage
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor