+ public void vamsasImport_actionPerformed(ActionEvent e)
+ {
+ if (v_client==null)
+ {
+ // Load and try to start a session.
+ JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.
+ getProperty("LAST_DIRECTORY"));
+
+ chooser.setFileView(new JalviewFileView());
+ chooser.setDialogTitle("Open a saved VAMSAS session");
+ chooser.setToolTipText("select a vamsas session to be opened as a new vamsas session.");
+
+ int value = chooser.showOpenDialog(this);
+
+ if (value == JalviewFileChooser.APPROVE_OPTION)
+ {
+ try {
+ v_client = new jalview.gui.VamsasApplication(this,
+ chooser.getSelectedFile());
+ } catch (Exception ex)
+ {
+ jalview.bin.Cache.log.error("New vamsas session from existing session file failed:",ex);
+ return;
+ }
+ setupVamsasConnectedGui();
+ v_client.initial_update(); // TODO: thread ?
+ }
+ }else {
+ jalview.bin.Cache.log.error("Implementation error - load session from a running session is not supported.");
+ }
+ }
+
+ public void vamsasStart_actionPerformed(ActionEvent e)