From: Jim Procter Date: Mon, 7 May 2018 08:53:05 +0000 (+0100) Subject: JAL-2960 don’t override a swing method and create infinite recursion ;) toFront now... X-Git-Tag: Release_2_10_4~9 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=797a5cffdb1e932a419094a828ad3ccf4c3e5568;p=jalview.git JAL-2960 don’t override a swing method and create infinite recursion ;) toFront now raiseViewer ! --- diff --git a/src/jalview/api/structures/JalviewStructureDisplayI.java b/src/jalview/api/structures/JalviewStructureDisplayI.java index abb23f8..8f778f7 100644 --- a/src/jalview/api/structures/JalviewStructureDisplayI.java +++ b/src/jalview/api/structures/JalviewStructureDisplayI.java @@ -123,6 +123,6 @@ public interface JalviewStructureDisplayI /** * Raise the panel to the top of the stack... */ - void toFront(); + void raiseViewer(); } diff --git a/src/jalview/gui/StructureViewer.java b/src/jalview/gui/StructureViewer.java index 0158055..0c8354b 100644 --- a/src/jalview/gui/StructureViewer.java +++ b/src/jalview/gui/StructureViewer.java @@ -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(); diff --git a/src/jalview/gui/StructureViewerBase.java b/src/jalview/gui/StructureViewerBase.java index e9c1051..72b0bcc 100644 --- a/src/jalview/gui/StructureViewerBase.java +++ b/src/jalview/gui/StructureViewerBase.java @@ -1035,7 +1035,7 @@ public abstract class StructureViewerBase extends GStructureViewer } @Override - public void toFront() + public void raiseViewer() { toFront(); }