public class XtextTemplateProposal
extends org.eclipse.jface.text.templates.TemplateProposal
implements org.eclipse.jface.text.contentassist.ICompletionProposalExtension4
Constructor and Description |
---|
XtextTemplateProposal(org.eclipse.jface.text.templates.Template template,
org.eclipse.jface.text.templates.TemplateContext context,
org.eclipse.jface.text.IRegion region,
org.eclipse.swt.graphics.Image image) |
XtextTemplateProposal(org.eclipse.jface.text.templates.Template template,
org.eclipse.jface.text.templates.TemplateContext context,
org.eclipse.jface.text.IRegion region,
org.eclipse.swt.graphics.Image image,
int relevance) |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.eclipse.jface.text.ITextViewer viewer,
char trigger,
int stateMask,
int offset) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalProposalInfo() |
int |
hashCode() |
boolean |
isAutoInsertable() |
apply, apply, getContext, getContextInformation, getContextInformationPosition, getDisplayString, getImage, getInformationControlCreator, getPrefixCompletionStart, getPrefixCompletionText, getRelevance, getReplaceEndOffset, getReplaceOffset, getSelection, getTemplate, getTriggerCharacters, isValidFor, selected, setInformationControlCreator, unselected, validate
public XtextTemplateProposal(org.eclipse.jface.text.templates.Template template, org.eclipse.jface.text.templates.TemplateContext context, org.eclipse.jface.text.IRegion region, org.eclipse.swt.graphics.Image image)
public XtextTemplateProposal(org.eclipse.jface.text.templates.Template template, org.eclipse.jface.text.templates.TemplateContext context, org.eclipse.jface.text.IRegion region, org.eclipse.swt.graphics.Image image, int relevance)
public boolean isAutoInsertable()
isAutoInsertable
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension4
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getAdditionalProposalInfo()
getAdditionalProposalInfo
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
getAdditionalProposalInfo
in class org.eclipse.jface.text.templates.TemplateProposal
public void apply(org.eclipse.jface.text.ITextViewer viewer, char trigger, int stateMask, int offset)
apply
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
apply
in class org.eclipse.jface.text.templates.TemplateProposal