j2sNative references moved to Platform
[jalview.git] / src / jalview / gui / JvOptionPane.java
index 2290b52..5bbe75f 100644 (file)
@@ -21,7 +21,7 @@
 
 package jalview.gui;
 
-import jalview.bin.Jalview;
+import jalview.util.Platform;
 import jalview.util.dialogrunner.DialogRunnerI;
 
 import java.awt.Component;
@@ -58,7 +58,7 @@ public class JvOptionPane extends JOptionPane implements DialogRunnerI,
   
   public JvOptionPane(final Component parent)
   {
-    this.parentComponent = Jalview.isJS() ? this : parent;
+    this.parentComponent = Platform.isJS() ? this : parent;
   }
 
   public static int showConfirmDialog(Component parentComponent,
@@ -720,7 +720,7 @@ public class JvOptionPane extends JOptionPane implements DialogRunnerI,
     String prefix = ""; 
     
     // JavaScript only
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       switch (messageType)
       {
@@ -789,7 +789,7 @@ public class JvOptionPane extends JOptionPane implements DialogRunnerI,
      * In Java, the response is returned to this thread and handled here;
      * (for Javascript, see propertyChange)
      */
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       handleResponse(response);
     }
@@ -818,7 +818,7 @@ public class JvOptionPane extends JOptionPane implements DialogRunnerI,
               yesNoCancelOption, questionMessage, icon, options,
               initresponse);
     }
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       handleResponse(response);
     }