Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-02-12 08:43:27 -0500
committerUwe Stieber2014-02-12 08:43:27 -0500
commit6c46aa2dd9c52ab102d8061204ff9e2a64e3bf54 (patch)
tree4c95211c030888d72f65fe2a53a56d6cb298e4de
parent3f0aa2b8d0341770ced46e47a4b372859fd43e3e (diff)
downloadorg.eclipse.tcf-6c46aa2dd9c52ab102d8061204ff9e2a64e3bf54.tar.gz
org.eclipse.tcf-6c46aa2dd9c52ab102d8061204ff9e2a64e3bf54.tar.xz
org.eclipse.tcf-6c46aa2dd9c52ab102d8061204ff9e2a64e3bf54.zip
TCF Debugger: Limit "destination" text field in path map rule dialog in width. Keeps expanding the dialog to the whole screen width and beyond with very long pathes.
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/PathMapRuleDialog.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/PathMapRuleDialog.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/PathMapRuleDialog.java
index 000b9fc04..f455c6d48 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/PathMapRuleDialog.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/PathMapRuleDialog.java
@@ -96,7 +96,7 @@ public class PathMapRuleDialog extends TitleAreaDialog {
source_text = new Text(composite, SWT.SINGLE | SWT.BORDER);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.widthHint = 300;
+ gd.widthHint = convertWidthInCharsToPixels(40);
gd.horizontalSpan = 2;
source_text.setLayoutData(gd);
source_text.setFont(font);
@@ -114,7 +114,9 @@ public class PathMapRuleDialog extends TitleAreaDialog {
destination_label.setText("Destination:"); //$NON-NLS-1$
destination_text = new Text(composite, SWT.SINGLE | SWT.BORDER);
- destination_text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.widthHint = convertWidthInCharsToPixels(40);
+ destination_text.setLayoutData(gd);
destination_text.setFont(font);
destination_text.setEditable(enable_editing);

Back to the top