Skip to content

Commit fe02ba5

Browse files
committed
Support open SVG files in ImageAnalyzer
1 parent 5bdbda9 commit fe02ba5

File tree

1 file changed

+3
-3
lines changed
  • examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer

1 file changed

+3
-3
lines changed

examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ public class ImageAnalyzer {
118118
static final int ALPHA_X = 1;
119119
static final int ALPHA_Y = 2;
120120
static final String[] OPEN_FILTER_EXTENSIONS = new String[] {
121-
"*.bmp;*.gif;*.ico;*.jfif;*.jpeg;*.jpg;*.png;*.tif;*.tiff",
122-
"*.bmp", "*.gif", "*.ico", "*.jpg;*.jpeg;*.jfif", "*.png", "*.tif;*.tiff" };
121+
"*.bmp;*.gif;*.ico;*.jfif;*.jpeg;*.jpg;*.png;*.svg;*.tif;*.tiff",
122+
"*.bmp", "*.gif", "*.ico", "*.jpg;*.jpeg;*.jfif", "*.png", "*.svg","*.tif;*.tiff" };
123123
static final String[] OPEN_FILTER_NAMES = new String[] {
124124
bundle.getString("All_images") + " (bmp, gif, ico, jfif, jpeg, jpg, png, tif, tiff)",
125125
"BMP (*.bmp)", "GIF (*.gif)", "ICO (*.ico)", "JPEG (*.jpg, *.jpeg, *.jfif)",
126-
"PNG (*.png)", "TIFF (*.tif, *.tiff)" };
126+
"PNG (*.png)", "SVG (*.svg)","TIFF (*.tif, *.tiff)" };
127127
static final String[] SAVE_FILTER_EXTENSIONS = new String[] {
128128
"*.bmp", "*.bmp", "*.gif", "*.ico", "*.jpg", "*.png", "*.tif", "*.bmp" };
129129
static final String[] SAVE_FILTER_NAMES = new String[] {

0 commit comments

Comments
 (0)