package jalview.gui;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
import jalview.api.AlignmentViewPanel;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
import jalview.structure.StructureSelectionManager;
import jalview.structures.models.AAStructureBindingModel;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
public class PymolBindingModel extends AAStructureBindingModel
{
private PymolManager pymolManager;
protected List<String> executeCommand(StructureCommandI command,
boolean getReply)
{
- System.out.println(command.toString()); // debug
+ // System.out.println(command.toString()); // debug
return pymolManager.sendCommand(command, getReply);
}
{
pymolManager.exitPymol();
}
- // if (this.pymolListener != null)
- // {
- // pymolListener.shutdown();
- // pymolListener = null;
- // }
pymolManager = null;
if (pymolMonitor != null)
return file;
}
+ /**
+ * Returns the file extension to use for a saved viewer session file (.pse)
+ *
+ * @return
+ * @see https://pymolwiki.org/index.php/Save
+ */
+ @Override
+ public String getSessionFileExtension()
+ {
+ return ".pse";
+ }
+
}