KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > terracotta > dso > actions > HelpHandler


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package org.terracotta.dso.actions;
6
7 import org.eclipse.jdt.core.IJavaElement;
8 import org.eclipse.jface.viewers.ISelection;
9 import org.eclipse.swt.widgets.Control;
10 import org.eclipse.swt.widgets.Menu;
11
12 public class HelpHandler extends BaseMenuCreator {
13   public HelpHandler() {
14     super();
15   }
16
17   public Menu getMenu(Control parent) {
18     Menu menu = null;
19     
20     buildMenu(menu = new Menu(parent));
21
22     return menu;
23   }
24
25   public Menu getMenu(Menu parent) {
26     Menu menu = null;
27     
28     buildMenu(menu = new Menu(parent));
29
30     return menu;
31   }
32
33   protected void fillMenu(Menu menu) {
34     addMenuAction(menu,
35         new HelpAction("Concept and Architecture Guide",
36           "http://www.terracotta.org/kit/reflector?kitID=2.3&pageID=ConceptAndArchGuide"));
37     addMenuAction(menu,
38         new HelpAction("Configuration Guide and Reference",
39           "http://www.terracotta.org/kit/reflector?kitID=2.3&pageID=ConfigGuideAndRef"));
40     addMenuAction(menu,
41         new HelpAction("Slider Tutorial",
42           "http://www.terracotta.org/kit/reflector?kitID=2.3&pageID=PojoTutorial"));
43     addMenuAction(menu,
44         new HelpAction("Plugin Reference",
45           "http://www.terracotta.org/kit/reflector?kitID=2.3&pageID=PluginReferenceGuide"));
46   }
47
48   protected IJavaElement getJavaElement(ISelection selection) {
49     return null;
50   }
51 }
52
Popular Tags