Fixed bug 155411: [launch] Need a way to assign stdin to a file from Run Dialog
Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
index ce25f1b..963d468 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
@@ -28,7 +28,7 @@
CommonTab_1=Encoding
CommonTab_15=The selected encoding is not supported.
CommonTab_16=Input W&orkspace...
-CommonTab_17=Input File
+CommonTab_17=Inpu&t File
CommonTab_18=Select a resource to redirect input from:
CommonTab_19=Input File Sys&tem...
CommonTab_2=Defa&ult - inherited ({0})
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
index 94e3333..23c2ef1 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
@@ -265,9 +265,7 @@
private void createOutputCaptureComponent(Composite parent) {
Group group = SWTFactory.createGroup(parent, LaunchConfigurationsMessages.CommonTab_4, 5, 2, GridData.FILL_HORIZONTAL);
createInputCaptureComponent(group);
- Composite comp = SWTFactory.createComposite(group, 5, 5, GridData.FILL_BOTH);
-
-
+ Composite comp = SWTFactory.createComposite(group, group.getFont(), 5, 5, GridData.FILL_BOTH, 0, 0);
fFileOutput = createCheckButton(comp, LaunchConfigurationsMessages.CommonTab_6);
fFileOutput.setLayoutData(new GridData(SWT.BEGINNING, SWT.NORMAL, false, false));
fFileOutput.addSelectionListener(new SelectionAdapter() {
@@ -350,10 +348,10 @@
}
private void createInputCaptureComponent(Composite parent){
- Composite comp1 = SWTFactory.createComposite(parent, parent.getFont(), 3, 3, GridData.FILL_BOTH, 0, 0);
+ Composite comp1 = SWTFactory.createComposite(parent, parent.getFont(), 5, 5, GridData.FILL_BOTH, 0, 0);
fConsoleOutput = createCheckButton(comp1, LaunchConfigurationsMessages.CommonTab_5);
- Composite comp = SWTFactory.createComposite(comp1, 5, 5, GridData.FILL_BOTH);
+ Composite comp = SWTFactory.createComposite(comp1, comp1.getFont(), 5, 5, GridData.FILL_BOTH, 0, 0);
fInputFileCheckButton = createCheckButton(comp, LaunchConfigurationsMessages.CommonTab_17);
GridData gd = new GridData(SWT.BEGINNING, SWT.NORMAL, false, false);
gd.horizontalSpan = 3;
@@ -367,7 +365,7 @@
}
});
- fInputFileLocationText = SWTFactory.createSingleText(comp, 1);
+ fInputFileLocationText = SWTFactory.createSingleText(comp, 2);
fInputFileLocationText.getAccessible().addAccessibleListener(new AccessibleAdapter() {
@Override
public void getName(AccessibleEvent e) {