org.eclipse.xtext.ui.editor.contentassist
Class ContextInformationComputer

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.contentassist.ContextInformationComputer
All Implemented Interfaces:
IContextInformationAcceptor, IUnitOfWork<org.eclipse.jface.text.contentassist.IContextInformation[],XtextResource>

public final class ContextInformationComputer
extends java.lang.Object
implements IUnitOfWork<org.eclipse.jface.text.contentassist.IContextInformation[],XtextResource>, IContextInformationAcceptor

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
static interface ContextInformationComputer.State
           
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork
IUnitOfWork.Void<T>
 
Constructor Summary
ContextInformationComputer(ContextInformationComputer.State state, org.eclipse.jface.text.ITextViewer viewer, int offset)
           
 
Method Summary
 void accept(org.eclipse.jface.text.contentassist.IContextInformation information)
           
 boolean canAcceptMoreInformation()
           
 org.eclipse.jface.text.contentassist.IContextInformation[] exec(XtextResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextInformationComputer

public ContextInformationComputer(ContextInformationComputer.State state,
                                  org.eclipse.jface.text.ITextViewer viewer,
                                  int offset)
Method Detail

exec

public org.eclipse.jface.text.contentassist.IContextInformation[] exec(XtextResource resource)
                                                                throws java.lang.Exception
Specified by:
exec in interface IUnitOfWork<org.eclipse.jface.text.contentassist.IContextInformation[],XtextResource>
Parameters:
resource - - The state, which is synchronized while this method is executed Do not return any references to something contained in this resource
Returns:
Throws:
java.lang.Exception

accept

public void accept(org.eclipse.jface.text.contentassist.IContextInformation information)
Specified by:
accept in interface IContextInformationAcceptor

canAcceptMoreInformation

public boolean canAcceptMoreInformation()
Specified by:
canAcceptMoreInformation in interface IContextInformationAcceptor