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


Java StatusLineContributionItem类代码示例

本文整理汇总了Java中org.eclipse.jface.action.StatusLineContributionItem的典型用法代码示例。如果您正苦于以下问题:Java StatusLineContributionItem类的具体用法?Java StatusLineContributionItem怎么用?Java StatusLineContributionItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: makeActions

import org.eclipse.jface.action.StatusLineContributionItem; //导入依赖的package包/类
/**
 * Creates actions (and contribution items) for the menu bar, toolbar and status line.
 */
@Override
protected void makeActions(final IWorkbenchWindow window) {
	statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$
	createSaveAction(window);
	createSaveAsAction(window);
	createSaveAllAction(window);
	createUndoAction(window);
	createRedoAction(window);
	createCloseAction(window);
	createCloseAllAction(window);
	createHelpContentsAction(window);
	createAboutAction(window);
	createOpenPreferencesAction(window);
	makeFeatureDependentActions(window);
	createForwardHistoryAction(window);
	createBackwardHistoryAction(window);
	createQuitAction(window);
	createOpenWorkspaceAction(window);
	createPropertyDialogAction(window);
	hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(window);
	register(hideShowEditorAction);
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:26,代码来源:GamaActionBarAdvisor.java

示例2: RelationsStatusLineManager

import org.eclipse.jface.action.StatusLineContributionItem; //导入依赖的package包/类
/**
 * RelationsStatusLineManager constructor.
 */
public RelationsStatusLineManager() {
	statusItemDBName = new StatusLineContributionItem(
	        Constants.STATUS_ITEM_DB_NAME, 36);
	statusItemDBSize = new StatusLineContributionItem(
	        Constants.STATUS_ITEM_DB_SIZE, 25);
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:10,代码来源:RelationsStatusLineManager.java


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