de.cau.cs.kieler.kwebs.client.ui
Class KWebSStatusBar

java.lang.Object
  extended by org.eclipse.jface.action.ContributionItem
      extended by org.eclipse.jface.action.ControlContribution
          extended by org.eclipse.ui.internal.menus.InternalControlContribution
              extended by org.eclipse.ui.menus.WorkbenchWindowControlContribution
                  extended by de.cau.cs.kieler.kwebs.client.ui.KWebSStatusBar
All Implemented Interfaces:
EventListener, IContributionItem, IPropertyChangeListener

public class KWebSStatusBar
extends WorkbenchWindowControlContribution
implements IPropertyChangeListener

This class makes an addition to the status bar so that the user can identify whether he is doing local or remote layout.

Rating red

Field Summary
static String WIDGET_ID
          The id of this widget.
 
Constructor Summary
KWebSStatusBar()
          Creates a new status bar contribution instance.
 
Method Summary
protected  Control createControl(Composite parent)
          
 void dispose()
          
protected  void finalize()
          
 void propertyChange(PropertyChangeEvent event)
          Listen to preference changes and update the context menu, status symbol and text.
 void setStatusInfo()
          Sets the icon of the status label.
 
Methods inherited from class org.eclipse.ui.menus.WorkbenchWindowControlContribution
delegateCreateControl, getCurSide, getOrientation, getWorkbenchWindow
 
Methods inherited from class org.eclipse.ui.internal.menus.InternalControlContribution
setCurSide, setWorkbenchWindow
 
Methods inherited from class org.eclipse.jface.action.ControlContribution
computeWidth, fill, fill, fill
 
Methods inherited from class org.eclipse.jface.action.ContributionItem
fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WIDGET_ID

public static final String WIDGET_ID
The id of this widget.

See Also:
Constant Field Values
Constructor Detail

KWebSStatusBar

public KWebSStatusBar()
Creates a new status bar contribution instance.

Method Detail

dispose

public void dispose()

Specified by:
dispose in interface IContributionItem
Overrides:
dispose in class ContributionItem

finalize

protected void finalize()
                 throws Throwable

Overrides:
finalize in class Object
Throws:
Throwable

createControl

protected Control createControl(Composite parent)

Specified by:
createControl in class ControlContribution

propertyChange

public final void propertyChange(PropertyChangeEvent event)
Listen to preference changes and update the context menu, status symbol and text.

Specified by:
propertyChange in interface IPropertyChangeListener
Parameters:
event - the property change event

setStatusInfo

public void setStatusInfo()
Sets the icon of the status label.