Class StatusLineManager
- All Implemented Interfaces:
- IContributionManager,- IStatusLineManager
This class may be instantiated; it may also be subclassed if a more sophisticated layout is required.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringIdentifier of group marker used to position contributions at the beginning of the status line.static final StringIdentifier of group marker used to position contributions at the end of the status line.static final StringIdentifier of group marker used to position contributions in the middle of the status line.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateControl(Composite parent) Creates and returns this manager's status line control.createControl(Composite parent, int style) Creates and returns this manager's status line control.voiddispose()Disposes of this status line manager and frees all allocated SWT resources.Returns the control used by this StatusLineManager.Creates a new progress monitor which reports progress in the status line.protected IProgressMonitorReturns the progress monitor delegate.booleanReturns whether the cancel button on the status line's progress monitor is enabled.voidsetCancelEnabled(boolean enabled) Sets whether the cancel button on the status line's progress monitor is enabled.voidsetErrorMessage(String message) Sets the error message text to be displayed on the status line.voidsetErrorMessage(Image image, String message) Sets the image and error message to be displayed on the status line.voidsetMessage(String message) Sets the message text to be displayed on the status line.voidsetMessage(Image image, String message) Sets the image and message to be displayed on the status line.voidupdate(boolean force) Updates this manager's underlying widget(s) with any changes which have been made to it or its items.Methods inherited from class org.eclipse.jface.action.ContributionManageradd, add, allowItem, appendToGroup, appendToGroup, dumpStatistics, find, getItems, getOverrides, getSize, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItem, setDirty, setOverridesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IContributionManageradd, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll
- 
Field Details- 
BEGIN_GROUPIdentifier of group marker used to position contributions at the beginning of the status line.- Since:
- 3.0
- See Also:
 
- 
MIDDLE_GROUPIdentifier of group marker used to position contributions in the middle of the status line.- Since:
- 3.0
- See Also:
 
- 
END_GROUPIdentifier of group marker used to position contributions at the end of the status line.- Since:
- 3.0
- See Also:
 
 
- 
- 
Constructor Details- 
StatusLineManagerpublic StatusLineManager()Creates a new status line manager. Use thecreateControlmethod to create the status line control.
 
- 
- 
Method Details- 
createControlCreates and returns this manager's status line control. Does not create a new control if one already exists.Note: Since 3.0 the return type is Control. Before 3.0, the return type was the package-private classStatusLine.- Parameters:
- parent- the parent control
- Returns:
- the status line control
 
- 
createControlCreates and returns this manager's status line control. Does not create a new control if one already exists.- Parameters:
- parent- the parent control
- style- the style for the control
- Returns:
- the status line control
- Since:
- 3.0
 
- 
disposepublic void dispose()Disposes of this status line manager and frees all allocated SWT resources. Notifies all contribution items of the dispose. Note that this method does not clean up references between this status line manager and its associated contribution items. UseremoveAllfor that purpose.
- 
getControlReturns the control used by this StatusLineManager.- Returns:
- the control used by this manager
 
- 
getProgressMonitorDelegateReturns the progress monitor delegate. Override this method to provide your own object used to handle progress.- Returns:
- the IProgressMonitor delegate
- Since:
- 3.0
 
- 
getProgressMonitorDescription copied from interface:IStatusLineManagerCreates a new progress monitor which reports progress in the status line. Note that the returned progress monitor may only be accessed from the UI thread. Reusing the monitor requires to finally call progressMonitor.done() before using it again.- Specified by:
- getProgressMonitorin interface- IStatusLineManager
- Returns:
- the progress monitor Note: There is a delay after a beginTask message before the monitor is shown. This may not be appropriate for all apps.
- See Also:
 
- 
isCancelEnabledpublic boolean isCancelEnabled()Description copied from interface:IStatusLineManagerReturns whether the cancel button on the status line's progress monitor is enabled.- Specified by:
- isCancelEnabledin interface- IStatusLineManager
- Returns:
- trueif the cancel button is enabled, or- falseif not
 
- 
setCancelEnabledpublic void setCancelEnabled(boolean enabled) Description copied from interface:IStatusLineManagerSets whether the cancel button on the status line's progress monitor is enabled.- Specified by:
- setCancelEnabledin interface- IStatusLineManager
- Parameters:
- enabled-- trueif the cancel button is enabled, or- falseif not
 
- 
setErrorMessageDescription copied from interface:IStatusLineManagerSets the error message text to be displayed on the status line. The image on the status line is cleared.An error message overrides the current message until the error message is cleared (set to null).- Specified by:
- setErrorMessagein interface- IStatusLineManager
- Parameters:
- message- the error message, or- nullto clear the current error message.
 
- 
setErrorMessageDescription copied from interface:IStatusLineManagerSets the image and error message to be displayed on the status line.An error message overrides the current message until the error message is cleared (set to null).- Specified by:
- setErrorMessagein interface- IStatusLineManager
- Parameters:
- image- the image to use, or- nullfor no image
- message- the error message, or- nullto clear the current error message.
 
- 
setMessageDescription copied from interface:IStatusLineManagerSets the message text to be displayed on the status line. The image on the status line is cleared.This method replaces the current message but does not affect the error message. That is, the error message, if set, will continue to be displayed until it is cleared (set to null).- Specified by:
- setMessagein interface- IStatusLineManager
- Parameters:
- message- the message, or- nullfor no message
 
- 
setMessageDescription copied from interface:IStatusLineManagerSets the image and message to be displayed on the status line.This method replaces the current message but does not affect the error message. That is, the error message, if set, will continue to be displayed until it is cleared (set to null).- Specified by:
- setMessagein interface- IStatusLineManager
- Parameters:
- image- the image to use, or- nullfor no image
- message- the message, or- nullfor no message
 
- 
updatepublic void update(boolean force) Description copied from interface:IContributionManagerUpdates this manager's underlying widget(s) with any changes which have been made to it or its items. Normally changes to a contribution manager merely mark it as dirty, without updating the underlying widgets. This brings the underlying widgets up to date with any changes.- Specified by:
- updatein interface- IContributionManager
- Parameters:
- force-- truemeans update even if not dirty, and- falsefor normal incremental updating
 
 
-