From: amwaterhouse Date: Thu, 10 May 2007 08:08:47 +0000 (+0000) Subject: Keep record of last tooltip X-Git-Tag: Release_2_3~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=45709c18006e1fba002a9234a5875c986ae98996;p=jalview.git Keep record of last tooltip --- diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index aaad2ae..893ce2c 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -771,11 +771,14 @@ public class SeqPanel else { tooltipText.append(""); - setToolTipText(tooltipText.toString()); + if (lastTooltip == null || !lastTooltip.equals(tooltipText.toString())) + setToolTipText(tooltipText.toString()); + + lastTooltip = tooltipText.toString(); } - // else - // setToolTipText(null); + } + String lastTooltip; void setStatusMessage(SequenceI sequence, int res, int seq) {