Commit 397763b
committed
Allow platform:/plugin/ URIs in templates extension include element
The 'file' and 'translations' attributes of the <include> element in the
org.eclipse.ui.editors.templates extension point previously only
accepted plug-in local file paths, resolved relative to the contributing
bundle via FileLocator.find(Bundle, IPath, Map).
This change extends ContributionTemplateStore.readIncludedTemplates to
also accept platform:/ URIs (e.g. platform:/plugin/<bundle-id>/<path>),
allowing a contributor to reference template files that live in another
plug-in. Bundle-relative paths continue to work unchanged; platform:/
URIs are resolved via FileLocator.find(URL).1 parent 8ad0c90 commit 397763b
1 file changed
Lines changed: 29 additions & 2 deletions
File tree
- bundles/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | | - | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | | - | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
163 | 190 | | |
164 | 191 | | |
165 | 192 | | |
| |||
0 commit comments