modified constructor for jalview.gui.VamsasClient
authorjprocter <Jim Procter>
Sun, 26 Mar 2006 18:29:01 +0000 (18:29 +0000)
committerjprocter <Jim Procter>
Sun, 26 Mar 2006 18:29:01 +0000 (18:29 +0000)
src/jalview/gui/Desktop.java
src/jalview/gui/VamsasClient.java

index 902d564..31ebe44 100755 (executable)
@@ -595,8 +595,7 @@ public class Desktop extends jalview.jbgui.GDesktop
         if (value == JalviewFileChooser.APPROVE_OPTION)\r
         {\r
           v_client = new jalview.gui.VamsasClient(this,\r
-              chooser.getSelectedFile().getAbsolutePath()\r
-              );\r
+              chooser.getSelectedFile());\r
           this.vamsasLoad.setText("Session Update");\r
           this.vamsasStop.setVisible(true);\r
           v_client.initial_update();\r
index d17f746..46881ef 100755 (executable)
@@ -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);
+                       
                }
                
        }