Java 类org.eclipse.jface.action.StatusLineContributionItem 实例源码

项目:gama    文件:GamaActionBarAdvisor.java   
/**
 * 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);
}
项目:relations    文件:RelationsStatusLineManager.java   
/**
 * RelationsStatusLineManager constructor.
 */
public RelationsStatusLineManager() {
    statusItemDBName = new StatusLineContributionItem(
            Constants.STATUS_ITEM_DB_NAME, 36);
    statusItemDBSize = new StatusLineContributionItem(
            Constants.STATUS_ITEM_DB_SIZE, 25);
}