From ee91b5df4a306e551e7b75861f86b32fac504d5c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 4 Jun 2015 14:08:04 +0100 Subject: [PATCH] JAL-1743 new Chimera menu option to 'fit to window' --- src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java | 3 +-- src/jalview/gui/ChimeraViewFrame.java | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java b/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java index 98f2e1a..95ece8a 100644 --- a/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java +++ b/src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java @@ -291,8 +291,7 @@ public abstract class JalviewChimeraBinding extends AAStructureBindingModel cmd.setLength(cmd.length() - 4); } String cmdstring = cmd.toString(); - evalStateCommand("~display #*; ~ribbon #*; ribbon " + cmdstring - + ";focus " + cmdstring, false); + evalStateCommand("~display #*; ~ribbon #*; ribbon " + cmdstring, false); } /** diff --git a/src/jalview/gui/ChimeraViewFrame.java b/src/jalview/gui/ChimeraViewFrame.java index a803c40..6c0fa74 100644 --- a/src/jalview/gui/ChimeraViewFrame.java +++ b/src/jalview/gui/ChimeraViewFrame.java @@ -1231,4 +1231,10 @@ public class ChimeraViewFrame extends StructureViewerBase { return this.chimeraSessionFile; } + + @Override + protected void fitToWindow_actionPerformed() + { + jmb.focusView(); + } } -- 1.7.10.2