diff options
author | Michael Rennie | 2006-11-16 19:03:12 +0000 |
---|---|---|
committer | Michael Rennie | 2006-11-16 19:03:12 +0000 |
commit | 407cc7955bf2dec57de9a2ee22bf47524a6b7bfb (patch) | |
tree | 424802c3da5b994aae8aee846c4fe7fb002ace61 | |
parent | a6d8573a4ac98c999b1029a5e2206f2d1145b95f (diff) | |
download | eclipse.platform.debug-407cc7955bf2dec57de9a2ee22bf47524a6b7bfb.tar.gz eclipse.platform.debug-407cc7955bf2dec57de9a2ee22bf47524a6b7bfb.tar.xz eclipse.platform.debug-407cc7955bf2dec57de9a2ee22bf47524a6b7bfb.zip |
Bug 164841
[launching] the browse file system button suffers from gigantism
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java | 4 | ||||
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java | 17 |
2 files changed, 13 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java index fee5560d2..4c97d1471 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java @@ -300,9 +300,9 @@ public class SWTUtil { /** * Creates a composite that uses the parents' font and has a gridlayout - * @param parent thep arent to add the composite to + * @param parent the parent to add the composite to * @param columns the number of columns the composite should have - * @param hspan the mhorizontal span the new composite should take up in the parent + * @param hspan the horizontal span the new composite should take up in the parent * @param fill the fill style of the composite {@link GridData} * @return a new composite with a grid layout * 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 50bb55be3..dc96ae44f 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 @@ -216,7 +216,10 @@ public class CommonTab extends AbstractLaunchConfigurationTab { */ private void createOutputCaptureComponent(Composite parent) { Group group = SWTUtil.createGroup(parent, LaunchConfigurationsMessages.CommonTab_4, 5, 2, GridData.FILL_HORIZONTAL); - Composite comp = SWTUtil.createComposite(group, parent.getFont(), 5, 5, GridData.FILL_BOTH, 0, 0); + Composite comp = SWTUtil.createComposite(group, 5, 5, GridData.FILL_BOTH); + GridLayout ld = (GridLayout)comp.getLayout(); + ld.marginWidth = 1; + ld.marginHeight = 1; fConsoleOutput = createCheckButton(comp, LaunchConfigurationsMessages.CommonTab_5); GridData gd = new GridData(SWT.BEGINNING, SWT.NORMAL, true, false); gd.horizontalSpan = 5; @@ -238,9 +241,11 @@ public class CommonTab extends AbstractLaunchConfigurationTab { fFileText = SWTUtil.createSingleText(comp, 4); fFileText.addModifyListener(fBasicModifyListener); - SWTUtil.createLabel(comp, EMPTY_STRING, 2); - - fWorkspaceBrowse = createPushButton(comp, LaunchConfigurationsMessages.CommonTab_12, null); + Composite bcomp = SWTUtil.createComposite(comp, 3, 5, GridData.HORIZONTAL_ALIGN_END); + ld = (GridLayout)bcomp.getLayout(); + ld.marginHeight = 1; + ld.marginWidth = 0; + fWorkspaceBrowse = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_12, null); fWorkspaceBrowse.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider()); @@ -256,7 +261,7 @@ public class CommonTab extends AbstractLaunchConfigurationTab { } } }); - fFileBrowse = createPushButton(comp, LaunchConfigurationsMessages.CommonTab_7, null); + fFileBrowse = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_7, null); fFileBrowse.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { String filePath = fFileText.getText(); @@ -267,7 +272,7 @@ public class CommonTab extends AbstractLaunchConfigurationTab { } } }); - fVariables = createPushButton(comp, LaunchConfigurationsMessages.CommonTab_9, null); + fVariables = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_9, null); fVariables.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell()); |