Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 301542

Summary: [templates] Clarify documentation of org.eclipse.ui.editors.templates > include
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.6   
Target Milestone: 3.6 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Keller CLA 2010-02-02 10:11:32 EST
I20100129-1300

The documentation of the org.eclipse.ui.editors.templates extension point's element "include" only talks about "templates encoded as XML" but does not specify how the elements should be encoded.

AFAICS, these templates use a format similar to the <template> element from the extension point, but not exactly the same, see implementations in ContributionTemplateStore#readContributedTemplates(..):
- included templates use attribute "context" instead of "contextTypeId"
- included templates do not support "icon"
- included templates support boolean attribute "enabled" (default: true)
- included templates support boolean attribute "deleted" (default: false)
Comment 1 Dani Megert CLA 2010-02-03 04:40:59 EST
>- included templates support boolean attribute "deleted" (default: false)
I won't document this since it's not part of the official template syntax but only used for import/export.

And there's also "autoinsert" (default: true).
Comment 2 Dani Megert CLA 2010-02-03 05:13:49 EST
Fixed in HEAD.
Available in builds > N20100202-2000.