summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-05-17 14:53:09 (EDT)
committerpelder2006-05-17 14:53:09 (EDT)
commit547461ee5603235e517d328450e8ffeb474be364 (patch)
tree3580966d45482a7dc03c22714b69759963b95fab
parent707d825676805fc9ed07edfea25d170d72e3eba3 (diff)
downloadorg.eclipse.jet-547461ee5603235e517d328450e8ffeb474be364.zip
org.eclipse.jet-547461ee5603235e517d328450e8ffeb474be364.tar.gz
org.eclipse.jet-547461ee5603235e517d328450e8ffeb474be364.tar.bz2
[141537] Handle Linux exception when running headless.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/JET2Platform.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/JET2Platform.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/JET2Platform.java
index f0020c3..f746ab6 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/JET2Platform.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/JET2Platform.java
@@ -115,10 +115,17 @@ public class JET2Platform
}
catch (NoClassDefFoundError e)
{
+ // happens if swt or platform core plug-ins are not present, and Display, Shell or PlatformUI cannot be loaded
return null;
}
catch (IllegalStateException e)
{
+ // happens when PlatformUI.getWorkbench() is called in a headless launch
+ return null;
+ }
+ catch (UnsatisfiedLinkError e)
+ {
+ // happens on linux/GTK during Display init when headless.
return null;
}
}