KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > cheatsheets > actions > CheatSheetHelpMenuAction


1 /*******************************************************************************
2  * Copyright (c) 2002, 2006 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.ui.internal.cheatsheets.actions;
12
13 import org.eclipse.jface.action.IAction;
14 import org.eclipse.jface.viewers.ISelection;
15 import org.eclipse.ui.*;
16
17 /**
18  * A menu action for selecting a cheat sheets.
19  */

20 public class CheatSheetHelpMenuAction implements IWorkbenchWindowActionDelegate {
21
22     /* (non-Javadoc)
23      * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
24      */

25     public void dispose() {
26     }
27
28     /* (non-Javadoc)
29      * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
30      */

31     public void init(IWorkbenchWindow window) {
32     }
33
34     /* (non-Javadoc)
35      * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
36      */

37     public void run(IAction action) {
38         new CheatSheetCategoryBasedSelectionAction().run();
39     }
40
41     /* (non-Javadoc)
42      * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
43      */

44     public void selectionChanged(IAction action, ISelection selection) {
45     }
46 }
47
Popular Tags