From: imilne Date: Fri, 15 Dec 2006 15:08:57 +0000 (+0000) Subject: Modified MouseOverMessage.java so that tabs are used to separate message elements... X-Git-Tag: Release_0.2~198 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3a937e130eaf9c3a57c5759b9094ff5abbd4e12d;p=vamsas.git Modified MouseOverMessage.java so that tabs are used to separate message elements rather than underscores. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@322 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/picking/MouseOverMessage.java b/src/uk/ac/vamsas/client/picking/MouseOverMessage.java index b02a3c4..2cb8531 100644 --- a/src/uk/ac/vamsas/client/picking/MouseOverMessage.java +++ b/src/uk/ac/vamsas/client/picking/MouseOverMessage.java @@ -20,8 +20,8 @@ public class MouseOverMessage extends Message this.vorbaID = vorbaID; this.position = position; - message = "MOUSEOVER_" - + "vorbaID=" + vorbaID + "_" + "position=" + position; + message = "MOUSEOVER\t" + + "vorbaID=" + vorbaID + "\t" + "position=" + position; } /** @@ -32,7 +32,9 @@ public class MouseOverMessage extends Message MouseOverMessage(String str) throws Exception { - String[] elements = str.split("_"); + message = str; + + String[] elements = str.split("\t"); for (int i = 0; i < elements.length; i++) { diff --git a/src/uk/ac/vamsas/client/picking/PickEndPoint.java b/src/uk/ac/vamsas/client/picking/PickEndPoint.java index ac45278..c9e8507 100644 --- a/src/uk/ac/vamsas/client/picking/PickEndPoint.java +++ b/src/uk/ac/vamsas/client/picking/PickEndPoint.java @@ -115,10 +115,10 @@ class PickEndPoint extends Thread { try { - if (str.startsWith("CUSTOM_")) - return new CustomMessage(str.substring(7)); + if (str.startsWith("CUSTOM")) + return new CustomMessage(str.substring(6)); - if (str.startsWith("MOUSEOVER_")) + if (str.startsWith("MOUSEOVER")) return new MouseOverMessage(str); } catch (Exception e)