01: /*******************************************************************************
02: * Copyright (c) 2002, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.cheatsheets.actions;
11:
12: import org.eclipse.jface.action.IAction;
13: import org.eclipse.jface.viewers.ISelection;
14: import org.eclipse.ui.*;
15:
16: /**
17: * A menu action for selecting a cheat sheets.
18: */
19: public class CheatSheetHelpMenuAction implements
20: 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: }
|