KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > search2 > internal > ui > text2 > FindInWorkspaceActionDelegate


1 /*******************************************************************************
2  * Copyright (c) 2006 Wind River Systems and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * Markus Schorn - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.search2.internal.ui.text2;
12
13
14 import org.eclipse.core.runtime.CoreException;
15
16 import org.eclipse.search.ui.ISearchQuery;
17 import org.eclipse.search.ui.text.TextSearchQueryProvider;
18
19 import org.eclipse.search2.internal.ui.SearchMessages;
20
21
22 /**
23  * @author markus.schorn@windriver.com
24  */

25 public class FindInWorkspaceActionDelegate extends FindInRecentScopeActionDelegate {
26
27     public FindInWorkspaceActionDelegate() {
28         super(SearchMessages.FindInWorkspaceActionDelegate_text);
29         setActionDefinitionId("org.eclipse.search.ui.performTextSearchWorkspace"); //$NON-NLS-1$
30
}
31
32     protected ISearchQuery createQuery(TextSearchQueryProvider provider, String JavaDoc searchForString) throws CoreException {
33         return provider.createQuery(searchForString);
34     }
35 }
36
Popular Tags