Package org.eclipse.jface.action
Class SubStatusLineManager
java.lang.Object
org.eclipse.jface.action.SubContributionManager
org.eclipse.jface.action.SubStatusLineManager
- All Implemented Interfaces:
IContributionManager,IStatusLineManager
A
SubStatusLineManager is used to define a set of contribution
items within a parent manager. Once defined, the visibility of the entire set can
be changed as a unit.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final IStatusLineManagerCreates a new progress monitor which reports progress in the status line.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.voidsetVisible(boolean visible) Sets the visibility of the manager.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.SubContributionManager
add, add, appendToGroup, appendToGroup, disposeManager, find, getItems, getOverrides, getParent, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, isVisible, itemAdded, itemRemoved, items, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, unwrap, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IContributionManager
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll
-
Constructor Details
-
SubStatusLineManager
Constructs a new manager.- Parameters:
mgr- the parent manager. All contributions made to theSubStatusLineManagerare forwarded and appear in the parent manager.
-
-
Method Details
-
getParentStatusLineManager
- Returns:
- the parent status line manager that this sub-manager contributes to
-
getProgressMonitor
Description 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 interfaceIStatusLineManager- 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:
-
isCancelEnabled
public boolean isCancelEnabled()Description copied from interface:IStatusLineManagerReturns whether the cancel button on the status line's progress monitor is enabled.- Specified by:
isCancelEnabledin interfaceIStatusLineManager- Returns:
trueif the cancel button is enabled, orfalseif not
-
setCancelEnabled
public 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 interfaceIStatusLineManager- Parameters:
enabled-trueif the cancel button is enabled, orfalseif not
-
setErrorMessage
Description 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 interfaceIStatusLineManager- Parameters:
message- the error message, ornullto clear the current error message.
-
setErrorMessage
Description 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 interfaceIStatusLineManager- Parameters:
image- the image to use, ornullfor no imagemessage- the error message, ornullto clear the current error message.
-
setMessage
Description 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 interfaceIStatusLineManager- Parameters:
message- the message, ornullfor no message
-
setMessage
Description 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 interfaceIStatusLineManager- Parameters:
image- the image to use, ornullfor no imagemessage- the message, ornullfor no message
-
setVisible
public void setVisible(boolean visible) Description copied from class:SubContributionManagerSets the visibility of the manager. If the visibility istruethen each item within the manager appears within the parent manager. Otherwise, the items are not visible.- Overrides:
setVisiblein classSubContributionManager- Parameters:
visible- the new visibility
-
update
public 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 interfaceIContributionManager- Parameters:
force-truemeans update even if not dirty, andfalsefor normal incremental updating
-