aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/splashscreen
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-30 10:39:16 +0100
committerSven Gothel <[email protected]>2014-01-30 10:39:16 +0100
commit64e7dcc21339ae56841f10131a4f8a462454dec4 (patch)
treea62d2fbafc6fbe412d2d5ad599cd992bdf97ddbe /netx/net/sourceforge/jnlp/splashscreen
parent98c9d6e1ea22db18913b531b8056fbdc5465eb18 (diff)
Experimental Applet without AWT (Applet3)
DISCLAIMER: - Only new Applet3 applets are supported under X11 for now - AWT Applet are disabled - Namespace com.jogamp.* and jogamp.* is only chosen to indicate new AWT-less code - Applet3 code path does not invoke any AWT function - JNLP code path still utilizes AWT/Swing (UIs, ..) TODO: - Refactor AWT dependencies properly via UI interfaces ? - Decide whether we shall merge netx and plugin namespace ? IMHO the right thing to do, jumping hoops due to separation. - Add support for Windows, OSX, Wayland, .. Applet3: - New AWT-less Applet3 interfaces are: - com.jogamp.plugin.applet.Applet3 - User implements - com.jogamp.plugin.applet.Applet3Context - Plugin implements - com.jogamp.plugin.ui.NativeWindowUpstream - Plugin window, aka browser parent of Applet3 - com.jogamp.plugin.ui.NativeWindowDownstream - Applet3 user window - User interfaces are exported as: - plugin3-public.jar - plugin3-public-src.zip
Diffstat (limited to 'netx/net/sourceforge/jnlp/splashscreen')
-rw-r--r--netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java b/netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java
index b43476e..8825183 100644
--- a/netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java
+++ b/netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java
@@ -36,6 +36,8 @@ obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package net.sourceforge.jnlp.splashscreen;
+import jogamp.plugin.jnlp.runtime.Applet3Environment;
+import jogamp.plugin.jnlp.runtime.Applet3Instance;
import net.sourceforge.jnlp.runtime.AppletEnvironment;
import net.sourceforge.jnlp.runtime.AppletInstance;
import net.sourceforge.jnlp.runtime.Boot;
@@ -83,17 +85,44 @@ public class SplashUtils {
OutputController.getLogger().log(t);
}
}
+ public static void showErrorCaught(Throwable ex, Applet3Instance appletInstance) {
+ try {
+ showError(ex, appletInstance);
+ } catch (Throwable t) {
+ // prinitng this exception is discutable. I have let it in for case that
+ //some retyping will fail
+ OutputController.getLogger().log(t);
+ }
+ }
public static void showError(Throwable ex, AppletInstance appletInstance) {
if (appletInstance == null) {
+ OutputController.getLogger().log(ex);
return;
}
AppletEnvironment ae = appletInstance.getAppletEnvironment();
showError(ex, ae);
}
+ public static void showError(Throwable ex, Applet3Instance appletInstance) {
+ if (appletInstance == null) {
+ OutputController.getLogger().log(ex);
+ return;
+ }
+ Applet3Environment ae = appletInstance.getAppletEnvironment();
+ showError(ex, ae);
+ }
public static void showError(Throwable ex, AppletEnvironment ae) {
if (ae == null) {
+ OutputController.getLogger().log(ex);
+ return;
+ }
+ SplashController p = ae.getSplashControler();
+ showError(ex, p);
+ }
+ public static void showError(Throwable ex, Applet3Environment ae) {
+ if (ae == null) {
+ OutputController.getLogger().log(ex);
return;
}
SplashController p = ae.getSplashControler();
@@ -102,6 +131,7 @@ public class SplashUtils {
public static void showError(Throwable ex, SplashController f) {
if (f == null) {
+ OutputController.getLogger().log(ex);
return;
}