KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > search > DependencyExtentAction


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

11 package org.eclipse.pde.internal.ui.search;
12
13
14 import org.eclipse.jface.action.Action;
15 import org.eclipse.pde.core.plugin.IPluginImport;
16 import org.eclipse.pde.internal.ui.PDEPlugin;
17 import org.eclipse.search.ui.SearchUI;
18 import org.eclipse.ui.*;
19
20 public class DependencyExtentAction extends Action {
21     
22     private static final String JavaDoc KEY_COMPUTE = "DependencyExtentAction.label"; //$NON-NLS-1$
23

24     DependencyExtentSearchOperation op;
25     
26     public DependencyExtentAction(IPluginImport object) {
27         op = new DependencyExtentSearchOperation(object);
28         setText(PDEPlugin.getResourceString(KEY_COMPUTE));
29     }
30         
31     
32     public void run() {
33         try {
34             SearchUI.activateSearchResultView();
35             PlatformUI.getWorkbench().getProgressService().busyCursorWhile(op);
36         } catch (Exception JavaDoc e) {
37         }
38     }
39     
40     
41     
42 }
43
Popular Tags