Eclipse Spot

Add a status line to pure Eclipse E4 RCP application

StatusBar is a fragment plugin to add a status line to a pure E4 application. The fragment is installed using the Eclipse 4 model editor. Simply add a "Window Trim - Bottom" to the main window:

E4 Model Editor

E4 model editor

On the right is the "Window Trim" ID field, which must be set to au.com.cybersearch2.statusline.trimbar.

There are three plugin classes which normally used to set up and operate the status line:

  1. ItemConfiguration
  2. StatusItem
  3. StatusBar

ItemConfiguration defines attributes of a status line item. Each item is backed by StatusItem which receives the changes to be displayed on the status line. StatusBar is a container for StatusItems and is responsible for updating the status line when any change is made to a StatusItem.

A status line item is rendered using the Eclipse CLabel custom control, As can be seen in the opposite screenshot, this control is capable of displaying both an image and text. The ItemConfiguration supports a subset of CLabel attributes, including font and background color.

Statusbar RCP Application Example

Statusbar RCP Example

Here is a screen shot of the Application with 3 items in the status line at the bottom of the window.

StatusBar Information