j2sNative references moved to Platform
[jalview.git] / src / jalview / gui / PopupMenu.java
index 5f58d51..ec7ff22 100644 (file)
@@ -25,7 +25,6 @@ import jalview.analysis.AlignmentAnnotationUtils;
 import jalview.analysis.AlignmentUtils;
 import jalview.analysis.Conservation;
 import jalview.bin.Cache;
-import jalview.bin.Jalview;
 import jalview.commands.ChangeCaseCommand;
 import jalview.commands.EditCommand;
 import jalview.commands.EditCommand.Action;
@@ -51,6 +50,7 @@ import jalview.schemes.PIDColourScheme;
 import jalview.util.GroupUrlLink;
 import jalview.util.GroupUrlLink.UrlStringTooLongException;
 import jalview.util.MessageManager;
+import jalview.util.Platform;
 import jalview.util.StringUtils;
 import jalview.util.UrlLink;
 
@@ -597,7 +597,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
   protected void showFeatureDetails(SequenceFeature sf)
   {
     JInternalFrame details;
-    if (/** @j2sNative true || */ false)
+    if (Platform.isJS())
     {
       details = new JInternalFrame();
       JPanel panel = new JPanel(new BorderLayout());
@@ -1650,7 +1650,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
     String report = contents.toString();
     
     JInternalFrame frame;
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       JLabel textLabel = new JLabel();
       textLabel.setText(report);