From 797a5cffdb1e932a419094a828ad3ccf4c3e5568 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 7 May 2018 09:53:05 +0100 Subject: [PATCH] =?utf8?q?JAL-2960=20don=E2=80=99t=20override=20a=20swing=20?= =?utf8?q?method=20and=20create=20infinite=20recursion=20;)=20toFront=20now=20?= =?utf8?q?raiseViewer=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/api/structures/JalviewStructureDisplayI.java | 2 +- src/jalview/gui/StructureViewer.java | 2 +- src/jalview/gui/StructureViewerBase.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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(); } -- 1.7.10.2