本文整理汇总了Java中org.eclipse.ui.IWorkbenchActionConstants.M_EDIT属性的典型用法代码示例。如果您正苦于以下问题:Java IWorkbenchActionConstants.M_EDIT属性的具体用法?Java IWorkbenchActionConstants.M_EDIT怎么用?Java IWorkbenchActionConstants.M_EDIT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.ui.IWorkbenchActionConstants
的用法示例。
在下文中一共展示了IWorkbenchActionConstants.M_EDIT属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditMenu
/**
* Creates the 'Edit' menu. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
protected IMenuManager createEditMenu(IWorkbenchWindow window) {
IMenuManager menu = new MenuManager(getString("_UI_Menu_Edit_label"), IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
addToMenuAndRegister(menu, ActionFactory.UNDO.create(window));
addToMenuAndRegister(menu, ActionFactory.REDO.create(window));
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
addToMenuAndRegister(menu, ActionFactory.CUT.create(window));
addToMenuAndRegister(menu, ActionFactory.COPY.create(window));
addToMenuAndRegister(menu, ActionFactory.PASTE.create(window));
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
addToMenuAndRegister(menu, ActionFactory.DELETE.create(window));
addToMenuAndRegister(menu, ActionFactory.SELECT_ALL.create(window));
menu.add(new Separator());
menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
return menu;
}
示例2: createEditMenu
/**
* Creates and returns the Edit menu.
*/
private MenuManager createEditMenu() {
final MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_edit, IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
menu.add(undoAction);
menu.add(redoAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(getCutItem());
menu.add(getCopyItem());
menu.add(getPasteItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
menu.add(getDeleteItem());
menu.add(getSelectAllItem());
menu.add(new Separator());
menu.add(getFindItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
menu.add(new Separator());
menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
return menu;
}
示例3: createEditMenu
/**
* Create the "Edit" menu. This adds the undo, redo, cut, copy, paste,
* delete, select all, and collapse all options to the menu.
*
* @param window
* @return
*/
protected IMenuManager createEditMenu() {
IMenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_edit, IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
menu.add(getGlobalAction(ActionFactory.UNDO));
menu.add(getGlobalAction(ActionFactory.REDO));
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(getGlobalAction(ActionFactory.CUT));
menu.add(getGlobalAction(ActionFactory.COPY));
menu.add(getGlobalAction(ActionFactory.PASTE));
// menu.add(getGlobalAction(EnsembleActionFactory.PASTE_SPECIAL));
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
menu.add(getGlobalAction(ActionFactory.DELETE));
menu.add(getGlobalAction(ActionFactory.SELECT_ALL));
menu.add(new Separator());
menu.add(getGlobalAction(ActionFactory.FIND));
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
menu.add(new Separator());
menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
return menu;
}
示例4: createEditMenu
/**
* 创建编辑菜单
* @return 返回编辑菜单的 menu manager;
*/
private MenuManager createEditMenu() {
MenuManager menu = new MenuManager(Messages.getString("ts.ApplicationActionBarAdvisor.menu.edit"),
IWorkbenchActionConstants.M_EDIT); // &Edit
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
// menu.add(undoAction);
// menu.add(redoAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(cutAction);
menu.add(copyAction);
menu.add(pasteAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
// menu.add(deleteAction);
menu.add(renameAction);
menu.add(new Separator());
menu.add(findAction);
menu.add(selectAllAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
// menu.add(new Separator());
// menu.add(preferenceAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
return menu;
}
示例5: createEditMenu
/**
* 创建编辑菜单
* @return 返回编辑菜单的 menu manager;
*/
private MenuManager createEditMenu() {
MenuManager menu = new MenuManager(Messages.getString("ts.ApplicationActionBarAdvisor.menu.edit"),
IWorkbenchActionConstants.M_EDIT); // &Edit
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(cutAction);
menu.add(copyAction);
menu.add(pasteAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
menu.add(findAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
menu.add(new Separator());
menu.add(new GroupMarker("taskEdit"));
return menu;
}
示例6: createEditMenu
/**
* 创建编辑菜单
* @return 返回编辑菜单的 menu manager;
*/
private MenuManager createEditMenu() {
MenuManager menu = new MenuManager(Messages.getString("ts.ApplicationActionBarAdvisor.menu.edit"),
IWorkbenchActionConstants.M_EDIT); // &Edit
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
// menu.add(undoAction);
// menu.add(redoAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(cutAction);
menu.add(copyAction);
menu.add(pasteAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
menu.add(findAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
return menu;
}
示例7: createEditMenu
/**
* Creates the 'Edit' menu.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected IMenuManager createEditMenu(IWorkbenchWindow window) {
IMenuManager menu = new MenuManager(getString("_UI_Menu_Edit_label"),
IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
addToMenuAndRegister(menu, ActionFactory.UNDO.create(window));
addToMenuAndRegister(menu, ActionFactory.REDO.create(window));
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
addToMenuAndRegister(menu, ActionFactory.CUT.create(window));
addToMenuAndRegister(menu, ActionFactory.COPY.create(window));
addToMenuAndRegister(menu, ActionFactory.PASTE.create(window));
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
addToMenuAndRegister(menu, ActionFactory.DELETE.create(window));
addToMenuAndRegister(menu, ActionFactory.SELECT_ALL.create(window));
menu.add(new Separator());
menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
return menu;
}
示例8: createEditMenu
/**
* Creates and returns the Edit menu.
*/
private MenuManager createEditMenu() {
MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_edit,
IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
menu.add(undoAction);
menu.add(redoAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(getCutItem());
menu.add(getCopyItem());
menu.add(getPasteItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
menu.add(getDeleteItem());
menu.add(getSelectAllItem());
menu.add(new Separator());
menu.add(getFindItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
menu.add(new Separator());
menu.add(getBookmarkItem());
menu.add(getTaskItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
return menu;
}
示例9: createEditMenu
/**
* Creates and returns the Edit menu.
*/
private MenuManager createEditMenu()
{
MenuManager menu =
new MenuManager(IDEWorkbenchMessages.Workbench_edit,
IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
menu.add(undoAction);
menu.add(redoAction);
menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
menu.add(new Separator());
menu.add(getCutItem());
menu.add(getCopyItem());
menu.add(getPasteItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
menu.add(new Separator());
menu.add(getDeleteItem());
menu.add(getSelectAllItem());
menu.add(new Separator());
menu.add(getFindItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
menu.add(new Separator());
menu.add(getBookmarkItem());
menu.add(getTaskItem());
menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
return menu;
}
示例10: createEditToolbar
protected ToolBarContributionItem createEditToolbar(ICoolBarManager coolBar) {
IToolBarManager toolBar = new ToolBarManager(coolBar.getStyle());
toolBar.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
toolBar.add(getGlobalAction(ActionFactory.UNDO));
toolBar.add(getGlobalAction(ActionFactory.REDO));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
return new ToolBarContributionItem(toolBar, IWorkbenchActionConstants.M_EDIT);
}
示例11: fillMenuBar
protected void fillMenuBar(IMenuManager menuBar) {
MenuManager fileMenu = new MenuManager("&File",
IWorkbenchActionConstants.M_FILE);
menuBar.add(fileMenu);
fileMenu.add(exitAction);
MenuManager editMenu = new MenuManager("&Edit",
IWorkbenchActionConstants.M_EDIT);
menuBar.add(editMenu);
editMenu.add(preferenceAction);
}
示例12: fillMenuBar
@Override
protected void fillMenuBar(IMenuManager menuBar) {
MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
menuBar.add(fileMenu);
fileMenu.add(exitAction);
MenuManager editMenu = new MenuManager("&Edit", IWorkbenchActionConstants.M_EDIT);
menuBar.add(editMenu);
editMenu.add(preferenceAction);
}
示例13: createEditMenu
/**
* Creates and returns the Edit menu.
*/
private MenuManager createEditMenu( )
{
MenuManager menu = new MenuManager( DesignerWorkbenchMessages.Workbench_edit,
IWorkbenchActionConstants.M_EDIT );
menu.add( new GroupMarker( IWorkbenchActionConstants.EDIT_START ) );
menu.add( undoAction );
menu.add( redoAction );
menu.add( new GroupMarker( IWorkbenchActionConstants.UNDO_EXT ) );
menu.add( new Separator( ) );
menu.add( cutAction );
menu.add( copyAction );
menu.add( pasteAction );
menu.add( new GroupMarker( IWorkbenchActionConstants.CUT_EXT ) );
menu.add( new Separator( ) );
menu.add( deleteAction );
menu.add( selectAllAction );
menu.add( new Separator( ) );
menu.add( findAction );
menu.add( new GroupMarker( IWorkbenchActionConstants.FIND_EXT ) );
menu.add( new Separator( ) );
menu.add( new GroupMarker( IWorkbenchActionConstants.EDIT_END ) );
menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
return menu;
}