From: jprocter Date: Sun, 26 Mar 2006 18:29:01 +0000 (+0000) Subject: modified constructor for jalview.gui.VamsasClient X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4379ad1a4476264c5ddd9c1c9a8ed21b23368a5f;p=jalview.git modified constructor for jalview.gui.VamsasClient --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 902d564..31ebe44 100755 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -595,8 +595,7 @@ public class Desktop extends jalview.jbgui.GDesktop if (value == JalviewFileChooser.APPROVE_OPTION) { v_client = new jalview.gui.VamsasClient(this, - chooser.getSelectedFile().getAbsolutePath() - ); + chooser.getSelectedFile()); this.vamsasLoad.setText("Session Update"); this.vamsasStop.setVisible(true); v_client.initial_update(); diff --git a/src/jalview/gui/VamsasClient.java b/src/jalview/gui/VamsasClient.java index d17f746..46881ef 100755 --- a/src/jalview/gui/VamsasClient.java +++ b/src/jalview/gui/VamsasClient.java @@ -20,6 +20,7 @@ import org.vamsas.client.simpleclient.VamsasArchive; import org.vamsas.client.simpleclient.VamsasFile; import org.vamsas.objects.core.VamsasDocument; import org.vamsas.test.simpleclient.ArchiveClient; +import org.vamsas.test.simpleclient.ClientDoc; /** * @author jimp @@ -31,8 +32,8 @@ public class VamsasClient extends ArchiveClient { // preferences for check for default session at startup. // user and organisation stuff. public VamsasClient(Desktop jdesktop, - String sessionPath) { - super("Jalview User", "Dundee", // new org.vamsas.client.ClientHandle("jalview","2.7"), + File sessionPath) { + super("Jalview User", "Dundee", "jalview","2.7", sessionPath); us=jdesktop; } @@ -122,8 +123,8 @@ public class VamsasClient extends ArchiveClient { this.client = client; } public void run() { - VamsasArchive docio = client.watch(0); - client.get_update(docio); + ClientDoc docio = client.watch(0); + } }