X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FJvSwingUtils.java;h=f38407b2f4f652e3395790281da908aa9ab01a2c;hb=ab43013b7e357b84b4abade0dba949668dfb2a0e;hp=4dfd40dc52acdd10c07640a4afac72c651451fef;hpb=7ab5d6b0ba5fec1ea4a4239e79c476d841622485;p=jalview.git diff --git a/src/jalview/gui/JvSwingUtils.java b/src/jalview/gui/JvSwingUtils.java index 4dfd40d..f38407b 100644 --- a/src/jalview/gui/JvSwingUtils.java +++ b/src/jalview/gui/JvSwingUtils.java @@ -1,5 +1,5 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1) * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. @@ -46,20 +46,22 @@ public final class JvSwingUtils * * * field + * @param enclose TODO + * @param ttext * - * @param ttext * @return */ - public static String wrapTooltip(String ttext) + public static String wrapTooltip(boolean enclose, String ttext) { if (ttext.length() < 60) { - return ttext; + return enclose ? "" + ttext + "" : ttext; } else { - return "
" + ttext - + "
"; + return (enclose ? "" : "") + + "
" + ttext + + "
" + ((enclose ? "" : "")); } }