Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf M Petter2017-01-09 07:13:31 -0500
committerRalf M Petter2017-01-09 07:14:11 -0500
commit0548d360ff223dcd7dcde4ee0650a56c0807a2c3 (patch)
tree3bb7ba57e7d8a43c797166b632db96e4517676d5 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui
parenta4b4f9ac157980174fb246f83395f7b0f86fb37a (diff)
downloadeclipse.platform.debug-0548d360ff223dcd7dcde4ee0650a56c0807a2c3.tar.gz
eclipse.platform.debug-0548d360ff223dcd7dcde4ee0650a56c0807a2c3.tar.xz
eclipse.platform.debug-0548d360ff223dcd7dcde4ee0650a56c0807a2c3.zip
Bug 470536 - Expression is always hidden away by ellipses, even if thereI20170112-0245I20170112-0200I20170111-2000I20170111-0200I20170110-2000I20170109-2000
is enough room to show entire expression Lifts the hard coded limit from 30 to 254 characters for a watch expression name label. Change-Id: I1a472b0c3378408a4fed80f7481819bab191a0fa Signed-off-by: Ralf M Petter <ralf.petter@gmail.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionLabelProvider.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionLabelProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionLabelProvider.java
index 7cbe482cf..4ee68162e 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionLabelProvider.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionLabelProvider.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Wind Rvier Systems - added support for columns (bug 235646)
+ * Ralf M Petter <ralf.petter@gmail.com> - (bug 470536)
*******************************************************************************/
package org.eclipse.debug.internal.ui.model.elements;
@@ -111,10 +112,10 @@ protected String getLabel(TreePath elementPath, IPresentationContext context, St
String snippet = expression.getExpressionText().trim();
StringBuffer snippetBuffer = new StringBuffer();
- if (snippet.length() > 30){
- snippetBuffer.append(snippet.substring(0, 15));
+ if (snippet.length() > 254) {
+ snippetBuffer.append(snippet.substring(0, 127));
snippetBuffer.append(DebugUIMessages.DefaultLabelProvider_0);
- snippetBuffer.append(snippet.substring(snippet.length() - 15));
+ snippetBuffer.append(snippet.substring(snippet.length() - 127));
} else {
snippetBuffer.append(snippet);
}

Back to the top