Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2017-11-22 01:56:36 -0500
committerLakshmi Shanmugam2018-01-04 00:42:32 -0500
commit9d6902ba720f13df892cc69bde869ade34445761 (patch)
tree126e1245a3d521ca0075e417dc884b10b6ec1cee /bundles/org.eclipse.swt/Eclipse SWT/win32
parente0bd60f1d193cea76643abc7d0c76091701fb4c9 (diff)
downloadeclipse.platform.swt-9d6902ba720f13df892cc69bde869ade34445761.tar.gz
eclipse.platform.swt-9d6902ba720f13df892cc69bde869ade34445761.tar.xz
eclipse.platform.swt-9d6902ba720f13df892cc69bde869ade34445761.zip
Bug 497882 - Eclipse freezes when expanding tree in variables view
during debugging Change-Id: Ie2631fcf04d689167f83c8787185e4926e51a026 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index d451f1a7a2..1a244cdb98 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -818,6 +818,9 @@ LRESULT CDDS_ITEMPOSTPAINT (NMTVCUSTOMDRAW nmcd, long /*int*/ wParam, long /*int
if ((column.style & SWT.CENTER) != 0) flags |= OS.DT_CENTER;
if ((column.style & SWT.RIGHT) != 0) flags |= OS.DT_RIGHT;
}
+ if ((string != null) && (string.length() > Item.TEXT_LIMIT)) {
+ string = string.substring(0, Item.TEXT_LIMIT - Item.ELLIPSIS.length()) + Item.ELLIPSIS;
+ }
TCHAR buffer = new TCHAR (getCodePage (), string, false);
if (!ignoreDrawForeground) OS.DrawText (hDC, buffer, buffer.length (), rect, flags);
OS.DrawText (hDC, buffer, buffer.length (), rect, flags | OS.DT_CALCRECT);

Back to the top