public final class ContextInformationComputer extends java.lang.Object implements IUnitOfWork<org.eclipse.jface.text.contentassist.IContextInformation[],XtextResource>, IContextInformationAcceptor
Modifier and Type | Class and Description |
---|---|
static interface |
ContextInformationComputer.State |
IUnitOfWork.Void<T>
Constructor and Description |
---|
ContextInformationComputer(ContextInformationComputer.State state,
org.eclipse.jface.text.ITextViewer viewer,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
accept(org.eclipse.jface.text.contentassist.IContextInformation information) |
boolean |
canAcceptMoreInformation() |
org.eclipse.jface.text.contentassist.IContextInformation[] |
exec(XtextResource resource) |
public ContextInformationComputer(ContextInformationComputer.State state, org.eclipse.jface.text.ITextViewer viewer, int offset)
public org.eclipse.jface.text.contentassist.IContextInformation[] exec(XtextResource resource) throws java.lang.Exception
exec
in interface IUnitOfWork<org.eclipse.jface.text.contentassist.IContextInformation[],XtextResource>
resource
- - The state, which is synchronized while this method is executed
Do not return any references to something contained in this resourcejava.lang.Exception
public void accept(org.eclipse.jface.text.contentassist.IContextInformation information)
accept
in interface IContextInformationAcceptor
public boolean canAcceptMoreInformation()
canAcceptMoreInformation
in interface IContextInformationAcceptor