diff options
| author | RĂ¼diger Herrmann | 2016-04-21 11:34:42 +0000 |
|---|---|---|
| committer | Lars Vogel | 2016-04-21 18:51:20 +0000 |
| commit | 5ad5a234eb34a4e739af9e7073386c0145e44852 (patch) | |
| tree | bbfc03a190d576b41512383fbb607b358ecf2257 | |
| parent | 03308733cbb7fe30f13de5d8efb18fafd8be4763 (diff) | |
| download | eclipse.platform.ui-5ad5a234eb34a4e739af9e7073386c0145e44852.tar.gz eclipse.platform.ui-5ad5a234eb34a4e739af9e7073386c0145e44852.tar.xz eclipse.platform.ui-5ad5a234eb34a4e739af9e7073386c0145e44852.zip | |
Bug 491949 - [Smart project import] Buttons in wizard should have the same width
Fix wrong button height on Ubuntu 15.10
Signed-off-by: RĂ¼diger Herrmann <ruediger.herrmann@gmx.de>
Change-Id: I4a47243af82ab8134b8c0bab8d28bae9defc9d40
| -rw-r--r-- | bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/SmartImportRootWizardPage.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/SmartImportRootWizardPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/SmartImportRootWizardPage.java index eaf502e6706..6259eab3682 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/SmartImportRootWizardPage.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/SmartImportRootWizardPage.java @@ -30,7 +30,6 @@ import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.fieldassist.ControlDecoration; import org.eclipse.jface.fieldassist.FieldDecorationRegistry; -import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.jface.layout.GridLayoutFactory; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.viewers.CellLabelProvider; @@ -209,6 +208,7 @@ public class SmartImportRootWizardPage extends WizardPage { public void createControl(Composite parent) { setTitle(DataTransferMessages.SmartImportWizardPage_importProjectsInFolderTitle); setDescription(DataTransferMessages.SmartImportWizardPage_importProjectsInFolderDescription); + initializeDialogUnits(parent); Composite res = new Composite(parent, SWT.NONE); res.setLayout(new GridLayout(4, false)); @@ -303,8 +303,8 @@ public class SmartImportRootWizardPage extends WizardPage { .setDescriptionText(DataTransferMessages.SmartImportWizardPage_incorrectRootDirectory); this.rootDirectoryTextDecorator.hide(); Button directoryButton = new Button(res, SWT.PUSH); - GridDataFactory.defaultsFor(directoryButton).applyTo(directoryButton); directoryButton.setText(DataTransferMessages.SmartImportWizardPage_browse); + setButtonLayoutData(directoryButton); directoryButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -329,8 +329,8 @@ public class SmartImportRootWizardPage extends WizardPage { } }); Button browseArchiveButton = new Button(res, SWT.PUSH); - GridDataFactory.defaultsFor(browseArchiveButton).applyTo(browseArchiveButton); browseArchiveButton.setText(DataTransferMessages.SmartImportWizardPage_selectArchiveButton); + setButtonLayoutData(browseArchiveButton); browseArchiveButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -493,7 +493,7 @@ public class SmartImportRootWizardPage extends WizardPage { GridLayoutFactory.fillDefaults().applyTo(selectionButtonsGroup); selectionButtonsGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true)); Button selectAllButton = new Button(selectionButtonsGroup, SWT.PUSH); - GridDataFactory.defaultsFor(selectAllButton).applyTo(selectAllButton); + setButtonLayoutData(selectAllButton); selectAllButton.setText(DataTransferMessages.DataTransfer_selectAll); selectAllButton.addSelectionListener(new SelectionAdapter() { @Override @@ -503,7 +503,7 @@ public class SmartImportRootWizardPage extends WizardPage { } }); Button deselectAllButton = new Button(selectionButtonsGroup, SWT.PUSH); - GridDataFactory.defaultsFor(deselectAllButton).applyTo(deselectAllButton); + setButtonLayoutData(deselectAllButton); deselectAllButton.setText(DataTransferMessages.DataTransfer_deselectAll); deselectAllButton.addSelectionListener(new SelectionAdapter() { @Override |
