X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fpymol%2FPymolCommands.java;h=f3821732593ff532dd1a28a42825668842915784;hb=5450becd429ebedd98ecfbe33192ac474211cdad;hp=7e5ba2d12bc5b7582d64233036186e4b3b7f03d1;hpb=2fb924ec0d110eb3ca6c3fb06efa27acd34b2750;p=jalview.git diff --git a/src/jalview/ext/pymol/PymolCommands.java b/src/jalview/ext/pymol/PymolCommands.java index 7e5ba2d..f382173 100644 --- a/src/jalview/ext/pymol/PymolCommands.java +++ b/src/jalview/ext/pymol/PymolCommands.java @@ -22,6 +22,8 @@ import jalview.structure.StructureCommandsBase; */ public class PymolCommands extends StructureCommandsBase { + private static final StructureCommand CLOSE_PYMOL = new StructureCommand("quit"); + private static final StructureCommand COLOUR_BY_CHAIN = new StructureCommand("spectrum", "chain"); private static final List COLOR_BY_CHARGE = new ArrayList<>(); @@ -75,8 +77,9 @@ public class PymolCommands extends StructureCommandsBase @Override public StructureCommandI focusView() { - // TODO what? - return null; + // https://pymol.org/dokuwiki/doku.php?id=command:zoom + // not currently documented on https://pymolwiki.org/index.php/Category:Commands + return new StructureCommand("zoom"); } @Override @@ -321,7 +324,7 @@ public class PymolCommands extends StructureCommandsBase public StructureCommandI closeViewer() { // https://pymolwiki.org/index.php/Quit - return new StructureCommand("quit"); + return CLOSE_PYMOL; } }