| org.eclipse.ui.examples.templateeditor.template.XMLCompletionProcessor
XMLCompletionProcessor | public class XMLCompletionProcessor extends TemplateCompletionProcessor (Code) | | A completion processor for XML templates.
|
Method Summary | |
protected String | extractPrefix(ITextViewer viewer, int offset) We watch for angular brackets since those are often part of XML
templates. | protected TemplateContextType | getContextType(ITextViewer viewer, IRegion region) Return the XML context type that is supported by this plug-in. | protected Image | getImage(Template template) Always return the default image. | protected int | getRelevance(Template template, String prefix) Cut out angular brackets for relevance sorting, since the template name
does not contain the brackets. | protected Template[] | getTemplates(String contextTypeId) Simply return all templates. |
extractPrefix | protected String extractPrefix(ITextViewer viewer, int offset)(Code) | | We watch for angular brackets since those are often part of XML
templates.
Parameters: viewer - the viewer Parameters: offset - the offset left of which the prefix is detected the detected prefix |
getContextType | protected TemplateContextType getContextType(ITextViewer viewer, IRegion region)(Code) | | Return the XML context type that is supported by this plug-in.
Parameters: viewer - the viewer, ignored in this implementation Parameters: region - the region, ignored in this implementation the supported XML context type |
getImage | protected Image getImage(Template template)(Code) | | Always return the default image.
Parameters: template - the template, ignored in this implementation the default template image |
getRelevance | protected int getRelevance(Template template, String prefix)(Code) | | Cut out angular brackets for relevance sorting, since the template name
does not contain the brackets.
Parameters: template - the template Parameters: prefix - the prefix the relevance of the template for the given prefix |
getTemplates | protected Template[] getTemplates(String contextTypeId)(Code) | | Simply return all templates.
Parameters: contextTypeId - the context type, ignored in this implementation all templates |
|
|