*/
static
{
+
loadedWithoutErrors = true;
+ /**
+ *
+ * @j2sNative
+ *
+ */
+ {
String osName = System.getProperty("os.name");
if (osName.startsWith("Mac OS"))
{ // if we haven't hit any errors yet
loadedWithoutErrors = loadClasses();
}
+ }
}
/**
*/
private static boolean loadClasses()
{
+
+ /**
+ * @j2sNative
+ *
+ */
+ {
switch (jvm)
{
case MRJ_2_0:
break;
}
+ }
return true;
}
*/
private static Object locateBrowser()
{
+ /**
+ * @j2sNative
+ *
+ */
+ {
if (browser != null)
{
return browser;
break;
}
+ }
+
return browser;
+
}
/**
*/
public static void openURL(String url) throws IOException
{
+
+ /**
+ * @j2sNative
+ *
+ * window.open(url);
+ *
+ *
+ */
+
+ {
+
if (!loadedWithoutErrors)
{
throw new IOException(MessageManager
break;
}
+ }
}
+
/**
* Methods required for Mac OS X. The presence of native methods does not
* cause any problems on other platforms.