Buggy code:
} ; private final ICommandManagerListener commandManagerListener = new ICommandManagerListener ( ) { public final void commandManagerChanged ( final ICommandManagerEvent commandManagerEvent ) { } } ; private final IContextManagerListener contextManagerListener = new IContextManagerListener ( ) { public final void contextManagerChanged ( final IContextManagerEvent contextManagerEvent ) { } } ; private IActionServiceListener actionServiceListener = new IActionServiceListener ( ) { public void actionServiceChanged ( IActionServiceEvent actionServiceEvent ) { } } ; private IContextActivationServiceListener contextActivationServiceListener = new IContextActivationServiceListener ( ) { public void contextActivationServiceChanged ( IContextActivationServiceEvent contextActivationServiceEvent ) { } } ; private IInternalPerspectiveListener internalPerspectiveListener = new IInternalPerspectiveListener ( ) { public void perspectiveActivated ( IWorkbenchPage workbenchPage , IPerspectiveDescriptor perspectiveDescriptor ) { } public void perspectiveChanged ( IWorkbenchPage workbenchPage , IPerspectiveDescriptor perspectiveDescriptor , String changeId ) { } public void perspectiveClosed ( IWorkbenchPage page , IPerspectiveDescriptor perspective ) { } public void perspectiveOpened ( IWorkbenchPage page , IPerspectiveDescriptor perspective ) { } } ; private IPageListener pageListener = new IPageListener ( ) { public void pageActivated ( IWorkbenchPage workbenchPage ) { } public void pageClosed ( IWorkbenchPage workbenchPage ) { } public void pageOpened ( IWorkbenchPage workbenchPage ) { } } ; private IPartListener partListener = new IPartListener ( ) { public void partActivated ( IWorkbenchPart workbenchPart ) { } public void partBroughtToTop ( IWorkbenchPart workbenchPart ) { } public void partClosed ( IWorkbenchPart workbenchPart ) { } public void partDeactivated ( IWorkbenchPart workbenchPart ) { } public void partOpened ( IWorkbenchPart workbenchPart ) { } } ; private IWindowListener windowListener = new IWindowListener ( ) { public void windowActivated ( IWorkbenchWindow workbenchWindow ) { } public void windowClosed ( IWorkbenchWindow workbenchWindow ) { } public void windowDeactivated ( IWorkbenchWindow workbenchWindow ) { } public void windowOpened ( IWorkbenchWindow workbenchWindow ) { } } ; private CommandManager commandManager ; private ContextManager contextManager ; private StatusLineContributionItem modeContributionItem ; private IWorkbenchWindow activeWorkbenchWindow ; private IWorkbenchPage activeWorkbenchPage ; private IActionService activeWorkbenchPageActionService ; private IContextActivationService activeWorkbenchPageContextActivationService ; private IWorkbenchPart activeWorkbenchPart ; private IActionService activeWorkbenchPartActionService ; private IContextActivationService activeWorkbenchPartContextActivationService ; private IActionService actionService ; private IContextActivationService contextActivationService ; public IActionService getActionService ( ) { } public ICommandManager getCommandManager ( ) { } public IContextActivationService getContextActivationService ( ) { } public IContextManager getContextManager ( ) { } public final boolean inContext ( final String commandId ) { } public final boolean press ( KeyStroke keyStroke , Event event ) { final KeySequence modeBeforeKeyStroke = commandManager . getMode ( ) ; final List keyStrokes = new ArrayList ( modeBeforeKeyStroke . getKeyStrokes ( ) ) ; keyStrokes . add ( keyStroke ) ; final KeySequence modeAfterKeyStroke = KeySequence . getInstance ( keyStrokes ) ; final Map matchesByKeySequenceForModeBeforeKeyStroke = commandManager . getMatchesByKeySequenceForMode ( ) ; commandManager . setMode ( modeAfterKeyStroke ) ; modeContributionItem . setText ( ( "carbon" . equals ( SWT . getPlatform ( ) ) ? KeySupport . formatCarbon ( modeAfterKeyStroke ) : modeAfterKeyStroke . format ( ) ) ) ; final Map matchesByKeySequenceForModeAfterKeyStroke = commandManager . getMatchesByKeySequenceForMode ( ) ; boolean consumeKeyStroke = false ; if ( ! ( matchesByKeySequenceForModeAfterKeyStroke . isEmpty ( ) ) ) { consumeKeyStroke = true ; } else { final Match match = ( ( Match ) ( matchesByKeySequenceForModeBeforeKeyStroke . get ( modeAfterKeyStroke ) ) ) ; if ( match != null ) { final String commandId = match . getCommandId ( ) ; final Map actionsById = commandManager . getActionsById ( ) ; IAction action = ( ( IAction ) ( actionsById . get ( commandId ) ) ) ; if ( action != null ) { if ( action . isEnabled ( ) ) { try { action . execute ( event ) ; } catch ( final Exception e ) { } } consumeKeyStroke = true ; } } if ( ( modeBeforeKeyStroke . getKeyStrokes ( ) . size ( ) ) >= 1 ) consumeKeyStroke = true ; commandManager . setMode ( KeySequence . getInstance ( ) ) ; <START_BUG> modeContributionItem . setText ( ( "carbon" . equals ( SWT . getPlatform ( ) ) ? KeySupport . formatCarbon ( modeAfterKeyStroke ) : modeAfterKeyStroke . format ( ) ) ) ; <END_BUG> } updateActiveContextIds ( ) ; return consumeKeyStroke ; } public void updateActiveContextIds ( ) { } public void updateActiveWorkbenchWindowMenuManager ( ) { } void updateActiveCommandIdsAndActiveContextIds ( ) { } private void initializeCommandsAndContexts ( final Display display ) { } private IResourceChangeListener getShowTasksChangeListener ( ) { } private IMarker findProblemToShow ( IResourceChangeEvent event ) { } public void addWindowListener ( IWindowListener l ) { } public void removeWindowListener ( IWindowListener l ) { } protected void fireWindowOpened ( IWorkbenchWindow window ) { } protected void fireWindowClosed ( IWorkbenchWindow window ) { } protected void fireWindowActivated ( IWorkbenchWindow window ) { } protected void fireWindowDeactivated ( IWorkbenchWindow window ) { } private void addAdapters ( ) { } private boolean busyClose ( final boolean force ) { } public boolean saveAllEditors ( boolean confirm ) { } private IWorkbenchWindow busyOpenWorkbenchWindow ( String perspID , IAdaptable input ) throws WorkbenchException { } private void checkUpdates ( String [ ] commandLineArgs ) { } public boolean close ( ) { } public boolean close ( Object returnCode ) { } public boolean close ( Object returnCode , final boolean force ) { } protected WorkbenchActionBuilder createActionBuilder ( IWorkbenchWindow window ) { } private void connectToWorkspace ( ) { } private void disableAutoBuild ( ) { } private void disconnectFromWorkspace ( ) { } private void enableAutoBuild ( ) { } public IWorkbenchWindow getActiveWorkbenchWindow ( ) { } public String [ ] getCommandLineArgs ( ) { } public EditorHistory getEditorHistory ( ) { } public PerspectiveHistory getPerspectiveHistory ( ) { } public IEditorRegistry getEditorRegistry ( ) { } protected int getNewWindowNumber ( ) { } public IPerspectiveRegistry getPerspectiveRegistry ( ) { } public PreferenceManager getPreferenceManager ( ) { } public IPreferenceStore getPreferenceStore ( ) { } public ISharedImages getSharedImages ( ) { } public IMarkerHelpRegistry getMarkerHelpRegistry ( ) { }

Fix:
modeContributionItem . setText ( ( "carbon" . equals ( SWT . getPlatform ( ) ) ? KeySupport . formatCarbon ( KeySequence . getInstance ( ) ) : KeySequence . getInstance ( ) . format ( ) ) ) ;