KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > ui > internal > SearchAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation 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  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.help.ui.internal;
12
13 import org.eclipse.jface.action.IAction;
14 import org.eclipse.jface.viewers.ISelection;
15 import org.eclipse.ui.IWorkbenchWindow;
16 import org.eclipse.ui.IWorkbenchWindowActionDelegate;
17 import org.eclipse.ui.PlatformUI;
18
19 public class SearchAction implements IWorkbenchWindowActionDelegate {
20
21     public SearchAction() {
22     }
23
24     public void dispose() {
25     }
26
27     public void init(IWorkbenchWindow window) {
28     }
29
30     public void run(IAction action) {
31         PlatformUI.getWorkbench().getHelpSystem().displaySearch();
32     }
33
34     public void selectionChanged(IAction action, ISelection selection) {
35     }
36 }
37
Popular Tags