Skip to content

Commit 2a68963

Browse files
committed
Streamline SnippetLauncher
PocketPC and JavaXPCom are dead technologies - no need to special handling them. Catch only IOExceptions (rather than Exception)
1 parent c670f4e commit 2a68963

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/SnippetLauncher.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,9 @@ public static void main (String [] args) {
5858
System.out.println(source.substring(start, end-3));
5959
boolean skip = false;
6060
String platform = SWT.getPlatform();
61-
if (source.contains("PocketPC")) {
62-
platform = "PocketPC";
63-
skip = true;
64-
} else if (source.contains("OpenGL")) {
61+
if (source.contains("OpenGL")) {
6562
platform = "OpenGL";
6663
skip = true;
67-
} else if (source.contains("JavaXPCOM")) {
68-
platform = "JavaXPCOM";
69-
skip = true;
7064
} else {
7165
String [] platforms = {"win32", "gtk"};
7266
for (String platformId : platforms) {
@@ -81,7 +75,8 @@ public static void main (String [] args) {
8175
System.out.println("...skipping " + platform + " example...");
8276
continue;
8377
}
84-
} catch (Exception e) {
78+
} catch (IOException e) {
79+
e.printStackTrace();
8580
}
8681
}
8782
Method method = null;

0 commit comments

Comments
 (0)