|
From: <tre...@us...> - 2007-11-17 16:36:07
|
Revision: 585
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=585&view=rev
Author: trevorolio
Date: 2007-11-17 08:36:11 -0800 (Sat, 17 Nov 2007)
Log Message:
-----------
Tweaked the Java3D setup to fall back to aliased, single buffered if the graphics board doesn't support it, which makes us run on lesser machines and also on the Parallels emulator on OS X Intel machines, making life much easier for Macish developers who want to maintain support WinIE.
Used this fact to fix IE+Java quirks (e.g. no String[] passing over liveconnect) so that the majority of browser installations can once again use Ogoglio.
Modified Paths:
--------------
maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
Modified: maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
===================================================================
--- maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2007-11-17 16:36:05 UTC (rev 584)
+++ maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2007-11-17 16:36:11 UTC (rev 585)
@@ -207,7 +207,10 @@
}
win.call("focusCommandField", null); // Call a JavaScript function
} catch (Exception e) {
- e.printStackTrace();
+ if (!printedLiveConnectErrorMessage) {
+ Log.error("Could not use LiveConnect (ignoring future errors): " + e);
+ printedLiveConnectErrorMessage = true;
+ }
}
}
@@ -292,13 +295,16 @@
try {
JSObject win = JSObject.getWindow(this); // get handle to a window.
if (win == null) {
- Log.error("Could not do live connect. Check that mayscript is true in the applet tag.");
+ Log.warn("Could not do live connect. Check that mayscript is true in the applet tag.");
return;
}
String[] args = { message };
win.call("displayChatMessage", args); // Call a JavaScript function
} catch (Exception e) {
- e.printStackTrace();
+ if (!printedLiveConnectErrorMessage) {
+ Log.warn("Could not use LiveConnect (ignoring future errors): " + e);
+ printedLiveConnectErrorMessage = true;
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|