From 2c46c35dc312e376c6799d005c257d1316e8e511 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 18 Jun 2013 21:28:57 +0100 Subject: [PATCH] JAL-1321 don't show a tooltip for empty strings --- src/jalview/gui/OptsAndParamsPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) -- 1.7.10.2