01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.actions;
06:
07: import org.eclipse.jdt.core.IJavaElement;
08: import org.eclipse.jface.viewers.ISelection;
09: 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(
35: menu,
36: new HelpAction("Concept and Architecture Guide",
37: "http://www.terracotta.org/kit/reflector?kitID=2.5&pageID=ConceptAndArchGuide"));
38: addMenuAction(
39: menu,
40: new HelpAction("Configuration Guide and Reference",
41: "http://www.terracotta.org/kit/reflector?kitID=2.5&pageID=ConfigGuideAndRef"));
42: addMenuAction(
43: menu,
44: new HelpAction("Slider Tutorial",
45: "http://www.terracotta.org/kit/reflector?kitID=2.5&pageID=PojoTutorial"));
46: addMenuAction(
47: menu,
48: new HelpAction("Plugin Reference",
49: "http://www.terracotta.org/kit/reflector?kitID=2.5&pageID=PluginReferenceGuide"));
50: }
51:
52: protected IJavaElement getJavaElement(ISelection selection) {
53: return null;
54: }
55: }
|