j2sNative references moved to Platform
[jalview.git] / src / jalview / jbgui / GSplitFrame.java
index a40e260..db346b8 100644 (file)
@@ -49,6 +49,8 @@ public class GSplitFrame extends JInternalFrame
    */
   private double dividerRatio;
 
+  private static boolean doSetDivider = !Platform.isJS(); // BH why? Old?
+
   /**
    * Constructor
    * 
@@ -79,11 +81,7 @@ public class GSplitFrame extends JInternalFrame
      * project
      */
     int topFrameHeight = topFrame.getHeight();
-    /**
-     * TODO SplitFrame.setDividerLocation
-     * 
-     * @j2sNative
-     */
+    if (doSetDivider)
     {
       splitPane.setDividerSize(DIVIDER_SIZE);
       if (topFrameHeight == 0)
@@ -118,9 +116,7 @@ public class GSplitFrame extends JInternalFrame
     }
     else
     {
-      /**
-       * @j2sNative
-       */
+       if (doSetDivider)
       {
         ((BasicInternalFrameUI) topFrame.getUI()).setNorthPane(null);
         ((BasicInternalFrameUI) bottomFrame.getUI()).setNorthPane(null);
@@ -212,9 +208,8 @@ public class GSplitFrame extends JInternalFrame
   public void setRelativeDividerLocation(double r)
   {
     this.dividerRatio = r;
-    /**
-     * @j2sNative
-     */
+    // BH why?
+    if (!Platform.isJS())
     {
       splitPane.setDividerLocation(r);
     }
@@ -227,9 +222,7 @@ public class GSplitFrame extends JInternalFrame
    */
   protected void setDividerLocation(int p)
   {
-    /**
-     * @j2sNative
-     */
+       if (doSetDivider )
     {
       splitPane.setDividerLocation(p);
     }