fixed XValueHint value trimming
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 21 Dec 2010 14:00:56 +0000 (17:00 +0300)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 21 Dec 2010 14:00:56 +0000 (17:00 +0300)
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/evaluate/quick/XValueHint.java

index 385a15d9eae8538ca5ce293a248bee7e75ff91fe..c0de1190537b6f6f85d2f622155451d0199a1060 100644 (file)
@@ -117,8 +117,7 @@ public class XValueHint extends AbstractValueHint {
     SimpleColoredText text = new SimpleColoredText();
     text.append(name, XDebuggerUIConstants.VALUE_NAME_ATTRIBUTES);
     text.append(separator, SimpleTextAttributes.REGULAR_ATTRIBUTES);
     SimpleColoredText text = new SimpleColoredText();
     text.append(name, XDebuggerUIConstants.VALUE_NAME_ATTRIBUTES);
     text.append(separator, SimpleTextAttributes.REGULAR_ATTRIBUTES);
-    text.append(trimValue(value, name.length() + separator.length()), SimpleTextAttributes.REGULAR_ATTRIBUTES);
-
+    text.append(value, SimpleTextAttributes.REGULAR_ATTRIBUTES);
 
     JComponent component;
     if (!hasChildren) {
 
     JComponent component;
     if (!hasChildren) {
@@ -134,13 +133,6 @@ public class XValueHint extends AbstractValueHint {
     showHint(component);
   }
 
     showHint(component);
   }
 
-  private static String trimValue(String value, int len) {
-    if (value.length() + len > MAX_HINT_LENGTH) {
-      value = value.substring(0, MAX_HINT_LENGTH - len) + "...";
-    }
-    return value;
-  }
-
   private void showTree(final XValue value, final String name) {
     XDebuggerTree tree = new XDebuggerTree(myDebugSession, myDebugSession.getDebugProcess().getEditorsProvider(),
                                            myDebugSession.getCurrentPosition(), XDebuggerActions.VALUE_HINT_TREE_POPUP_GROUP);
   private void showTree(final XValue value, final String name) {
     XDebuggerTree tree = new XDebuggerTree(myDebugSession, myDebugSession.getDebugProcess().getEditorsProvider(),
                                            myDebugSession.getCurrentPosition(), XDebuggerActions.VALUE_HINT_TREE_POPUP_GROUP);