From: gmungoc Date: Thu, 4 Jun 2015 13:08:04 +0000 (+0100) Subject: JAL-1743 new Chimera menu option to 'fit to window' X-Git-Tag: Release_2_10_0~635 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ee91b5df4a306e551e7b75861f86b32fac504d5c;p=jalview.git JAL-1743 new Chimera menu option to 'fit to window' --- 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(); + } }