Skip to content

Commit 5dc5f26

Browse files
committed
Use svg files in the Eclipse RCP template for e4
Does not yet add Require-Capability: eclipse.swt;filter:="(image.format=svg)" to the MANIFEST and replaces png with svg files. See #1727
1 parent 4543b56 commit 5dc5f26

File tree

8 files changed

+9
-5
lines changed

8 files changed

+9
-5
lines changed

ui/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/e4/E4ApplicationTemplate.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public String getSectionId() {
110110
protected void updateModel(IProgressMonitor monitor) throws CoreException {
111111
// There is only a product extension
112112
createProductExtension();
113+
setManifestHeader("Require-Capability", "eclipse.swt;filter:=\"(image.format=svg)\""); //$NON-NLS-1$ //$NON-NLS-2$
113114

114115
// Other files located in 'org.eclipse.pde.ui.templates/templates_3.5/E4Application' are copied automatically
115116
}

ui/org.eclipse.pde.ui.templates/templates_3.5/E4Application/Application.e4xmi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<children xsi:type="basic:TrimmedWindow" xmi:id="_6wlLccgZEeSyMNYR5xypkQ" elementId="$pluginId$.window.main" label="$windowTitle$" width="500" height="400">
44
<children xsi:type="basic:PartSashContainer" xmi:id="_6wlLksgZEeSyMNYR5xypkQ" elementId="$pluginId$.partsashcontainer.sample">
55
<children xsi:type="basic:PartStack" xmi:id="_6wlLk8gZEeSyMNYR5xypkQ" elementId="$pluginId$.partstack.sample">
6-
<children xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="$pluginId$.part.sample" contributionURI="bundleclass://$pluginId$/$packageName$.parts.SamplePart" iconURI="platform:/plugin/$pluginId$/icons/home.png" label="Sample Part"/>
6+
<children xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="$pluginId$.part.sample" contributionURI="bundleclass://$pluginId$/$packageName$.parts.SamplePart" label="Sample Part" iconURI="platform:/plugin/$pluginId$/icons/home.svg"/>
77
</children>
88
</children>
99
<mainMenu xmi:id="_6wlLicgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.menu">
1010
<children xsi:type="menu:Menu" xmi:id="_6wlLisgZEeSyMNYR5xypkQ" elementId="file" label="File">
11-
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.file.open" label="Open" iconURI="platform:/plugin/$pluginId$/icons/open_in_app.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
12-
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.save" label="Save" iconURI="platform:/plugin/$pluginId$/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
11+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.file.open" label="Open" iconURI="platform:/plugin/$pluginId$/icons/open_in_app.svg" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
12+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.save" label="Save" iconURI="platform:/plugin/$pluginId$/icons/save_edit.svg" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
1313
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjcgZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.quit" label="Quit" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
1414
</children>
1515
<children xsi:type="menu:Menu" xmi:id="_6wlLjsgZEeSyMNYR5xypkQ" elementId="help" label="Help">
@@ -18,8 +18,8 @@
1818
</mainMenu>
1919
<trimBars xmi:id="_6wlLlcgZEeSyMNYR5xypkQ" elementId="$pluginId$.trimbar.top">
2020
<children xsi:type="menu:ToolBar" xmi:id="_6wlLlsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.toolbar">
21-
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLmMgZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.trimbar.top.save" iconURI="platform:/plugin/$pluginId$/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
22-
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLl8gZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.trimbar.top.open" iconURI="platform:/plugin/$pluginId$/icons/open_in_app.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
21+
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLmMgZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.trimbar.top.save" iconURI="platform:/plugin/$pluginId$/icons/save_edit.svg" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
22+
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLl8gZEeSyMNYR5xypkQ" elementId="$pluginId$.handleditem.trimbar.top.open" iconURI="platform:/plugin/$pluginId$/icons/open_in_app.svg" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
2323
</children>
2424
</trimBars>
2525
</children>
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)