Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-08-14 02:40:29 -0400
committerMichael Keppler2019-08-14 02:40:29 -0400
commita03db0b49d54aebdeebdaeee406ef96112b108b4 (patch)
tree25930b4447dc79c944fb519686e78941efddf6b3
parent2ebf4388f9e6ca7d9bd7f0137a7020a1ea6f5718 (diff)
downloadeclipse.platform.text-a03db0b49d54aebdeebdaeee406ef96112b108b4.tar.gz
eclipse.platform.text-a03db0b49d54aebdeebdaeee406ef96112b108b4.tar.xz
eclipse.platform.text-a03db0b49d54aebdeebdaeee406ef96112b108b4.zip
Fix alignment of Refresh button in QuickSearch dialog
The row with the "Matching items" label and the Refresh button has only 2 columns, not 3. The additional empty column lead to empty space right of the Refresh button. Also fix a reuse of layout data in the same method. Layout data shall not be reused for multiple widgets according to the documentation. Change-Id: Ic0d1e1b9016fb4e40fbceae9c7548f1d70d9bc6a Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
-rw-r--r--org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java
index 8863902e0..bc4c58269 100644
--- a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java
+++ b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java
@@ -608,7 +608,7 @@ public class QuickSearchDialog extends SelectionStatusDialog {
Composite labels = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout();
- layout.numColumns = 3;
+ layout.numColumns = 2;
layout.marginWidth = 0;
layout.marginHeight = 0;
labels.setLayout(layout);
@@ -630,6 +630,7 @@ public class QuickSearchDialog extends SelectionStatusDialog {
listLabel.setLayoutData(gd);
progressLabel = new Label(labels, SWT.RIGHT);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
progressLabel.setLayoutData(gd);
createButton(labels, REFRESH_BUTTON_ID, Messages.QuickSearchDialog_Refresh, false);

Back to the top