| java.lang.Object org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateProposal
All known Subclasses: org.eclipse.jdt.internal.ui.text.template.contentassist.SurroundWithTemplateProposal,
TemplateProposal | public class TemplateProposal implements IJavaCompletionProposal,ICompletionProposalExtension2,ICompletionProposalExtension3,ICompletionProposalExtension4(Code) | | A template proposal.
|
Constructor Summary | |
public | TemplateProposal(Template template, TemplateContext context, IRegion region, Image image) Creates a template proposal with a template and its context. |
TemplateProposal | public TemplateProposal(Template template, TemplateContext context, IRegion region, Image image)(Code) | | Creates a template proposal with a template and its context.
Parameters: template - the template Parameters: context - the context in which the template was requested. Parameters: region - the region this proposal is applied to Parameters: image - the icon of the proposal. |
apply | final public void apply(IDocument document)(Code) | | |
apply | public void apply(ITextViewer viewer, char trigger, int stateMask, int offset)(Code) | | |
getAdditionalProposalInfo | public String getAdditionalProposalInfo()(Code) | | |
getContext | final protected TemplateContext getContext()(Code) | | Returns the context in which the template was requested.
the context in which the template was requested since: 3.1 |
getContextInformation | public IContextInformation getContextInformation()(Code) | | |
getImage | public Image getImage()(Code) | | |
getInformationControlCreator | public IInformationControlCreator getInformationControlCreator()(Code) | | |
getPrefixCompletionStart | public int getPrefixCompletionStart(IDocument document, int completionOffset)(Code) | | |
getPrefixCompletionText | public CharSequence getPrefixCompletionText(IDocument document, int completionOffset)(Code) | | |
getRelevance | public int getRelevance()(Code) | | |
getReplaceEndOffset | final protected int getReplaceEndOffset()(Code) | | Returns the end offset of the range in the document that will be replaced
by applying this template.
the end offset of the range in the document that will be replacedby applying this template |
getReplaceOffset | final protected int getReplaceOffset()(Code) | | Returns the offset of the range in the document that will be replaced by
applying this template.
the offset of the range in the document that will be replaced byapplying this template |
getSelection | public Point getSelection(IDocument document)(Code) | | |
getTemplate | final public Template getTemplate()(Code) | | Returns the template of this proposal.
the template of this proposal since: 3.1 |
isAutoInsertable | public boolean isAutoInsertable()(Code) | | |
selected | public void selected(ITextViewer viewer, boolean smartToggle)(Code) | | |
setDisplayString | public void setDisplayString(String displayString)(Code) | | |
setRelevance | public void setRelevance(int relevance)(Code) | | |
unselected | public void unselected(ITextViewer viewer)(Code) | | |
validate | public boolean validate(IDocument document, int offset, DocumentEvent event)(Code) | | |
|
|