public class CompletionProposalComputer extends java.lang.Object implements IUnitOfWork<org.eclipse.jface.text.contentassist.ICompletionProposal[],XtextResource>, ICompletionProposalAcceptor, ITemplateAcceptor
Modifier and Type | Class and Description |
---|---|
static interface |
CompletionProposalComputer.State |
IUnitOfWork.Void<T>
ICompletionProposalAcceptor.Delegate
ITemplateAcceptor.Delegate
Constructor and Description |
---|
CompletionProposalComputer(CompletionProposalComputer.State state,
org.eclipse.jface.text.ITextViewer viewer,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
accept(org.eclipse.jface.text.contentassist.ICompletionProposal proposal) |
void |
accept(org.eclipse.jface.text.templates.TemplateProposal template) |
boolean |
canAcceptMoreProposals() |
boolean |
canAcceptMoreTemplates() |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
exec(XtextResource resource) |
public CompletionProposalComputer(CompletionProposalComputer.State state, org.eclipse.jface.text.ITextViewer viewer, int offset)
public org.eclipse.jface.text.contentassist.ICompletionProposal[] exec(XtextResource resource) throws java.lang.Exception
exec
in interface IUnitOfWork<org.eclipse.jface.text.contentassist.ICompletionProposal[],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.ICompletionProposal proposal)
accept
in interface ICompletionProposalAcceptor
public boolean canAcceptMoreProposals()
canAcceptMoreProposals
in interface ICompletionProposalAcceptor
public void accept(org.eclipse.jface.text.templates.TemplateProposal template)
accept
in interface ITemplateAcceptor
public boolean canAcceptMoreTemplates()
canAcceptMoreTemplates
in interface ITemplateAcceptor