Buggy code:
public IWorkbenchPart getActivePart ( ) { } public IWorkbenchPartReference getActivePartReference ( ) { } public Perspective getActivePerspective ( ) { } public Composite getClientComposite ( ) { } protected EditorManager getEditorManager ( ) { } public PerspectiveHelper getPerspectivePresentation ( ) { } public EditorAreaHelper getEditorPresentation ( ) { } public IEditorPart [ ] getEditors ( ) { } public IEditorPart [ ] getDirtyEditors ( ) { } public IEditorPart findEditor ( IEditorInput input ) { } public IEditorReference [ ] getEditorReferences ( ) { } public IViewReference [ ] getFastViews ( ) { } public IAdaptable getInput ( ) { } public String getLabel ( ) { } public ArrayList getNewWizardActionIds ( ) { } public IPerspectiveDescriptor getPerspective ( ) { } public ArrayList getPerspectiveActionIds ( ) { } public ISelection getSelection ( ) { } public ISelection getSelection ( String partId ) { } public ArrayList getShowInPartIds ( ) { } public void performedShowIn ( String partId ) { } public void sortShowInPartIds ( ArrayList partIds ) { } public ArrayList getShowViewActionIds ( ) { } protected WorkbenchWindow getUnprotectedWindow ( ) { } public ViewFactory getViewFactory ( ) { } public IViewReference [ ] getViewReferences ( ) { } public IViewPart [ ] getViews ( ) { } public IWorkbenchWindow getWorkbenchWindow ( ) { } public IWorkingSet getWorkingSet ( ) { } public void hideActionSet ( String actionSetID ) { } public void hideView ( IViewReference ref ) { } void refreshActiveView ( ) { } public void hideView ( IViewPart view ) { } private void hideView ( Perspective persp , IViewReference ref ) { } private void init ( WorkbenchWindow w , String layoutID , IAdaptable input ) throws WorkbenchException { } public boolean isPartVisible ( IWorkbenchPart part ) { } public boolean isEditorAreaVisible ( ) { } public boolean isFastView ( IViewReference ref ) { } public boolean isFixedLayout ( ) { } public IViewReference getActiveFastView ( ) { } protected boolean isSaveNeeded ( ) { } public boolean isZoomed ( ) { } private boolean needToZoomOut ( IWorkbenchPart part ) { } protected void onActivate ( ) { } protected void onDeactivate ( ) { } public void reuseEditor ( IReusableEditor editor , IEditorInput input ) { } public IEditorPart openEditor ( IEditorInput input , String editorID ) throws PartInitException { } public IEditorPart openEditor ( final IEditorInput input , final String editorID , final boolean activate ) throws PartInitException { } private IEditorPart busyOpenEditor ( IEditorInput input , String editorID , boolean activate ) throws PartInitException { } private void showEditor ( boolean activate , IEditorPart editor ) { } public boolean isEditorPinned ( IEditorPart editor ) { } private boolean partChangeAffectsZoom ( IWorkbenchPartReference ref ) { } public void removeFastView ( IViewReference ref ) { } public void removePartListener ( IPartListener l ) { } public void removePartListener ( IPartListener2 l ) { } public void removePropertyChangeListener ( IPropertyChangeListener listener ) { } public void removeSelectionListener ( ISelectionListener listener ) { } public void removeSelectionListener ( String partId , ISelectionListener listener ) { } public void removePostSelectionListener ( ISelectionListener listener ) { } public void removePostSelectionListener ( String partId , ISelectionListener listener ) { } public void requestActivation ( IWorkbenchPart part ) { } public void resetPerspective ( ) { } public IStatus restoreState ( IMemento memento , IPerspectiveDescriptor activeDescritor ) { } public boolean saveAllEditors ( boolean confirm ) { } protected boolean savePart ( ISaveablePart saveable , IWorkbenchPart part , boolean confirm ) { } public boolean saveEditor ( IEditorPart editor , boolean confirm ) { } public void savePerspective ( ) { } public void savePerspectiveAs ( IPerspectiveDescriptor newDesc ) { } public IStatus saveState ( IMemento memento ) { } private void setActivePart ( IWorkbenchPart newPart ) { } public void setEditorAreaVisible ( boolean showEditorArea ) { } private void setPerspective ( Perspective newPersp ) { } private void updateVisibility ( Perspective oldPersp , Perspective newPersp ) { } private void activateOldPart ( Perspective newPersp ) { } public void setPerspective ( final IPerspectiveDescriptor desc ) { } protected void resetToolBarLayout ( ) { <START_BUG> window . getCoolBarManager ( ) . resetLayout ( ) ; <END_BUG> } public void setWorkingSet ( IWorkingSet newWorkingSet ) { } public void showActionSet ( String actionSetID ) { } public IViewPart showView ( String viewID ) throws PartInitException { } public IViewPart showView ( final String viewID , final String secondaryID , final int mode ) throws PartInitException { } private boolean certifyMode ( int mode ) { } public void hideFastView ( ) { } public void toggleFastView ( IViewReference ref ) { } public void toggleZoom ( IWorkbenchPartReference ref ) { } public void updateActionBars ( ) { } private void updateTabList ( IWorkbenchPart part ) { } public void updateTitle ( IViewReference ref ) { } void zoomOut ( ) { } private void zoomOutIfNecessary ( IWorkbenchPart part ) { } public int getEditorReuseThreshold ( ) { } public void setEditorReuseThreshold ( int openEditors ) { } public IEditorReference [ ] getSortedEditors ( ) { } protected IPerspectiveDescriptor [ ] getOpenedPerspectives ( ) { } protected IPerspectiveDescriptor [ ] getSortedPerspectives ( ) { } public IWorkbenchPartReference [ ] getSortedParts ( ) { } public IWorkbenchPartReference getReference ( IWorkbenchPart part ) { } private class ActivationList { List parts = new ArrayList ( ) ; void setActive ( IWorkbenchPart part ) { } void setActive ( IWorkbenchPartReference ref ) { } void add ( IWorkbenchPartReference ref ) { } IWorkbenchPart getActive ( ) { } IWorkbenchPart getPreviouslyActive ( ) { } private IWorkbenchPart getActive ( int start ) { } int indexOf ( IWorkbenchPart part ) { } boolean remove ( IWorkbenchPartReference ref ) { } private IEditorReference [ ] getEditors ( ) { } private IWorkbenchPartReference [ ] getParts ( ) { } IEditorPart getTopEditor ( ) { } } private class PerspectiveList { private List openedList ; private List usedList ; private Perspective active ;

Fix:
window . getCoolBarManager ( ) . resetItemOrder ( ) ;