Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-02-09 08:06:24 -0500
committerUwe Stieber2015-02-09 08:06:24 -0500
commit17d84c473c6447efff491506042090da101e2b20 (patch)
treef39d994d85cd2fb4eb3160b307c144527af936e2
parent4d31d41b69f58f6c03d420f4bdd09c80d074f029 (diff)
downloadorg.eclipse.tcf-17d84c473c6447efff491506042090da101e2b20.tar.gz
org.eclipse.tcf-17d84c473c6447efff491506042090da101e2b20.tar.xz
org.eclipse.tcf-17d84c473c6447efff491506042090da101e2b20.zip
Terminals: Fix add custom "Show in" entry dialog layout
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/showin/ExternalExecutablesDialog.java36
1 files changed, 17 insertions, 19 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/showin/ExternalExecutablesDialog.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/showin/ExternalExecutablesDialog.java
index 0179898e3..f45ccc31e 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/showin/ExternalExecutablesDialog.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/showin/ExternalExecutablesDialog.java
@@ -89,7 +89,7 @@ public class ExternalExecutablesDialog extends TrayDialog {
layout.verticalSpacing = 0; layout.horizontalSpacing = 0;
sc.setLayout(layout);
- sc.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));
+ sc.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
sc.setExpandHorizontal(true);
sc.setExpandVertical(true);
@@ -133,25 +133,24 @@ public class ExternalExecutablesDialog extends TrayDialog {
layoutData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
label.setLayoutData(layoutData);
- name = new Text(panel, SWT.HORIZONTAL | SWT.SINGLE);
+ name = new Text(panel, SWT.HORIZONTAL | SWT.SINGLE | SWT.BORDER);
layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);
layoutData.widthHint = convertWidthInCharsToPixels(30);
name.setLayoutData(layoutData);
+ label = new Label(panel, SWT.HORIZONTAL);
+ label.setText(Messages.ExternalExecutablesDialog_field_path);
+ layoutData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
+ label.setLayoutData(layoutData);
+
Composite panel2 = new Composite(panel, SWT.NONE);
- layout = new GridLayout(3, false);
+ layout = new GridLayout(2, false);
layout.marginHeight = 0; layout.marginWidth = 0;
panel2.setLayout(layout);
layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);
- layoutData.horizontalSpan = 2;
panel2.setLayoutData(layoutData);
- label = new Label(panel2, SWT.HORIZONTAL);
- label.setText(Messages.ExternalExecutablesDialog_field_path);
- layoutData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
- label.setLayoutData(layoutData);
-
- path = new Text(panel, SWT.HORIZONTAL | SWT.SINGLE);
+ path = new Text(panel2, SWT.HORIZONTAL | SWT.SINGLE | SWT.BORDER);
layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);
layoutData.widthHint = convertWidthInCharsToPixels(30);
path.setLayoutData(layoutData);
@@ -202,25 +201,24 @@ public class ExternalExecutablesDialog extends TrayDialog {
layoutData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
label.setLayoutData(layoutData);
- args = new Text(panel, SWT.HORIZONTAL | SWT.SINGLE);
+ args = new Text(panel, SWT.HORIZONTAL | SWT.SINGLE | SWT.BORDER);
layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);
layoutData.widthHint = convertWidthInCharsToPixels(30);
args.setLayoutData(layoutData);
+ label = new Label(panel, SWT.HORIZONTAL);
+ label.setText(Messages.ExternalExecutablesDialog_field_icon);
+ layoutData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
+ label.setLayoutData(layoutData);
+
panel2 = new Composite(panel, SWT.NONE);
- layout = new GridLayout(3, false);
+ layout = new GridLayout(2, false);
layout.marginHeight = 0; layout.marginWidth = 0;
panel2.setLayout(layout);
layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);
- layoutData.horizontalSpan = 2;
panel2.setLayoutData(layoutData);
- label = new Label(panel2, SWT.HORIZONTAL);
- label.setText(Messages.ExternalExecutablesDialog_field_icon);
- layoutData = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
- label.setLayoutData(layoutData);
-
- icon = new Text(panel, SWT.HORIZONTAL | SWT.SINGLE);
+ icon = new Text(panel2, SWT.HORIZONTAL | SWT.SINGLE | SWT.BORDER);
layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false);
layoutData.widthHint = convertWidthInCharsToPixels(30);
icon.setLayoutData(layoutData);

Back to the top