001: /*******************************************************************************
002: * Copyright (c) 2003, 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.ui.navigator;
011:
012: import org.eclipse.ui.IWorkbenchActionConstants;
013:
014: /**
015: * Defines strings used for menu insertion points.
016: * <p>
017: * This interface is not intended to be implemented by clients.
018: * </p>
019: *
020: * @since 3.2
021: */
022: public interface ICommonMenuConstants {
023:
024: /**
025: * Pop-up menu: name of group for the top of the menu (value
026: * <code>"group.top"</code>).
027: */
028: public static final String GROUP_TOP = "group.top"; //$NON-NLS-1$
029:
030: /**
031: * Pop-up menu: name of group for goto actions (value
032: * <code>"group.goto"</code>).
033: * <p>
034: * Examples for open actions are:
035: * <ul>
036: * <li>Go Into</li>
037: * <li>Go To</li>
038: * </ul>
039: * </p>
040: */
041: public static final String GROUP_GOTO = "group.goto"; //$NON-NLS-1$
042:
043: /**
044: * Pop-up menu: name of group for show actions (value
045: * <code>"group.show"</code>).
046: * <p>
047: * Examples for show actions are:
048: * <ul>
049: * <li>Show in Navigator</li>
050: * <li>Show in Type Hierarchy</li>
051: * </ul>
052: * </p>
053: */
054: public static final String GROUP_SHOW = "group.show"; //$NON-NLS-1$
055:
056: /**
057: * Pop-up menu: name of group for new actions (value
058: * <code>"group.new"</code>).
059: * <p>
060: * Examples for new actions are:
061: * <ul>
062: * <li>Create new class</li>
063: * <li>Create new interface</li>
064: * </ul>
065: * </p>
066: */
067: public static final String GROUP_NEW = "group.new"; //$NON-NLS-1$
068:
069: /**
070: * Pop-up menu: name of group for open actions (value
071: * <code>"group.open"</code>).
072: * <p>
073: * Examples for open actions are:
074: * <ul>
075: * <li>Open To</li>
076: * <li>Open With</li>
077: * </ul>
078: * </p>
079: *
080: * @see #GROUP_OPEN_WITH
081: */
082: public static final String GROUP_OPEN = "group.open"; //$NON-NLS-1$
083:
084: /**
085: * Pop-up menu: name of group for open actions (value
086: * <code>"group.openWith"</code>).
087: * <p>
088: * Examples for open actions are:
089: * <ul>
090: * <li>Open With</li>
091: * </ul>
092: * </p>
093: */
094: public static final String GROUP_OPEN_WITH = "group.openWith"; //$NON-NLS-1$
095:
096: /**
097: * Pop-up menu: name of group for porting actions (value
098: * <code>"group.port"</code>).
099: * <p>
100: * Examples for open actions are:
101: * <ul>
102: * <li>Import</li>
103: * <li>Export</li>
104: * </ul>
105: * </p>
106: */
107: public static final String GROUP_PORT = "group.port";//$NON-NLS-1$
108:
109: /**
110: * Pop-up menu: name of group for properties actions (value
111: * <code>"group.edit"</code>).
112: */
113: public static final String GROUP_EDIT = "group.edit"; //$NON-NLS-1$
114:
115: /**
116: * Pop-up menu: name of group for build actions (value
117: * <code>"group.build"</code>).
118: */
119: public static final String GROUP_BUILD = "group.build"; //$NON-NLS-1$
120:
121: /**
122: * Pop-up menu: name of group for reorganize actions (value
123: * <code>"group.reorganize"</code>).
124: */
125: public static final String GROUP_REORGANIZE = IWorkbenchActionConstants.GROUP_REORGANIZE;
126:
127: /**
128: * Pop-up menu: name of group for code generation actions ( value
129: * <code>"group.generate"</code>).
130: */
131: public static final String GROUP_GENERATE = "group.generate"; //$NON-NLS-1$
132:
133: /**
134: * Pop-up menu: name of group for source actions. This is an alias for
135: * <code>GROUP_GENERATE</code> to be more consistent with main menu bar
136: * structure.
137: *
138: */
139: public static final String GROUP_SOURCE = GROUP_GENERATE;
140:
141: /**
142: * Pop-up menu: name of group for search actions (value
143: * <code>"group.search"</code>).
144: */
145: public static final String GROUP_SEARCH = "group.search"; //$NON-NLS-1$
146:
147: /**
148: * Pop-up menu: name of group for additional actions (value
149: * <code>"additions"</code>).
150: */
151: public static final String GROUP_ADDITIONS = "additions"; //$NON-NLS-1$
152:
153: /**
154: * Pop-up menu: name of group for viewer setup actions (value
155: * <code>"group.viewerSetup"</code>).
156: */
157: public static final String GROUP_VIEWER_SETUP = "group.viewerSetup"; //$NON-NLS-1$
158:
159: /**
160: * Pop-up menu: name of group for properties actions (value
161: * <code>"group.properties"</code>).
162: */
163: public static final String GROUP_PROPERTIES = "group.properties"; //$NON-NLS-1$
164:
165: }
|