org.eclipse.xtext.ui.codetemplates.ui.contentassist
Class AbstractTemplateProposalConflictHelper

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.contentassist.ProposalConflictHelper
      extended by org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper
          extended by org.eclipse.xtext.ui.codetemplates.ui.contentassist.AbstractTemplateProposalConflictHelper
All Implemented Interfaces:
IProposalConflictHelper
Direct Known Subclasses:
CodetemplatesProposalConflictHelper, SingleTemplateProposalConflictHelper

public abstract class AbstractTemplateProposalConflictHelper
extends AntlrProposalConflictHelper

Base class for the conflict helpers of code template languages. It's purpose is to initialize the lexer according to the cursor position when content assist was invoked.

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper
IProposalConflictHelper.NullHelper
 
Constructor Summary
AbstractTemplateProposalConflictHelper()
           
 
Method Summary
protected abstract  void initLexer(Lexer lexer, boolean literal, boolean variable)
           
protected  void initTokenSource(java.lang.String text, org.antlr.runtime.TokenSource tokenSource, ContentAssistContext context)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper
equalTokenSequence, existsConflict, getCombinedLexer, getLastCompleteLexer, getProposalLexer, initTokenSources, setCombinedLexer, setLastCompleteLexer, setProposalLexer
 
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.ProposalConflictHelper
existsConflict, existsConflict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTemplateProposalConflictHelper

public AbstractTemplateProposalConflictHelper()
Method Detail

initTokenSource

protected void initTokenSource(java.lang.String text,
                               org.antlr.runtime.TokenSource tokenSource,
                               ContentAssistContext context)
Overrides:
initTokenSource in class AntlrProposalConflictHelper

initLexer

protected abstract void initLexer(Lexer lexer,
                                  boolean literal,
                                  boolean variable)