added a getter for the pickhandler interface in IClient
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 15 Dec 2006 11:12:32 +0000 (11:12 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 15 Dec 2006 11:12:32 +0000 (11:12 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@312 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/IClient.java
src/uk/ac/vamsas/client/simpleclient/SimpleClient.java

index 5df2f20..877dcfe 100644 (file)
@@ -139,4 +139,10 @@ public interface IClient {
      * LATER: create VAMSAS exception hierarchy (in a language agnostic manner)
      */
     public void joinSession() throws Exception;
+    /**
+     * get the Vamsas Pick Manager for registering pick handlers and sending messages for the current session. 
+     * @return an object implementing IPickManager (which maybe the same as the IClient implementer)
+     */
+    public uk.ac.vamsas.client.picking.IPickManager getPickManager();
+    
 }
index b2b1757..e66cb51 100644 (file)
@@ -28,6 +28,7 @@ import uk.ac.vamsas.client.IObjectUpdate;
 import uk.ac.vamsas.client.InvalidSessionUrnException;
 import uk.ac.vamsas.client.SessionHandle;
 import uk.ac.vamsas.client.UserHandle;
+import uk.ac.vamsas.client.picking.IPickManager;
 import uk.ac.vamsas.objects.core.ApplicationData;
 import uk.ac.vamsas.objects.core.Entry;
 import uk.ac.vamsas.objects.core.LockFile;
@@ -414,4 +415,12 @@ public class SimpleClient implements IClient {
     // TODO Auto-generated method stub
     
   }
+
+  /* (non-Javadoc)
+   * @see uk.ac.vamsas.client.IClient#getPickManager()
+   */
+  public IPickManager getPickManager() {
+    // TODO Auto-generated method stub
+    return null;
+  }
 }