From: pmarguerite Date: Fri, 15 Dec 2006 15:01:43 +0000 (+0000) Subject: SimpleClient: remove client of the session client list when closing/finalizing (final... X-Git-Tag: Release_0.2~202 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=71286bd998592eb00434a88505820739bfd09d8b;p=vamsas.git SimpleClient: remove client of the session client list when closing/finalizing (finalizeClient method) 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 --- diff --git a/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java b/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java index e66cb51..9af8889 100644 --- a/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java +++ b/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java @@ -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() */