Keep record of last tooltip
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 May 2007 08:08:47 +0000 (08:08 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 May 2007 08:08:47 +0000 (08:08 +0000)
src/jalview/gui/SeqPanel.java

index aaad2ae..893ce2c 100755 (executable)
@@ -771,11 +771,14 @@ public class SeqPanel
     else\r
     {\r
       tooltipText.append("</html>");\r
-      setToolTipText(tooltipText.toString());\r
+      if (lastTooltip == null || !lastTooltip.equals(tooltipText.toString()))\r
+        setToolTipText(tooltipText.toString());\r
+\r
+      lastTooltip = tooltipText.toString();\r
     }\r
-    // else\r
-    //  setToolTipText(null);\r
+\r
   }\r
+  String lastTooltip;\r
 \r
   void setStatusMessage(SequenceI sequence, int res, int seq)\r
   {\r