Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/IDEConstants.java


1   package javax.ide;
2   
3   /**
4    * IDE constants. Defines constants identifying a common set of IDE components,
5    * such as, views, menus, etc.. These components are generally identified
6    * with a unique string name that will be mapped to the real IDE 
7    * component by the IDE provider. 
8    */
9   
10  public final class IDEConstants
11  {
12    /**
13     * Identifies the {@link IDE} environment object.
14     */
15    public static final String IDE_ENVIRONMENT = "javax.ide.IDE";
16  
17    /**
18     * View and menu identifiers. View identifiers identify standard IDE views,
19     * while menu identifiers identify where extensions can add their own 
20     * menu items.
21     */
22  
23    /**
24     * Identifies the main window.
25     */
26    public static final String MAIN_WINDOW_ID = "javax.ide.view.MAIN_WINDOW_ID";
27  
28    /**
29     * Identifies the main window's menubar.
30     */
31    public static final String MAIN_WINDOW_MENUBAR_ID = 
32                                          "javax.ide.view.MAIN_WINDOW_MENUBAR_ID";
33  
34    /**
35     * Identifies the main window's toolbar.
36     */
37    public static final String MAIN_WINDOW_TOOLBAR_ID = 
38                                          "javax.ide.view.MAIN_WINDOW_TOOLBAR_ID";
39  
40    /**
41     * Identifies the project explorer window.
42     */
43    public static final String PROJECT_EXPLORER_ID = 
44                                            "javax.ide.view.PROJECT_EXPLORER_ID"; 
45    
46    /**
47     * Identifies the project explorer's popup menu
48     */
49    public static final String PROJECT_EXPLORER_POPUP_ID = 
50                                      "javax.ide.view.PROJECT_EXPLORER_POPUP_ID";
51  
52    /**
53     * Identifies the log window.
54     */
55    public static final String LOG_PAGE_ID = "javax.ide.view.LOG_PAGE_ID";
56  
57    /**
58     * Identifies the log window's popup menu
59     */
60    public static final String LOG_PAGE_POPUP_ID = 
61                                            "javax.ide.view.LOG_PAGE_POPUP_ID";
62  
63    /**
64     * Identifies the editor view.
65     */
66    public static final String EDITOR_ID = "javax.ide.view.EDITOR_ID";
67  
68    /**
69     * Identifies the editor's popup menu.
70     */
71    public static final String EDITOR_POPUP_ID = 
72                                            "javax.ide.view.LOG_WINDOW_POPUP_ID";
73  
74    /**
75     * Menu item identifiers. There are three types of menu items identifyed by
76     * these identifiers.  These are: main menubar pulldown menus, sections, 
77     * and actions. 
78     * <p>
79     * Main menubar pulldown menus are the set of standard IDE menus common 
80     * to all IDEs.  Menu sections are collections of menu items enclosed 
81     * within separators. Actions are the executable menu items. 
82     *
83     * Others TBD.
84     */
85    
86    /**
87     * Identifies the File menu id.
88     */
89    public static final String FILE_MENU_ID = "javax.ide.FILE_MENU_ID";
90  
91    /**
92     * Identifies the Edit menu id.
93     */
94    public static final String EDIT_MENU_ID = "javax.ide.EDIT_MENU_ID";
95  
96    /**
97     * Identifies the View menu id.
98     */
99    public static final String VIEW_MENU_ID = "javax.ide.VIEW_MENU_ID";
100 
101   /**
102    * Identifies the Help menu id.
103    */
104   public static final String HELP_MENU_ID = "javax.ide.HELP_MENU_ID";
105 
106   /**
107    * Identifies the New menu section.
108    */
109   public static final String NEW_SECTION_ID = "javax.ide.NEW_SECTION_ID";
110 
111   /**
112    * Identifies the Open menu section.
113    */
114   public static final String OPEN_SECTION_ID = "javax.ide.OPEN_SECTION_ID";
115 
116   /**
117    * Identifies the Save menu section.
118    */
119   public static final String SAVE_SECTION_ID = "javax.ide.SAVE_SECTION_ID";
120   
121   /**
122    * Identifies the Close menu section.
123    */
124   public static final String CLOSE_SECTION_ID = "javax.ide.CLOSE_SECTION_ID";
125 
126   /**
127    * Identifies the Print menu section.
128    */
129   public static final String PRINT_SECTION_ID = "javax.ide.PRINT_SECTION_ID";
130 
131   /**
132    * Identifies the Open menu action.
133    */
134   public static final String OPEN_ACTION_ID = "javax.ide.OPEN_ACTION_ID";
135 
136   /**
137    * Identifies the Save menu action.
138    */
139   public static final String SAVE_ACTION_ID = "javax.ide.SAVE_ACTION_ID";
140 
141   /**
142    * Identifies Cut menu action.
143    */ 
144   public static final String CUT_ACTION_ID = "javax.ide.CUT_ACTION_ID";
145   
146   /**
147    * Identifies the Copy menu action.
148    */
149   public static final String COPY_ACTION_ID = "javax.ide.COPY_ACTION_ID";
150   
151   /**
152    * Identifies the Paste menu action.
153    */
154   public static final String PASTE_ACTION_ID = "javax.ide.PASTE_ACTION_ID";
155   
156   /**
157    * Identifies the Cut/Copy/Paste section.
158    */
159   public static final String COPY_PASTE_SECTION_ID = "javax.ide.COPY_PASTE_SECTION_ID";
160 
161   //--------------------------------------------------------------------------
162   // Private methods.
163   //--------------------------------------------------------------------------
164   
165   /*
166    * Don't allow construction of this class
167    */
168   private IDEConstants(){}
169 }