org.eclipse.emf.codegen.jet.editor.codeassist
Class JETTemplateCompletionProcessor

java.lang.Object
  extended by 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 $

Field Summary
protected  org.eclipse.jdt.core.IJavaProject javaProject
           
protected  JETTextEditor jetEditor
           
protected  org.eclipse.core.resources.IFile jetFile
           
protected  org.eclipse.emf.codegen.jet.JETNature jetNature
           
 
Constructor Summary
JETTemplateCompletionProcessor(JETTextEditor editor)
          Constructor for JETTemplateCompletionProcessor.
 
Method Summary
 org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer, int offset)
           
 org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer, int offset)
           
protected  int findJavaMatchingOffset(JETCompilerExt compiler, java.lang.String javaSource, org.eclipse.jface.text.ITextViewer viewer, int offset)
           
 char[] getCompletionProposalAutoActivationCharacters()
           
 char[] getContextInformationAutoActivationCharacters()
           
 org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
           
 java.lang.String getErrorMessage()
           
protected  org.eclipse.jdt.core.IJavaProject getJavaProject()
          Method getJavaProject.
protected  org.eclipse.emf.codegen.jet.JETNature getJETNature()
          Method getJETNature.
 void setCompletionProposalAutoActivationCharacters(char[] activationSet)
          Sets this processor's set of characters triggering the activation of the completion proposal computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JETTemplateCompletionProcessor

public JETTemplateCompletionProcessor(JETTextEditor editor)
Constructor for JETTemplateCompletionProcessor.

Parameters:
editor - JETTextEditor
Method Detail

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 - String
viewer - ITextViewer
offset -
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

Copyright 2006 IBM Corporation and others.
All Rights Reserved.