001: /*******************************************************************************
002: * Copyright (c) 2000, 2006 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package org.eclipse.jdt.ui;
011:
012: import org.eclipse.ui.navigator.ICommonMenuConstants;
013:
014: /**
015: * Constants for menu groups used in context menus for Java views and editors.
016: * <p>
017: * This interface declares constants only; it is not intended to be implemented.
018: * </p>
019: */
020: public interface IContextMenuConstants {
021:
022: /**
023: * Type hierarchy view part: pop-up menu target ID for type hierarchy viewer
024: * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.typehierarchy"</code>).
025: *
026: * @since 2.0
027: */
028: public static final String TARGET_ID_HIERARCHY_VIEW = JavaUI.ID_TYPE_HIERARCHY
029: + ".typehierarchy"; //$NON-NLS-1$
030:
031: /**
032: * Type hierarchy view part: pop-up menu target ID for supertype hierarchy viewer
033: * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.supertypes"</code>).
034: *
035: * @since 2.0
036: */
037: public static final String TARGET_ID_SUPERTYPES_VIEW = JavaUI.ID_TYPE_HIERARCHY
038: + ".supertypes"; //$NON-NLS-1$
039:
040: /**
041: * Type hierarchy view part: Pop-up menu target ID for the subtype hierarchy viewer
042: * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.subtypes"</code>).
043: *
044: * @since 2.0
045: */
046: public static final String TARGET_ID_SUBTYPES_VIEW = JavaUI.ID_TYPE_HIERARCHY
047: + ".subtypes"; //$NON-NLS-1$
048:
049: /**
050: * Type hierarchy view part: pop-up menu target ID for the member viewer
051: * (value <code>"org.eclipse.jdt.ui.TypeHierarchy.members"</code>).
052: *
053: * @since 2.0
054: */
055: public static final String TARGET_ID_MEMBERS_VIEW = JavaUI.ID_TYPE_HIERARCHY
056: + ".members"; //$NON-NLS-1$
057:
058: /**
059: * Pop-up menu: name of group for goto actions (value <code>"group.goto"</code>).
060: * <p>
061: * Examples for open actions are:
062: * <ul>
063: * <li>Go Into</li>
064: * <li>Go To</li>
065: * </ul>
066: * </p>
067: */
068: public static final String GROUP_GOTO = ICommonMenuConstants.GROUP_GOTO;
069: /**
070: * Pop-up menu: name of group for open actions (value <code>"group.open"</code>).
071: * <p>
072: * Examples for open actions are:
073: * <ul>
074: * <li>Open To</li>
075: * <li>Open With</li>
076: * </ul>
077: * </p>
078: */
079: public static final String GROUP_OPEN = ICommonMenuConstants.GROUP_OPEN;
080:
081: /**
082: * Pop-up menu: name of group for show actions (value <code>"group.show"</code>).
083: * <p>
084: * Examples for show actions are:
085: * <ul>
086: * <li>Show in Navigator</li>
087: * <li>Show in Type Hierarchy</li>
088: * </ul>
089: * </p>
090: */
091: public static final String GROUP_SHOW = ICommonMenuConstants.GROUP_SHOW;
092:
093: /**
094: * Pop-up menu: name of group for new actions (value <code>"group.new"</code>).
095: * <p>
096: * Examples for new actions are:
097: * <ul>
098: * <li>Create new class</li>
099: * <li>Create new interface</li>
100: * </ul>
101: * </p>
102: */
103: public static final String GROUP_NEW = ICommonMenuConstants.GROUP_NEW;
104:
105: /**
106: * Pop-up menu: name of group for build actions (value <code>"group.build"</code>).
107: */
108: public static final String GROUP_BUILD = ICommonMenuConstants.GROUP_BUILD;
109:
110: /**
111: * Pop-up menu: name of group for reorganize actions (value <code>"group.reorganize"</code>).
112: */
113: public static final String GROUP_REORGANIZE = ICommonMenuConstants.GROUP_REORGANIZE;
114:
115: /**
116: * Pop-up menu: name of group for code generation actions (
117: * value <code>"group.generate"</code>).
118: */
119: public static final String GROUP_GENERATE = ICommonMenuConstants.GROUP_GENERATE;
120:
121: /**
122: * Pop-up menu: name of group for source actions. This is an alias for
123: * <code>GROUP_GENERATE</code> to be more consistent with main menu
124: * bar structure.
125: *
126: * @since 2.0
127: */
128: public static final String GROUP_SOURCE = ICommonMenuConstants.GROUP_SOURCE;
129:
130: /**
131: * Pop-up menu: name of group for search actions (value <code>"group.search"</code>).
132: */
133: public static final String GROUP_SEARCH = ICommonMenuConstants.GROUP_SEARCH;
134:
135: /**
136: * Pop-up menu: name of group for additional actions (value <code>"additions"</code>).
137: */
138: public static final String GROUP_ADDITIONS = ICommonMenuConstants.GROUP_ADDITIONS;
139:
140: /**
141: * Pop-up menu: name of group for viewer setup actions (value <code>"group.viewerSetup"</code>).
142: */
143: public static final String GROUP_VIEWER_SETUP = ICommonMenuConstants.GROUP_VIEWER_SETUP;
144:
145: /**
146: * Pop-up menu: name of group for properties actions (value <code>"group.properties"</code>).
147: */
148: public static final String GROUP_PROPERTIES = ICommonMenuConstants.GROUP_PROPERTIES;
149: }
|