JAL-2960 don’t override a swing method and create infinite recursion ;) toFront now...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 7 May 2018 08:53:05 +0000 (09:53 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 7 May 2018 08:53:26 +0000 (09:53 +0100)
src/jalview/api/structures/JalviewStructureDisplayI.java
src/jalview/gui/StructureViewer.java
src/jalview/gui/StructureViewerBase.java

index abb23f8..8f778f7 100644 (file)
@@ -123,6 +123,6 @@ public interface JalviewStructureDisplayI
   /**
    * Raise the panel to the top of the stack...
    */
-  void toFront();
+  void raiseViewer();
 
 }
index 0158055..0c8354b 100644 (file)
@@ -293,7 +293,7 @@ public class StructureViewer
         sview.addToExistingViewer(pdb, seqsForPdb, null, ap, pdbId);
       }
       sview.updateTitleAndMenus();
-      sview.toFront();
+      sview.raiseViewer();
       return sview;
     }
     ViewerType viewerType = getViewerType();
index e9c1051..72b0bcc 100644 (file)
@@ -1035,7 +1035,7 @@ public abstract class StructureViewerBase extends GStructureViewer
   }
 
   @Override
-  public void toFront()
+  public void raiseViewer()
   {
     toFront();
   }