本文整理汇总了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);
}
示例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);
}