org.eclipse.emf.codegen.jet.editor.codeassist
Class JETTemplateCompletionProcessor
java.lang.Object
org.eclipse.emf.codegen.jet.editor.codeassist.JETTemplateCompletionProcessor
- All Implemented Interfaces:
- org.eclipse.jface.text.contentassist.IContentAssistProcessor
public class JETTemplateCompletionProcessor
- extends java.lang.Object
- implements org.eclipse.jface.text.contentassist.IContentAssistProcessor
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jetFile
protected org.eclipse.core.resources.IFile jetFile
jetEditor
protected JETTextEditor jetEditor
javaProject
protected org.eclipse.jdt.core.IJavaProject javaProject
jetNature
protected org.eclipse.emf.codegen.jet.JETNature jetNature
JETTemplateCompletionProcessor
public JETTemplateCompletionProcessor(JETTextEditor editor)
- Constructor for JETTemplateCompletionProcessor.
- Parameters:
editor
- JETTextEditor
setCompletionProposalAutoActivationCharacters
public void setCompletionProposalAutoActivationCharacters(char[] activationSet)
- Sets this processor's set of characters triggering the activation of the
completion proposal computation.
- Parameters:
activationSet
- the activation set
getJavaProject
protected org.eclipse.jdt.core.IJavaProject getJavaProject()
- Method getJavaProject.
- Returns:
- IJavaProject
getJETNature
protected org.eclipse.emf.codegen.jet.JETNature getJETNature()
- Method getJETNature.
- Returns:
- JETNature
findJavaMatchingOffset
protected int findJavaMatchingOffset(JETCompilerExt compiler,
java.lang.String javaSource,
org.eclipse.jface.text.ITextViewer viewer,
int offset)
- Parameters:
compiler
- javaSource
- Stringviewer
- ITextVieweroffset
-
- Returns:
- int
computeCompletionProposals
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int offset)
- Specified by:
computeCompletionProposals
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
- See Also:
IContentAssistProcessor.computeCompletionProposals(ITextViewer, int)
getCompletionProposalAutoActivationCharacters
public char[] getCompletionProposalAutoActivationCharacters()
- Specified by:
getCompletionProposalAutoActivationCharacters
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
computeContextInformation
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
int offset)
- Specified by:
computeContextInformation
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
getContextInformationAutoActivationCharacters
public char[] getContextInformationAutoActivationCharacters()
- Specified by:
getContextInformationAutoActivationCharacters
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
getContextInformationValidator
public org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
- Specified by:
getContextInformationValidator
in interface org.eclipse.jface.text.contentassist.IContentAssistProcessor