diff options
| author | Paul Webster | 2013-10-08 14:04:17 +0000 |
|---|---|---|
| committer | Paul Webster | 2013-10-08 14:04:17 +0000 |
| commit | 045aaed115c36464369b61197b8d619970c106f9 (patch) | |
| tree | 5fe197b491d2152f8981ab700374ec85d2ff61bb | |
| parent | cc58f7512baa46a5c2395d64cc7959ddfb207fb8 (diff) | |
| download | eclipse.platform.ui-045aaed115c36464369b61197b8d619970c106f9.tar.gz eclipse.platform.ui-045aaed115c36464369b61197b8d619970c106f9.tar.xz eclipse.platform.ui-045aaed115c36464369b61197b8d619970c106f9.zip | |
Bug 19462 - [Wizards] WizardDialog always reserves space for progressbar
exclude the progress monitor from layout
| -rw-r--r-- | bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java index 3c57f4c2547..5db2d6c3c11 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java @@ -638,6 +638,9 @@ public class WizardDialog extends TitleAreaDialog implements IWizardContainer2, // Insert a progress monitor progressMonitorPart= createProgressMonitorPart(composite, new GridLayout()); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); + if (!wizard.needsProgressMonitor()) { + gridData.exclude = true; + } progressMonitorPart.setLayoutData(gridData); progressMonitorPart.setVisible(false); // Build the separator line |
