|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.menus.MenuUtil
public class MenuUtil
Provides utilities and constants for use with the new menus API.
Field Summary | |
---|---|
static String |
ANY_POPUP
-Any- Popup Menu |
static String |
MAIN_MENU
Main Menu |
static String |
MAIN_TOOLBAR
Main ToolBar (CoolBar) |
static String |
QUERY_AFTER
Valid query attribute. |
static String |
QUERY_BEFORE
Valid query attribute. |
static String |
QUERY_ENDOF
Valid query attribute. |
static String |
SHOW_IN_MENU_ID
Contributions of targets to this location will be included with the show in menu. |
static String |
TRIM_COMMAND1
Top Left Trim Area |
static String |
TRIM_COMMAND2
Top Right Trim Area |
static String |
TRIM_STATUS
Bottom (Status) Trim Area |
static String |
TRIM_VERTICAL1
Left Vertical Trim Area |
static String |
TRIM_VERTICAL2
Right Vertical Trim Area |
Constructor Summary | |
---|---|
MenuUtil()
|
Method Summary | |
---|---|
static String |
menuAddition(String id)
Convenience method to create a standard menu addition The resulting string has the format: "menu:[id]? |
static String |
menuAddition(String id,
String location,
String refId)
|
static String |
menuUri(String id)
|
static String |
toolbarAddition(String id)
Convenience method to create a standard toolbar addition The resulting string has the format: "toolbar:[id]? |
static String |
toolbarAddition(String id,
String location,
String refId)
|
static String |
toolbarUri(String id)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MAIN_MENU
public static final String MAIN_TOOLBAR
public static final String ANY_POPUP
public static final String TRIM_COMMAND1
public static final String TRIM_COMMAND2
public static final String TRIM_VERTICAL1
public static final String TRIM_VERTICAL2
public static final String TRIM_STATUS
public static final String QUERY_BEFORE
public static final String QUERY_AFTER
public static final String QUERY_ENDOF
This menu contribution will be placed at the end of the group defined by contribution.id (usually right in front of the next group marker or separator). Further contribution processing can still place other contributions after this one.
public static final String SHOW_IN_MENU_ID
Constructor Detail |
---|
public MenuUtil()
Method Detail |
---|
public static String menuUri(String id)
id
- The menu's id
public static String menuAddition(String id, String location, String refId)
id
- The id of the menulocation
- The relative location specifierrefId
- The id of the menu element to be relative to
public static String menuAddition(String id)
id
- The id of the root element to contribute to
public static String toolbarUri(String id)
id
- The toolbar's id
public static String toolbarAddition(String id, String location, String refId)
id
- The id of the toolbarlocation
- The relative location specifierrefId
- The id of the toolbar element to be relative to
public static String toolbarAddition(String id)
id
- The id of the root element to contribute to
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.