Example usage for org.eclipse.jface.action IStatusLineManager insertBefore

List of usage examples for org.eclipse.jface.action IStatusLineManager insertBefore

Introduction

In this page you can find the example usage for org.eclipse.jface.action IStatusLineManager insertBefore.

Prototype

void insertBefore(String id, IAction action);

Source Link

Document

Inserts a contribution item for the given action before the item with the given id.

Usage

From source file:org.eclipse.jubula.client.ui.rcp.Plugin.java

License:Open Source License

/**
 * create the items for the status line/*w w w .j a va  2 s  .com*/
 */
public static void createStatusLineItems() {
    IStatusLineManager manager = getStatusLineManager();
    StatusLineContributionItem connectionItem = new StatusLineContributionItem(CONNECTION_INFO_STATUSLINE_ITEM);
    manager.insertBefore(StatusLineManager.END_GROUP, connectionItem);
    StatusLineContributionItem autToolKitItem = new StatusLineContributionItem(AUT_TOOLKIT_STATUSLINE_ITEM);
    autToolKitItem.setText(StringConstants.EMPTY);
    manager.insertBefore(CONNECTION_INFO_STATUSLINE_ITEM, autToolKitItem);
    manager.update(true);
}