SimpleClient: remove client of the session client list when closing/finalizing (final...
authorpmarguerite <pmarguerite@issues.jalview.org>
Fri, 15 Dec 2006 15:01:43 +0000 (15:01 +0000)
committerpmarguerite <pmarguerite@issues.jalview.org>
Fri, 15 Dec 2006 15:01:43 +0000 (15:01 +0000)
added get_session() to retrieve current vamsas session

git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@318 be28352e-c001-0410-b1a7-c7978e42abec

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

index e66cb51..9af8889 100644 (file)
@@ -217,6 +217,7 @@ public class SimpleClient implements IClient {
     // if (handlers.containsKey(Events.CLIENT_FINALIZATION))
     // deregister listeners.
     // mark this instance as finalized
+    this._session.removeClient(this);
   }
   
   /*
@@ -416,6 +417,14 @@ public class SimpleClient implements IClient {
     
   }
 
+  /**
+   * retrieves the current VamsasSession to which belong the client
+   * @return the _session
+   */
+  protected VamsasSession get_session() {
+    return this._session;
+  }
+
   /* (non-Javadoc)
    * @see uk.ac.vamsas.client.IClient#getPickManager()
    */