本文整理汇总了Java中org.eclipse.jface.action.MenuManager.setVisible方法的典型用法代码示例。如果您正苦于以下问题:Java MenuManager.setVisible方法的具体用法?Java MenuManager.setVisible怎么用?Java MenuManager.setVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.action.MenuManager
的用法示例。
在下文中一共展示了MenuManager.setVisible方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createViewMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
private void createViewMenu(MenuManager menuManager) {
MenuManager viewMenu = createMenu(menuManager, MenuConstants.VIEW);
menuManager.add(viewMenu);
viewMenu.setVisible(true);
if (actionFactory == null) {
actionFactory = new ActionFactory(this);
}
viewMenu.add(actionFactory.getAction(GridViewAction.class.getName()));
viewMenu.add(actionFactory.getAction(FormattedViewAction.class.getName()));
viewMenu.add(actionFactory.getAction(UnformattedViewAction.class.getName()));
viewMenu.add(new Separator());
viewMenu.add(actionFactory.getAction(ReloadAction.class.getName()));
viewDataPreferencesVO = getViewDataPreferencesFromPreferenceFile();
viewMenu.add(actionFactory.getAction(PreferencesAction.class.getName()));
}
示例2: createMenuManager
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
/**
* Create the menu manager.
*
* @return the menu manager
*/
@Override
protected MenuManager createMenuManager() {
MenuManager menuManager = new MenuManager(MenuConstants.MENU);
menuManager.setVisible(true);
createFileMenu(menuManager);
createEditMenu(menuManager);
createViewMenu(menuManager);
createDataMenu(menuManager);
createWindowMenu(menuManager);
return menuManager;
}
示例3: createFileMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
private void createFileMenu(MenuManager menuManager) {
MenuManager fileMenu = createMenu(menuManager, MenuConstants.FILE);
menuManager.add(fileMenu);
fileMenu.setVisible(true);
if (actionFactory == null) {
actionFactory = new ActionFactory(this);
}
fileMenu.add(actionFactory.getAction(ExportAction.class.getName()));
}
示例4: createWindowMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
private void createWindowMenu(MenuManager menuManager) {
MenuManager windowMenu = createMenu(menuManager, MenuConstants.WINDOW);
menuManager.add(windowMenu);
windowMenu.setVisible(true);
windowMenu.add(actionFactory.getAction(DatasetInformationAction.class.getName()));
windowMenu.add(actionFactory.getAction(AutoExpandColumnsAction.class.getName()));
}
示例5: createEditMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
private void createEditMenu(MenuManager menuManager) {
MenuManager editMenu = createMenu(menuManager, MenuConstants.EDIT);
menuManager.add(editMenu);
editMenu.setVisible(true);
if (actionFactory == null) {
actionFactory = new ActionFactory(this);
}
editMenu.add(actionFactory.getAction(SelectAllAction.class.getName()));
editMenu.add(actionFactory.getAction(CopyAction.class.getName()));
editMenu.add(actionFactory.getAction(FindAction.class.getName()));
editMenu.add(actionFactory.getAction(SelectColumnAction.class.getName()));
editMenu.add(actionFactory.getAction(ResetColumnsAction.class.getName()));
}
示例6: createDataMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
private void createDataMenu(MenuManager menuManager) {
MenuManager dataMenu = createMenu(menuManager, MenuConstants.Data);
menuManager.add(dataMenu);
dataMenu.setVisible(true);
if (actionFactory == null) {
actionFactory = new ActionFactory(this);
}
dataMenu.add(actionFactory.getAction(ResetSortAction.class.getName()));
dataMenu.add(actionFactory.getAction(FilterAction.class.getName()));
dataMenu.add(actionFactory.getAction(ClearFilterAction.class.getName()));
}
示例7: createMenuManager
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
/**
* Create the menu manager.
* @return the menu manager
*/
@Override
protected MenuManager createMenuManager() {
MenuManager menuManager = new MenuManager(MenuConstants.MENU);
menuManager.setVisible(true);
createWindowMenu(menuManager);
return menuManager;
}
示例8: createWindowMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
/**
* Creates the window menu.
*
* @param menuManager the menu manager
*/
private void createWindowMenu(MenuManager menuManager) {
MenuManager windowMenu = createMenu(menuManager, MenuConstants.WINDOW);
menuManager.add(windowMenu);
windowMenu.setVisible(true);
if (actionFactory == null) {
actionFactory = new ActionFactory(this);
}
windowMenu.add(actionFactory.getAction(ClearConsoleAction.class.getName()));
windowMenu.add(actionFactory.getAction(ScrollLockAction.class.getName()));
}
示例9: createMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
private MenuManager createMenu(MenuManager menuManager, String menuName) {
MenuManager menu = new MenuManager(menuName);
menuManager.add(menu);
menuManager.setVisible(true);
return menu;
}
示例10: createMenu
import org.eclipse.jface.action.MenuManager; //导入方法依赖的package包/类
/**
* Creates the menu.
*
* @param menuManager the menu manager
* @param menuName the menu name
* @return the menu manager
*/
private MenuManager createMenu(MenuManager menuManager, String menuName) {
MenuManager menu = new MenuManager(menuName);
menuManager.add(menu);
menuManager.setVisible(true);
return menu;
}