KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > kelp > jbuilder > EnhydraTools


1 package org.enhydra.kelp.jbuilder;
2
3 /**
4  * <p>Title: Enhydra Tools</p>
5  * <p>Description: Class for invokation Enhydra tools: xml compiler, deployer
6  * and dods</p>
7  * @author Strahinja Videnovic
8  * @version 1.0
9  */

10
11 import com.borland.primetime.*;
12 import com.borland.jbuilder.*;
13 import com.borland.primetime.ide.*;
14
15 import javax.swing.*;
16 import javax.swing.Icon JavaDoc;
17 import java.net.URL JavaDoc;
18 import com.borland.primetime.util.Icons;
19 //import java.awt.event.*;
20
import org.enhydra.kelp.jbuilder.actions.*;
21 import com.borland.primetime.util.Images;
22
23 public class EnhydraTools {
24
25   public static final EnhydraGroup GROUP_Enhydra;
26   public static final Action ACTION_XMLC;
27   public static final Action ACTION_DEPLOYER;
28   public static final Action ACTION_DODS;
29   private final static String JavaDoc MENU_ICON = "/media/menu_16x16.gif";
30   private static Icon JavaDoc icon;
31
32   public EnhydraTools() {
33   }
34
35   static
36   {
37     GROUP_Enhydra = new EnhydraGroup("Enhydra Tools", 'E', "",
38                Icons.getIcon(org.enhydra.kelp.jbuilder.EnhydraTools.class, MENU_ICON),
39                true /*pop up*/);
40     ACTION_XMLC = new XMLCAction("XML Compiler", 'X');
41     ACTION_DEPLOYER = new DeployerAction("Deployer", 'D');
42     ACTION_DODS = new DODSAction("DODS", 'O');
43
44   }
45
46   public static void initOpenTool(byte major,
47          byte minor) {
48
49       // Check OpenTools version number
50
if (major != PrimeTime.CURRENT_MAJOR_VERSION)
51           return;
52
53       // Add a new menu item to the Help menu
54
JBuilderMenu.GROUP_ToolsStandard.add(GROUP_Enhydra);
55       GROUP_Enhydra.add(ACTION_XMLC);
56       GROUP_Enhydra.add(ACTION_DEPLOYER);
57       GROUP_Enhydra.add(ACTION_DODS);
58 // Browser.addToolBarGroup(GROUP_Enhydra); // todo ne fercera bas...
59
}
60
61 }
Popular Tags