Modified MouseOverMessage.java so that tabs are used to separate message elements...
authorimilne <imilne@issues.jalview.org>
Fri, 15 Dec 2006 15:08:57 +0000 (15:08 +0000)
committerimilne <imilne@issues.jalview.org>
Fri, 15 Dec 2006 15:08:57 +0000 (15:08 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@322 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/picking/MouseOverMessage.java
src/uk/ac/vamsas/client/picking/PickEndPoint.java

index b02a3c4..2cb8531 100644 (file)
@@ -20,8 +20,8 @@ public class MouseOverMessage extends Message
                this.vorbaID = vorbaID;\r
                this.position = position;\r
                \r
-               message = "MOUSEOVER_"\r
-                       + "vorbaID=" + vorbaID + "_" + "position=" + position;\r
+               message = "MOUSEOVER\t"\r
+                       + "vorbaID=" + vorbaID + "\t" + "position=" + position;\r
        }\r
        \r
        /**\r
@@ -32,7 +32,9 @@ public class MouseOverMessage extends Message
        MouseOverMessage(String str)\r
                throws Exception\r
        {\r
-               String[] elements = str.split("_");\r
+               message = str;\r
+               \r
+               String[] elements = str.split("\t");\r
                \r
                for (int i = 0; i < elements.length; i++)\r
                {\r
index ac45278..c9e8507 100644 (file)
@@ -115,10 +115,10 @@ class PickEndPoint extends Thread
        {\r
                try\r
                {\r
-                       if (str.startsWith("CUSTOM_"))\r
-                               return new CustomMessage(str.substring(7));\r
+                       if (str.startsWith("CUSTOM"))\r
+                               return new CustomMessage(str.substring(6));\r
                \r
-                       if (str.startsWith("MOUSEOVER_"))\r
+                       if (str.startsWith("MOUSEOVER"))\r
                                return new MouseOverMessage(str);\r
                }\r
                catch (Exception e)\r