diff options
| author | Patrik Suzzi | 2016-04-11 09:18:09 +0000 |
|---|---|---|
| committer | Lars Vogel | 2016-06-23 09:17:42 +0000 |
| commit | ca417f51087b4af298b7f478a113bacd34739dea (patch) | |
| tree | 0925acae15ba0e470da0d79964715f7fc5ef16d8 | |
| parent | 4107b3c3082f8277cd7d640cda4d71272ed60236 (diff) | |
| download | eclipse.platform.ui-ca417f51087b4af298b7f478a113bacd34739dea.tar.gz eclipse.platform.ui-ca417f51087b4af298b7f478a113bacd34739dea.tar.xz eclipse.platform.ui-ca417f51087b4af298b7f478a113bacd34739dea.zip | |
Bug 491410 - [QuickAccess] remove workaround for QuickAccessDialog
Removed workaround as reported in source comment
Change-Id: I97e04b5d1873d38d48d8a942b261e1c825cdf5ab
Signed-off-by: Patrik Suzzi <psuzzi@gmail.com>
| -rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessDialog.java | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessDialog.java index f00ee71ec97..1b29d1c2b61 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessDialog.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2015 IBM Corporation and others. + * Copyright (c) 2005, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,7 @@ * IBM Corporation - initial API and implementation * Tom Hochstein (Freescale) - Bug 393703 - NotHandledException selecting inactive command under 'Previous Choices' in Quick access * René Brandstetter - Bug 433778 + * Patrik Suzzi <psuzzi@gmail.com> - Bug 491410 *******************************************************************************/ package org.eclipse.ui.internal.quickaccess; @@ -42,7 +43,6 @@ import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.Text; import org.eclipse.ui.IWorkbenchWindow; @@ -240,18 +240,7 @@ public class QuickAccessDialog extends PopupDialog { create(); } }); - // Ugly hack to avoid bug 184045. If this gets fixed, replace the - // following code with a call to refresh(""). - getShell().getDisplay().asyncExec(new Runnable() { - @Override - public void run() { - final Shell shell = getShell(); - if (shell != null && !shell.isDisposed()) { - Point size = shell.getSize(); - shell.setSize(size.x, size.y + 1); - } - } - }); + QuickAccessDialog.this.contents.refresh(""); //$NON-NLS-1$ } @Override |
