Class AtlTemplateProposal
- java.lang.Object
-
- org.eclipse.jface.text.templates.TemplateProposal
-
- org.eclipse.m2m.atl.adt.ui.text.atl.AtlTemplateProposal
-
- All Implemented Interfaces:
java.lang.Comparable<AtlTemplateProposal>
,org.eclipse.jface.text.contentassist.ICompletionProposal
,org.eclipse.jface.text.contentassist.ICompletionProposalExtension
,org.eclipse.jface.text.contentassist.ICompletionProposalExtension2
,org.eclipse.jface.text.contentassist.ICompletionProposalExtension3
- Direct Known Subclasses:
AtlInstalledTemplateProposal
public class AtlTemplateProposal extends org.eclipse.jface.text.templates.TemplateProposal implements java.lang.Comparable<AtlTemplateProposal>
Completion helper, dedicated to document parsing.
-
-
Constructor Summary
Constructors Constructor Description AtlTemplateProposal(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, java.lang.String information)
Creates a new ATL Template proposal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AtlTemplateProposal o)
java.lang.String
getAdditionalProposalInfo()
-
Methods inherited from class org.eclipse.jface.text.templates.TemplateProposal
apply, apply, apply, getContext, getContextInformation, getContextInformationPosition, getDisplayString, getImage, getInformationControlCreator, getPrefixCompletionStart, getPrefixCompletionText, getRelevance, getReplaceEndOffset, getReplaceOffset, getSelection, getTemplate, getTriggerCharacters, isValidFor, selected, setInformationControlCreator, unselected, validate
-
-
-
-
Constructor Detail
-
AtlTemplateProposal
public AtlTemplateProposal(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, java.lang.String information)
Creates a new ATL Template proposal.- Parameters:
template
- the templatecontext
- the template contextregion
- the selected regionimage
- the template imagerelevance
- the template relevanceinformation
- the template information
-
-
Method Detail
-
getAdditionalProposalInfo
public java.lang.String getAdditionalProposalInfo()
- Specified by:
getAdditionalProposalInfo
in interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal
- Overrides:
getAdditionalProposalInfo
in classorg.eclipse.jface.text.templates.TemplateProposal
- See Also:
TemplateProposal.getAdditionalProposalInfo()
-
compareTo
public int compareTo(AtlTemplateProposal o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AtlTemplateProposal>
- See Also:
Comparable.compareTo(java.lang.Object)
-
-