From: Jim Procter Date: Tue, 18 Jun 2013 20:28:57 +0000 (+0100) Subject: JAL-1321 don't show a tooltip for empty strings X-Git-Tag: Jalview_2_9~236^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2c46c35dc312e376c6799d005c257d1316e8e511;p=jalview.git JAL-1321 don't show a tooltip for empty strings --- diff --git a/src/jalview/gui/OptsAndParamsPage.java b/src/jalview/gui/OptsAndParamsPage.java index eab240f..d5da323 100644 --- a/src/jalview/gui/OptsAndParamsPage.java +++ b/src/jalview/gui/OptsAndParamsPage.java @@ -109,7 +109,7 @@ public class OptsAndParamsPage enabled.setToolTipText("" + JvSwingUtils - .wrapTooltip(((desc == null) ? "see further details by right-clicking" + .wrapTooltip(((desc == null || desc.trim().length()==0) ? "see further details by right-clicking" : desc) + "
") + ""); @@ -117,7 +117,7 @@ public class OptsAndParamsPage } else { - if (desc != null) + if (desc != null && desc.trim().length()>0) { enabled.setToolTipText("" + JvSwingUtils.wrapTooltip(opt.getDescription())