Skip to content

Commit 9593a67

Browse files
Michael5601HeikoKlare
authored andcommitted
add all svgs to jface bundles
This commit adds all svgs to the bundles `org.eclipse.jface`, `org.eclipse.jface.text` and `org.eclipse.jface.notifications`.
1 parent 834eb7c commit 9593a67

Some content is hidden

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

44 files changed

+13874
-25
lines changed

bundles/org.eclipse.jface.notifications/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Export-Package: org.eclipse.jface.notifications,
1111
Automatic-Module-Name: org.eclipse.jface.notifications
1212
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.29.0",
1313
org.eclipse.jface;bundle-version="3.20.0"
14+
Require-Capability: eclipse.swt;filter:="(image.format=svg)"
Lines changed: 47 additions & 0 deletions
Loading
Lines changed: 45 additions & 0 deletions
Loading

bundles/org.eclipse.jface.notifications/src/org/eclipse/jface/notifications/internal/CommonImages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public class CommonImages {
4949

5050
private static final String T_EVIEW = "eview16"; //$NON-NLS-1$
5151

52-
public static final ImageDescriptor NOTIFICATION_CLOSE = create(T_EVIEW, "notification-close.png"); //$NON-NLS-1$
53-
public static final ImageDescriptor NOTIFICATION_CLOSE_HOVER = create(T_EVIEW, "notification-close-active.png"); //$NON-NLS-1$
52+
public static final ImageDescriptor NOTIFICATION_CLOSE = create(T_EVIEW, "notification-close.svg"); //$NON-NLS-1$
53+
public static final ImageDescriptor NOTIFICATION_CLOSE_HOVER = create(T_EVIEW, "notification-close-active.svg"); //$NON-NLS-1$
5454

5555
private static ImageDescriptor create(String prefix, String name) {
5656
try {

bundles/org.eclipse.jface.text/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ Require-Bundle:
4040
Import-Package: com.ibm.icu.text
4141
Bundle-RequiredExecutionEnvironment: JavaSE-17
4242
Automatic-Module-Name: org.eclipse.jface.text
43+
Require-Capability: eclipse.swt;filter:="(image.format=svg)"

bundles/org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionAnnotation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ private Image getImage(Display display) {
141141
private void initializeImages(Display display) {
142142
if (fgCollapsedImage == null) {
143143

144-
ImageDescriptor descriptor= ImageDescriptor.createFromFile(ProjectionAnnotation.class, "images/collapsed.png"); //$NON-NLS-1$
144+
ImageDescriptor descriptor= ImageDescriptor.createFromFile(ProjectionAnnotation.class, "images/collapsed.svg"); //$NON-NLS-1$
145145
fgCollapsedImage= descriptor.createImage(display);
146-
descriptor= ImageDescriptor.createFromFile(ProjectionAnnotation.class, "images/expanded.png"); //$NON-NLS-1$
146+
descriptor= ImageDescriptor.createFromFile(ProjectionAnnotation.class, "images/expanded.svg"); //$NON-NLS-1$
147147
fgExpandedImage= descriptor.createImage(display);
148148
display.disposeExec(new DisplayDisposeRunnable());
149149
}
Lines changed: 188 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)