Skip to content

Commit

Permalink
5734: Overflow in stacktrace tooltips on Mac
Browse files Browse the repository at this point in the history
Reviewed-by: hirt
  • Loading branch information
Guru Hb committed Nov 10, 2020
1 parent 8216543 commit 371aa9a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -764,12 +764,12 @@ public String getToolTipText(Object element) {
String frameFraction = UnitLookup.PERCENT_UNITY.quantity(itemCount / (double) totalCount)
.displayUsing(IDisplayable.AUTO);
StringBuilder sb = new StringBuilder("<form>"); //$NON-NLS-1$
sb.append("<li style='image' value='" + COUNT_IMG_KEY + "'>"); //$NON-NLS-1$ //$NON-NLS-2$
sb.append("<li style='image' value='" + COUNT_IMG_KEY + "'><span nowrap='true'>"); //$NON-NLS-1$ //$NON-NLS-2$
sb.append(Messages.stackTraceMessage(itemCount, totalCount, frameFraction));
sb.append("</li>"); //$NON-NLS-1$
sb.append("<li style='image' value='" + SIBLINGS_IMG_KEY + "'>"); //$NON-NLS-1$ //$NON-NLS-2$
sb.append("</span></li>"); //$NON-NLS-1$
sb.append("<li style='image' value='" + SIBLINGS_IMG_KEY + "'><span nowrap='true'>"); //$NON-NLS-1$ //$NON-NLS-2$
sb.append(Messages.siblingMessage(itemsInSiblings, parentFork.getBranchCount() - 1));
sb.append("</li>"); //$NON-NLS-1$
sb.append("</span></li>"); //$NON-NLS-1$
sb.append("</form>"); //$NON-NLS-1$
return sb.toString();
}
Expand Down

0 comments on commit 371aa9a

Please sign in to comment.