Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-12-06 17:45:30 +0000
committerLars Vogel2016-12-06 17:45:41 +0000
commit91e194154d4d889d69484f9799b01077d1ebd22d (patch)
tree9da22763f76dc04d6c272a1a4c9b4b9459a68647
parent355eaf9dfbaa1035a9dc8e17f2ceb92b5f620ff7 (diff)
downloadeclipse.platform.text-91e194154d4d889d69484f9799b01077d1ebd22d.tar.gz
eclipse.platform.text-91e194154d4d889d69484f9799b01077d1ebd22d.tar.xz
eclipse.platform.text-91e194154d4d889d69484f9799b01077d1ebd22d.zip
This reverts commit 472c98851d01b36a7c0d02726019bf98849fc522. Change-Id: Ie66aa254e6b40a55fe86c4f31c3c8e06d2929c31 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/OpenSearchDialogAction.java14
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchDialog.java2
2 files changed, 0 insertions, 16 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/OpenSearchDialogAction.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/OpenSearchDialogAction.java
index 90aa71ded..bc93e11ef 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/OpenSearchDialogAction.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/OpenSearchDialogAction.java
@@ -10,9 +10,6 @@
*******************************************************************************/
package org.eclipse.search.internal.ui;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
@@ -56,17 +53,6 @@ public class OpenSearchDialogAction extends Action implements IWorkbenchWindowAc
SearchPlugin.beep();
return;
}
- // search dialog already open?
- Shell[] shells = Display.getCurrent().getShells();
- for (Shell shell : shells) {
- Object data = shell.getData();
- if (data instanceof SearchDialog) {
- shell.setActive();
- shell.setFocus();
- return;
- }
- }
-
SearchDialog dialog= new SearchDialog(getWorkbenchWindow(), fPageId);
dialog.open();
}
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchDialog.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchDialog.java
index c01c02831..fcd9e9756 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchDialog.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchDialog.java
@@ -160,8 +160,6 @@ public class SearchDialog extends ExtendedDialogWindow implements ISearchPageCon
public SearchDialog(IWorkbenchWindow window, String pageId) {
super(window.getShell());
- setShellStyle(SWT.RESIZE | SWT.CLOSE | SWT.MODELESS | SWT.BORDER | SWT.TITLE);
- setBlockOnOpen(false);
fWorkbenchWindow= window;
fCurrentSelection= window.getSelectionService().getSelection();
fCurrentEnclosingProject= evaluateEnclosingProject(fCurrentSelection, getActiveEditor());

Back to the top