WorkbenchWindow window = (WorkbenchWindow) associatedWindow;
IStatusLineManager statusLine = window.getStatusLineManager();
// TODO implicit dependency on IDE's action builder
// @issue implicit dependency on IDE's action builder
if (statusLine != null) { // this can be null if we're exiting
IContributionItem item = statusLine
.find("ModeContributionItem"); //$NON-NLS-1$
if (item instanceof StatusLineContributionItem) {
return ((StatusLineContributionItem) item);
}
}