Buggy code:
public class WorkbenchActionBuilder { private static final String saveActionDefId = "org.eclipse.ui.file.save" ; private static final String saveAllActionDefId = "org.eclipse.ui.file.saveAll" ; private static final String closeActionDefId = "org.eclipse.ui.file.close" ; private static final String closeAllActionDefId = "org.eclipse.ui.file.closeAll" ; private static final String closeAllSavedActionDefId = "org.eclipse.ui.file.closeAllSaved" ; private static final String deleteActionDefId = "org.eclipse.ui.edit.delete" ; private static final String showViewMenuActionDefId = "org.eclipse.ui.window.showViewMenu" ; private static final String showPartPaneMenuActionDefId = "org.eclipse.ui.window.showSystemMenu" ; private static final String nextEditorActionDefId = "org.eclipse.ui.window.nextEditor" ; private static final String prevEditorActionDefId = "org.eclipse.ui.window.previousEditor" ; private static final String nextPartActionDefId = "org.eclipse.ui.window.nextView" ; private static final String prevPartActionDefId = "org.eclipse.ui.window.previousView" ; private static final String nextPerspectiveActionDefId = "org.eclipse.ui.window.nextPerspective" ; private static final String prevPerspectiveActionDefId = "org.eclipse.ui.window.previousPerspective" ; private static final String activateEditorActionDefId = "org.eclipse.ui.window.activateEditor" ; private static final String workbenchEditorsActionDefId = "org.eclipse.ui.window.switchToEditor" ; private static final String buildAllActionDefId = "org.eclipse.ui.project.buildAll" ; private static final String rebuildAllActionDefId = "org.eclipse.ui.project.rebuildAll" ; private static final String backwardHistoryActionDefId = "org.eclipse.ui.navigate.backwardHistory" ; private static final String forwardHistoryActionDefId = "org.eclipse.ui.navigate.forwardHistory" ; private final WorkbenchWindow window ; private final IPropertyChangeListener propertyChangeListener = new IPropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent event ) { } } ; private NewWizardAction newWizardAction ; private NewWizardDropDownAction newWizardDropDownAction ; private NewWizardMenu newWizardMenu ; private CloseEditorAction closeAction ; private CloseAllAction closeAllAction ; private CloseAllSavedAction closeAllSavedAction ; private ImportResourcesAction importResourcesAction ; private ExportResourcesAction exportResourcesAction ; private GlobalBuildAction rebuildAllAction ; private GlobalBuildAction buildAllAction ; private SaveAction saveAction ; private SaveAllAction saveAllAction ; private AboutAction aboutAction ; private OpenPreferencesAction openPreferencesAction ; private QuickStartAction quickStartAction ; private TipsAndTricksAction tipsAndTricksAction ; private SaveAsAction saveAsAction ; private ToggleEditorsVisibilityAction hideShowEditorAction ; private SavePerspectiveAction savePerspectiveAction ; private ResetPerspectiveAction resetPerspectiveAction ; private EditActionSetsAction editActionSetAction ; private ClosePerspectiveAction closePerspAction ; private LockToolBarAction lockToolBarAction ; private CloseAllPerspectivesAction closeAllPerspsAction ; private PinEditorAction pinEditorAction ; private ShowViewMenuAction showViewMenuAction ; private ShowPartPaneMenuAction showPartPaneMenuAction ; private CyclePartAction nextPartAction ; private CyclePartAction prevPartAction ; private CycleEditorAction nextEditorAction ; private CycleEditorAction prevEditorAction ; private CyclePerspectiveAction nextPerspectiveAction ; private CyclePerspectiveAction prevPerspectiveAction ; private ActivateEditorAction activateEditorAction ; private WorkbenchEditorsAction workbenchEditorsAction ; private RetargetAction undoAction ; private RetargetAction redoAction ; private RetargetAction cutAction ; private RetargetAction copyAction ; private RetargetAction pasteAction ; private RetargetAction deleteAction ; private RetargetAction selectAllAction ; private RetargetAction findAction ; private RetargetAction addBookmarkAction ; private RetargetAction addTaskAction ; private RetargetAction printAction ; private RetargetAction revertAction ; private RetargetAction refreshAction ; private RetargetAction propertiesAction ; private RetargetAction moveAction ; private RetargetAction renameAction ; private RetargetAction goIntoAction ; private RetargetAction backAction ; private RetargetAction forwardAction ; private RetargetAction upAction ; private RetargetAction nextAction ; private RetargetAction previousAction ; private RetargetAction buildProjectAction ; private RetargetAction rebuildProjectAction ; private RetargetAction openProjectAction ; private RetargetAction closeProjectAction ; private NavigationHistoryAction backwardHistoryAction ; private NavigationHistoryAction forwardHistoryAction ; public WorkbenchActionBuilder ( IWorkbenchWindow window ) { } protected WorkbenchWindow getWindow ( ) { } public void buildActions ( ) { } private void hookListeners ( ) { } private void enableActions ( boolean value ) { } private void fillMenuBar ( ) { } private MenuManager createFileMenu ( ) { } private MenuManager createEditMenu ( ) { } private MenuManager createNavigateMenu ( ) { } private MenuManager createProjectMenu ( ) { } private MenuManager createWindowMenu ( ) { } private void addPerspectiveActions ( MenuManager menu ) { } private void addKeyboardShortcuts ( MenuManager menu ) { } private MenuManager createHelpMenu ( ) { } private void fillToolBar ( ) { CoolBarManager cBarMgr = getWindow ( ) . getCoolBarManager ( ) ; CoolBarContributionItem coolBarItem = new CoolBarContributionItem ( cBarMgr , IWorkbenchActionConstants . TOOLBAR_FILE ) ; cBarMgr . add ( coolBarItem ) ; coolBarItem . setVisible ( true ) ; IContributionManager toolsManager = ( ( IContributionManager ) ( coolBarItem . getToolBarManager ( ) ) ) ; cBarMgr . addToMenu ( new org . eclipse . jface . action . ActionContributionItem ( lockToolBarAction ) ) ; cBarMgr . addToMenu ( new org . eclipse . jface . action . ActionContributionItem ( editActionSetAction ) ) ; CoolItemToolBarManager tBarMgr = ( ( CoolItemToolBarManager ) ( toolsManager ) ) ; String id = IWorkbenchActionConstants . TOOLBAR_FILE ; tBarMgr . addGroup ( NEW_GROUP , id ) ; tBarMgr . add ( newWizardDropDownAction ) ; tBarMgr . addGroupMarker ( NEW_EXT , id ) ; <START_BUG> tBarMgr . addGroup ( SAVE_GROUP , id ) ; <END_BUG> tBarMgr . add ( saveAction ) ; tBarMgr . add ( saveAsAction ) ; tBarMgr . addGroupMarker ( SAVE_EXT , id ) ; tBarMgr . add ( printAction ) ; tBarMgr . addGroup ( BUILD_GROUP , id ) ; tBarMgr . addGroupMarker ( BUILD_EXT , id ) ; tBarMgr . addGroup ( MB_ADDITIONS , id ) ; if ( ! ( ResourcesPlugin . getWorkspace ( ) . isAutoBuilding ( ) ) ) { addManualIncrementalBuildToolAction ( ) ; } addHistoryNavigateActions ( ) ; IPreferenceStore store = WorkbenchPlugin . getDefault ( ) . getPreferenceStore ( ) ; if ( store . getBoolean ( REUSE_EDITORS_BOOLEAN ) ) { addPinEditorAction ( ) ; } } private void fillShortcutBar ( ) { } public void dispose ( ) { } public boolean isContainerMenu ( String menuId ) { } public boolean isWorkbenchCoolItemId ( String id ) { } private void makeActions ( ) { } private RetargetAction createGlobalAction ( String id , String actionDefPrefix , boolean labelRetarget ) { } private RetargetAction createGlobalAction ( String id , String messageId , String actionDefPrefix , String actionDefSuffix , boolean labelRetarget ) { } private void handlePropertyChange ( PropertyChangeEvent event ) { } private void addHistoryNavigateActions ( ) { } private void addPinEditorAction ( ) { } private void removePinEditorAction ( ) { } private void addManualIncrementalBuildAction ( ) { } private void addManualIncrementalBuildToolAction ( ) { } protected void removeManualIncrementalBuildAction ( ) { } protected void removeManualIncrementalBuildToolAction ( ) { } }

Fix:
tBarMgr . addGroupMarker ( SAVE_GROUP , id ) ;