From: jprocter Date: Tue, 2 Jun 2009 09:25:51 +0000 (+0000) Subject: upgrade vamsas client to 0.1 (selections) X-Git-Tag: Jalview_2_4_0b2~35 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0219b2a73e99515e18a7627c1004ae41f3b4d9bc;p=jalview.git upgrade vamsas client to 0.1 (selections) --- diff --git a/lib/vamsas-client.jar b/lib/vamsas-client.jar index f34a1fc..c9edbcb 100644 Binary files a/lib/vamsas-client.jar and b/lib/vamsas-client.jar differ diff --git a/src/jalview/gui/VamsasApplication.java b/src/jalview/gui/VamsasApplication.java index 5988bb8..c52ca9f 100644 --- a/src/jalview/gui/VamsasApplication.java +++ b/src/jalview/gui/VamsasApplication.java @@ -45,6 +45,7 @@ import uk.ac.vamsas.client.picking.IMessageHandler; import uk.ac.vamsas.client.picking.IPickManager; import uk.ac.vamsas.client.picking.Message; import uk.ac.vamsas.client.picking.MouseOverMessage; +import uk.ac.vamsas.client.picking.SelectionMessage; import uk.ac.vamsas.objects.core.Entry; /** @@ -569,7 +570,12 @@ public class VamsasApplication public void handleMessage(Message message) { - if (message instanceof MouseOverMessage && vobj2jv != null) + if (vobj2jv==null) + { + // we are not in a session yet. + return; + } + if (message instanceof MouseOverMessage) { MouseOverMessage mm = (MouseOverMessage) message; String mstring = mm.getVorbaID() + " " + mm.getPosition(); @@ -593,6 +599,63 @@ public class VamsasApplication .getPosition()); } } + if (message instanceof uk.ac.vamsas.client.picking.SelectionMessage) + { + // we only care about AlignmentSequence selections + SelectionMessage sm = (SelectionMessage) message; + + Object[] jvobjs = new Object[sm.getVorbaIDs().length]; + Class type = null; + for (int o=0;o1 && c