JAL-1743 new Chimera menu option to 'fit to window'
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 4 Jun 2015 13:08:04 +0000 (14:08 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 4 Jun 2015 13:08:04 +0000 (14:08 +0100)
src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java
src/jalview/gui/ChimeraViewFrame.java

index 98f2e1a..95ece8a 100644 (file)
@@ -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);
   }
 
   /**
index a803c40..6c0fa74 100644 (file)
@@ -1231,4 +1231,10 @@ public class ChimeraViewFrame extends StructureViewerBase
   {
     return this.chimeraSessionFile;
   }
+
+  @Override
+  protected void fitToWindow_actionPerformed()
+  {
+    jmb.focusView();
+  }
 }