JAL-2164 JAL-1772 explodeViews can be static, so make it so
authorJim Procter <jprocter@issues.jalview.org>
Fri, 29 Jul 2016 16:36:51 +0000 (17:36 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 29 Jul 2016 16:36:51 +0000 (17:36 +0100)
src/jalview/gui/AlignFrame.java
src/jalview/gui/Desktop.java

index 3736791..15f88fb 100644 (file)
@@ -2831,7 +2831,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
   @Override
   public void expandViews_actionPerformed(ActionEvent e)
   {
-    Desktop.instance.explodeViews(this);
+    Desktop.explodeViews(this);
   }
 
   /**
index d54e553..7811e41 100644 (file)
@@ -1806,7 +1806,7 @@ public class Desktop extends jalview.jbgui.GDesktop implements
    * 
    * @param af
    */
-  public void explodeViews(AlignFrame af)
+  public static void explodeViews(AlignFrame af)
   {
     int size = af.alignPanels.size();
     if (size < 2)