KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > ui > IContextMenuConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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 package org.eclipse.jdt.ui;
12
13 import org.eclipse.ui.navigator.ICommonMenuConstants;
14
15 /**
16  * Constants for menu groups used in context menus for Java views and editors.
17  * <p>
18  * This interface declares constants only; it is not intended to be implemented.
19  * </p>
20  */

21 public interface IContextMenuConstants {
22     
23     
24     /**
25      * Type hierarchy view part: pop-up menu target ID for type hierarchy viewer
26      * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.typehierarchy"</code>).
27      *
28      * @since 2.0
29      */

30     public static final String JavaDoc TARGET_ID_HIERARCHY_VIEW= JavaUI.ID_TYPE_HIERARCHY + ".typehierarchy"; //$NON-NLS-1$
31

32     /**
33      * Type hierarchy view part: pop-up menu target ID for supertype hierarchy viewer
34      * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.supertypes"</code>).
35      *
36      * @since 2.0
37      */

38     public static final String JavaDoc TARGET_ID_SUPERTYPES_VIEW= JavaUI.ID_TYPE_HIERARCHY + ".supertypes"; //$NON-NLS-1$
39

40     /**
41      * Type hierarchy view part: Pop-up menu target ID for the subtype hierarchy viewer
42      * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.subtypes"</code>).
43      *
44      * @since 2.0
45      */

46     public static final String JavaDoc TARGET_ID_SUBTYPES_VIEW= JavaUI.ID_TYPE_HIERARCHY + ".subtypes"; //$NON-NLS-1$
47

48     /**
49      * Type hierarchy view part: pop-up menu target ID for the member viewer
50      * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.members"</code>).
51      *
52      * @since 2.0
53      */

54     public static final String JavaDoc TARGET_ID_MEMBERS_VIEW= JavaUI.ID_TYPE_HIERARCHY + ".members"; //$NON-NLS-1$
55

56
57     /**
58      * Pop-up menu: name of group for goto actions (value <code>"group.goto"</code>).
59      * <p>
60      * Examples for open actions are:
61      * <ul>
62      * <li>Go Into</li>
63      * <li>Go To</li>
64      * </ul>
65      * </p>
66      */

67     public static final String JavaDoc GROUP_GOTO= ICommonMenuConstants.GROUP_GOTO;
68     /**
69      * Pop-up menu: name of group for open actions (value <code>"group.open"</code>).
70      * <p>
71      * Examples for open actions are:
72      * <ul>
73      * <li>Open To</li>
74      * <li>Open With</li>
75      * </ul>
76      * </p>
77      */

78     public static final String JavaDoc GROUP_OPEN= ICommonMenuConstants.GROUP_OPEN;
79     
80     /**
81      * Pop-up menu: name of group for show actions (value <code>"group.show"</code>).
82      * <p>
83      * Examples for show actions are:
84      * <ul>
85      * <li>Show in Navigator</li>
86      * <li>Show in Type Hierarchy</li>
87      * </ul>
88      * </p>
89      */

90     public static final String JavaDoc GROUP_SHOW= ICommonMenuConstants.GROUP_SHOW;
91     
92     /**
93      * Pop-up menu: name of group for new actions (value <code>"group.new"</code>).
94      * <p>
95      * Examples for new actions are:
96      * <ul>
97      * <li>Create new class</li>
98      * <li>Create new interface</li>
99      * </ul>
100      * </p>
101      */

102     public static final String JavaDoc GROUP_NEW= ICommonMenuConstants.GROUP_NEW;
103
104     /**
105      * Pop-up menu: name of group for build actions (value <code>"group.build"</code>).
106      */

107     public static final String JavaDoc GROUP_BUILD= ICommonMenuConstants.GROUP_BUILD;
108     
109     /**
110      * Pop-up menu: name of group for reorganize actions (value <code>"group.reorganize"</code>).
111      */

112     public static final String JavaDoc GROUP_REORGANIZE= ICommonMenuConstants.GROUP_REORGANIZE;
113     
114     /**
115      * Pop-up menu: name of group for code generation actions (
116      * value <code>"group.generate"</code>).
117      */

118     public static final String JavaDoc GROUP_GENERATE= ICommonMenuConstants.GROUP_GENERATE;
119
120     /**
121      * Pop-up menu: name of group for source actions. This is an alias for
122      * <code>GROUP_GENERATE</code> to be more consistent with main menu
123      * bar structure.
124      *
125      * @since 2.0
126      */

127     public static final String JavaDoc GROUP_SOURCE= ICommonMenuConstants.GROUP_SOURCE;
128
129     /**
130      * Pop-up menu: name of group for search actions (value <code>"group.search"</code>).
131      */

132     public static final String JavaDoc GROUP_SEARCH= ICommonMenuConstants.GROUP_SEARCH;
133     
134     /**
135      * Pop-up menu: name of group for additional actions (value <code>"additions"</code>).
136      */

137     public static final String JavaDoc GROUP_ADDITIONS= ICommonMenuConstants.GROUP_ADDITIONS;
138
139     /**
140      * Pop-up menu: name of group for viewer setup actions (value <code>"group.viewerSetup"</code>).
141      */

142     public static final String JavaDoc GROUP_VIEWER_SETUP= ICommonMenuConstants.GROUP_VIEWER_SETUP;
143
144     /**
145      * Pop-up menu: name of group for properties actions (value <code>"group.properties"</code>).
146      */

147     public static final String JavaDoc GROUP_PROPERTIES= ICommonMenuConstants.GROUP_PROPERTIES;
148 }
149
Popular Tags