Skip to content

Commit 0e5e812

Browse files
authored
add all svgs to org.eclipse.jdt.ui bundles (eclipse-jdt#2174)
This commit adds SVGs for all icons in the bundles `eclipse.jdt.ui` and `eclipse.jdt.ui.unittest.junit` except for the following as these do not yet exist as SVG: eclipse.jdt.ui/etool16/move_up.svg eclipse.jdt.ui/wizban/newrecord_wiz.svg Not all icons can be loaded via SVGs since some icons are made API via org.eclipse.jdt.ui.ISharedImages. There is a converter that was used for loading PNGs instead. I adjusted this converter so SVGs will be loaded: `org.eclipse.jdt.internal.ui.JavaPluginImages.createImageDescriptor(Bundle, IPath, boolean)` I did not change the functionality in `org.eclipse.jdt.internal.ui.viewsupport.ImagesOnFileSystemRegistry.getNewFile()` by changing `.png` to `.svg` as I don't know the side effects.
1 parent b2836c8 commit 0e5e812

File tree

396 files changed

+144101
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+144101
-275
lines changed

org.eclipse.jdt.ui.unittest.junit/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ Require-Bundle:
2828
org.eclipse.jdt.core.manipulation;bundle-version="1.9.0",
2929
org.eclipse.jdt.junit;bundle-version="3.14.0"
3030
Bundle-RequiredExecutionEnvironment: JavaSE-21
31+
Require-Capability: eclipse.swt;filter:="(image.format=svg)"

org.eclipse.jdt.ui.unittest.junit/icons/full/obj16/julaunch.svg

Lines changed: 397 additions & 0 deletions
Loading
Lines changed: 198 additions & 0 deletions
Loading

org.eclipse.jdt.ui.unittest.junit/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<extension
66
point="org.eclipse.debug.ui.launchConfigurationTypeImages">
77
<launchConfigurationTypeImage
8-
icon="$nl$/icons/full/obj16/julaunch.png"
8+
icon="$nl$/icons/full/obj16/julaunch.svg"
99
configTypeID="org.eclipse.jdt.ui.unittest.junit.launchConfiguration"
1010
id="org.eclipse.unittest.launchimage">
1111
</launchConfigurationTypeImage>
@@ -51,7 +51,7 @@
5151
point="org.eclipse.debug.ui.launchShortcuts">
5252
<shortcut
5353
label="%UnitTestShortcut.label"
54-
icon="$nl$/icons/full/obj16/julaunch.png"
54+
icon="$nl$/icons/full/obj16/julaunch.svg"
5555
helpContextId="org.eclipse.jdt.junit.launch_shortcut"
5656
class="org.eclipse.jdt.ui.unittest.junit.launcher.JUnitLaunchShortcut"
5757
modes="run, debug"

org.eclipse.jdt.ui.unittest.junit/src/org/eclipse/jdt/ui/unittest/junit/launcher/JUnitLaunchConfigurationTab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public class JUnitLaunchConfigurationTab extends AbstractLaunchConfigurationTab
145145

146146
private Button fSearchButton;
147147

148-
private final Image fTestIcon = createImage("obj16/test.png"); //$NON-NLS-1$
148+
private final Image fTestIcon = createImage("obj16/test.svg"); //$NON-NLS-1$
149149

150150
private String fOriginalTestMethodName;
151151

org.eclipse.jdt.ui/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ Require-Bundle:
122122
org.eclipse.jdt.core.manipulation;bundle-version="[1.22.0,2.0.0)",
123123
org.eclipse.equinox.bidi;bundle-version="[0.10.0,2.0.0)"
124124
Bundle-RequiredExecutionEnvironment: JavaSE-21
125+
Require-Capability: eclipse.swt;filter:="(image.format=svg)"

0 commit comments

Comments
 (0)