当前位置: 首页>>代码示例>>Java>>正文


Java IMenuService.releaseContributions方法代码示例

本文整理汇总了Java中org.eclipse.ui.menus.IMenuService.releaseContributions方法的典型用法代码示例。如果您正苦于以下问题:Java IMenuService.releaseContributions方法的具体用法?Java IMenuService.releaseContributions怎么用?Java IMenuService.releaseContributions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.menus.IMenuService的用法示例。


在下文中一共展示了IMenuService.releaseContributions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: dispose

import org.eclipse.ui.menus.IMenuService; //导入方法依赖的package包/类
/**
 * 创建自定义的插件菜单 2012-03-07
 * @return ;
 */
/*
 * private MenuManager createAutoPluginMenu() { MenuManager menu = new MenuManager("asdfasd",
 * "net.heartsome.cat.ts.ui.menu.plugin"); // menu = MenuManag
 * 
 * // menu.appendToGroup(groupName, item) menu.add(helpSearchAction); return menu; }
 */

@Override
public void dispose() {
	if (isDisposed) {
		return;
	}
	isDisposed = true;
	IMenuService menuService = (IMenuService) window.getService(IMenuService.class);
	menuService.releaseContributions(coolbarPopupMenuManager);
	coolbarPopupMenuManager.dispose();
	super.dispose();
}
 
开发者ID:heartsome,项目名称:translationstudio8,代码行数:23,代码来源:ApplicationActionBarAdvisor.java

示例2: dispose

import org.eclipse.ui.menus.IMenuService; //导入方法依赖的package包/类
/**
 * Disposes any resources and unhooks any listeners that are no longer needed. Called when the
 * window is closed.
 */
public void dispose()
{
  if (isDisposed)
  {
    return;
  }
  isDisposed = true;
  IMenuService menuService =
      (IMenuService) window.getService(IMenuService.class);
  menuService.releaseContributions(coolbarPopupMenuManager);
  coolbarPopupMenuManager.dispose();

  getActionBarConfigurer().getStatusLineManager().remove(statusLineItem);
  showInQuickMenu.dispose();
  newQuickMenu.dispose();

  // null out actions to make leak debugging easier
  closeAction = null;
  closeAllAction = null;
  closeAllSavedAction = null;
  closeOthersAction = null;
  saveAction = null;
  saveAllAction = null;
  newWindowAction = null;
  newEditorAction = null;
  helpContentsAction = null;
  helpSearchAction = null;
  dynamicHelpAction = null;
  aboutAction = null;
  saveAsAction = null;
  closePerspAction = null;
  closeAllPerspsAction = null;
  showViewMenuAction = null;
  undoAction = null;
  redoAction = null;
  quitAction = null;
  openWorkspaceAction = null;
  projectPropertyDialogAction = null;
  newWizardAction = null;
  quickStartAction = null;
  tipsAndTricksAction = null;
  showInQuickMenu = null;
  newQuickMenu = null;
  statusLineItem = null;
  introAction = null;
  super.dispose();
}
 
开发者ID:debrief,项目名称:limpet,代码行数:52,代码来源:ApplicationActionBarAdvisor.java


注:本文中的org.eclipse.ui.menus.IMenuService.releaseContributions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。