Class AtlTemplateProposal
java.lang.Object
org.eclipse.jface.text.templates.TemplateProposal
org.eclipse.m2m.atl.adt.ui.text.atl.AtlTemplateProposal
- All Implemented Interfaces:
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 Comparable<AtlTemplateProposal>
Completion helper, dedicated to document parsing.
-
Constructor Summary
ConstructorsConstructorDescriptionAtlTemplateProposal(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, String information) Creates a new ATL Template proposal. -
Method Summary
Modifier and TypeMethodDescriptionintMethods 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 Details
-
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, 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 Details
-
getAdditionalProposalInfo
- Specified by:
getAdditionalProposalInfoin interfaceorg.eclipse.jface.text.contentassist.ICompletionProposal- Overrides:
getAdditionalProposalInfoin classorg.eclipse.jface.text.templates.TemplateProposal- See Also:
-
TemplateProposal.getAdditionalProposalInfo()
-
compareTo
- Specified by:
compareToin interfaceComparable<AtlTemplateProposal>- See Also:
-