blob: 9e17f4584acdfdb684dadab4ff0cc54c7ef70f2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2006 Sybase, Inc. and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sybase, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.pagedesigner.editors;
import org.eclipse.gef.ui.actions.GEFActionConstants;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.ui.IWorkbenchActionConstants;
/**
* @author mengbo
*/
public class PageDesignerActionConstants {
public static final String GROUP_UNDO = GEFActionConstants.GROUP_UNDO;
public static final String GROUP_EDIT = GEFActionConstants.GROUP_EDIT;
public static final String GROUP_CONTAINER = "org.eclipse.jst.pagedesigner.container"; //$NON-NLS-1$
public static final String GROUP_STYLE = "org.eclipse.jst.pagedesigner.style"; //$NON-NLS-1$
public static final String GROUP_SPECIAL = "org.eclipse.jst.pagedesigner.special"; //$NON-NLS-1$
public static final String MENUMGR_VIEW_ID = "org.eclipse.jst.pagedesigner.viewMenuMgr"; //$NON-NLS-1$
/**
* Adds standard group separators to the given MenuManager.
*
* @param menu
* the MenuManager
*/
public static final void addStandardActionGroups(IMenuManager menu) {
menu.add(new Separator(GROUP_UNDO));
menu.add(new Separator(GROUP_EDIT));
menu.add(new Separator(GROUP_CONTAINER));
menu.add(new Separator(GROUP_STYLE));
menu.add(new Separator(GROUP_SPECIAL));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}
}
|