*/
static
{
+
loadedWithoutErrors = true;
+ if (!Platform.isJS())
+ /**
+ * Java only
+ *
+ * @j2sIgnore
+ *
+ */
+ {
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()
{
+
+ if (!Platform.isJS())
+ /**
+ * Java only
+ *
+ * @j2sIgnore
+ *
+ */
+ {
switch (jvm)
{
case MRJ_2_0:
break;
}
+ }
return true;
}
*/
private static Object locateBrowser()
{
+ if (!Platform.isJS())
+ /**
+ * Java only
+ *
+ * @j2sIgnore
+ *
+ */
+ {
if (browser != null)
{
return browser;
break;
}
+ }
+
return browser;
+
}
/**
*/
public static void openURL(String url) throws IOException
{
+
+ if (Platform.isJS())
+ {
+ Platform.openURL(url);
+ return;
+ }
+ else
+ /**
+ * Java only
+ *
+ * @j2sIgnore
+ */
+ {
+
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.