Example usage for org.eclipse.jface.action StatusLineManager appendToGroup

List of usage examples for org.eclipse.jface.action StatusLineManager appendToGroup

Introduction

In this page you can find the example usage for org.eclipse.jface.action StatusLineManager appendToGroup.

Prototype

@Override
    public void appendToGroup(String groupName, IAction action) 

Source Link

Usage

From source file:com.carrotgarden.m2e.config.ConfigStartup.java

License:BSD License

private void addStatusLineContribution() {

    final IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();

    final WorkbenchWindow window = (WorkbenchWindow) windows[0];

    final StatusLineManager statusLineManager = window.getStatusLineManager();

    label = new ConfigLabel("config");

    statusLineManager.add(new Separator("carrot"));

    statusLineManager.appendToGroup("carrot", label);

    statusLineManager.update(true);//from w w w  .  j  a  v a2 s  .  c  om

}

From source file:hydrograph.ui.dataviewer.window.DebugDataViewer.java

License:Apache License

/**
 * Create the status line manager.//from  www. j a  v  a2  s  .  c o  m
 * 
 * @return the status line manager
 */
@Override
protected StatusLineManager createStatusLineManager() {
    StatusLineManager statusLineManager = new StatusLineManager();
    statusLineManager.appendToGroup(StatusLineManager.END_GROUP, new Separator(StatusLineManager.END_GROUP));
    statusLineManager.appendToGroup(StatusLineManager.END_GROUP, dropDownAction);
    statusManager = new StatusManager();
    statusManager.setStatusLineManager(statusLineManager);

    return statusLineManager;
}