KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > wizards > buildpaths > newsourcepage > HelpAction


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
12 package org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage;
13
14 import org.eclipse.jface.action.Action;
15
16 import org.eclipse.ui.PlatformUI;
17
18 import org.eclipse.jdt.internal.ui.JavaPluginImages;
19 import org.eclipse.jdt.internal.ui.wizards.NewWizardMessages;
20
21 /**
22  * Action to get help.
23  */

24 public class HelpAction extends Action {
25     
26     public HelpAction() {
27         super();
28         setImageDescriptor(JavaPluginImages.DESC_OBJS_HELP);
29         setText(NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Help_label);
30         setToolTipText(NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Help_tooltip);
31     }
32     
33     public void run() {
34         PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Help_link);
35     }
36 }
37
Popular Tags