JAL-2960 raise the structure view after adding structures to it
authorJim Procter <jprocter@issues.jalview.org>
Fri, 4 May 2018 12:11:48 +0000 (13:11 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 4 May 2018 12:11:48 +0000 (13:11 +0100)
src/jalview/api/structures/JalviewStructureDisplayI.java
src/jalview/gui/StructureViewer.java
src/jalview/gui/StructureViewerBase.java

index 2cd9348..abb23f8 100644 (file)
@@ -120,4 +120,9 @@ public interface JalviewStructureDisplayI
    */
   void setAlignAddedStructures(boolean alignAdded);
 
+  /**
+   * Raise the panel to the top of the stack...
+   */
+  void toFront();
+
 }
index 35a4bc6..0158055 100644 (file)
@@ -293,6 +293,7 @@ public class StructureViewer
         sview.addToExistingViewer(pdb, seqsForPdb, null, ap, pdbId);
       }
       sview.updateTitleAndMenus();
+      sview.toFront();
       return sview;
     }
     ViewerType viewerType = getViewerType();
index 840dbae..e9c1051 100644 (file)
@@ -1034,4 +1034,10 @@ public abstract class StructureViewerBase extends GStructureViewer
     return seqColoursApplied;
   }
 
+  @Override
+  public void toFront()
+  {
+    toFront();
+  }
+
 }