Buggy code:
public void dispose ( ) { } private void disposePerspective ( Perspective persp , boolean notify ) { } public INavigationHistory getNavigationHistory ( ) { } public boolean editActionSets ( ) { } public Perspective findPerspective ( IPerspectiveDescriptor desc ) { } public IViewPart findView ( String id ) { } public IViewReference findViewReference ( String viewId ) { } public IViewReference findViewReference ( String viewId , String secondaryId ) { } private void firePropertyChange ( String changeId , Object oldValue , Object newValue ) { } public IActionBars getActionBars ( ) { } public IActionSetDescriptor [ ] getActionSets ( ) { } public IEditorPart getActiveEditor ( ) { } public IEditorReference getActiveEditorReference ( ) { } public IWorkbenchPart getActivePart ( ) { } public IWorkbenchPartReference getActivePartReference ( ) { } public Perspective getActivePerspective ( ) { } public Composite getClientComposite ( ) { } public EditorManager getEditorManager ( ) { } public PerspectiveHelper getPerspectivePresentation ( ) { } public EditorAreaHelper getEditorPresentation ( ) { } public IEditorPart [ ] getEditors ( ) { } public IEditorPart [ ] getDirtyEditors ( ) { } public ISaveablePart [ ] getDirtyParts ( ) { } public IEditorPart findEditor ( IEditorInput input ) { } public IEditorReference [ ] findEditors ( IEditorInput input , String editorId , int matchFlags ) { } public IEditorReference [ ] getEditorReferences ( ) { } public IViewReference [ ] getFastViews ( ) { } public IAdaptable getInput ( ) { } public String getLabel ( ) { } public IPerspectiveDescriptor getPerspective ( ) { } public ISelection getSelection ( ) { } public ISelection getSelection ( String partId ) { } public ArrayList getShowInPartIds ( ) { } public void performedShowIn ( String partId ) { } public void sortShowInPartIds ( ArrayList partIds ) { } public ViewFactory getViewFactory ( ) { } public IViewReference [ ] getViewReferences ( ) { } public IViewPart [ ] getViews ( ) { } IViewPart [ ] getViews ( Perspective persp , boolean restore ) { } 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 init ( WorkbenchWindow w , String layoutID , IAdaptable input , boolean openExtras ) throws WorkbenchException { } public void openPerspectiveExtras ( ) { } public boolean isPartVisible ( IWorkbenchPart part ) { } public boolean isEditorAreaVisible ( ) { } public boolean isFastView ( IViewReference ref ) { } public boolean isCloseable ( IViewReference ref ) { } public boolean isMoveable ( IViewReference ref ) { } public boolean isFixedLayout ( ) { } public IViewReference getActiveFastView ( ) { } protected boolean isSaveNeeded ( ) { } public boolean isPageZoomed ( ) { if ( Perspective . useNewMinMax ( getActivePerspective ( ) ) ) { boolean zoomed = false ; Perspective persp = getActivePerspective ( ) ; if ( persp != null ) { LayoutPart [ ] kids = persp . getPresentation ( ) . getLayout ( ) . getChildren ( ) ; for ( int i = 0 ; ( i < ( kids . length ) ) && ( ! zoomed ) ; i ++ ) { if ( ( kids [ i ] ) instanceof ViewStack ) { zoomed = ( ( ( ViewStack ) ( kids [ i ] ) ) . getState ( ) ) == ( IStackPresentationSite . STATE_MAXIMIZED ) ; } else if ( ( kids [ i ] ) instanceof EditorSashContainer ) { LayoutPart [ ] editors = ( ( EditorSashContainer ) ( kids [ i ] ) ) . getChildren ( ) ; for ( int j = 0 ; ( j < ( editors . length ) ) && ( ! zoomed ) ; j ++ ) { if ( ( editors [ j ] ) instanceof EditorStack ) { <START_BUG> zoomed = ( ( ( EditorStack ) ( kids [ i ] ) ) . getState ( ) ) == ( IStackPresentationSite . STATE_MAXIMIZED ) ; <END_BUG> } } } } } return zoomed ; } return isZoomed ( ) ; } public boolean isZoomed ( ) { } 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 ( IEditorInput input , String editorID , boolean activate ) throws PartInitException { } public IEditorPart openEditor ( final IEditorInput input , final String editorID , final boolean activate , final int matchFlags ) throws PartInitException { } public IEditorPart openEditor ( final IEditorInput input , final String editorID , final boolean activate , final int matchFlags , final IMemento editorState ) throws PartInitException { } private IEditorPart busyOpenEditor ( IEditorInput input , String editorID , boolean activate , int matchFlags , IMemento editorState ) throws PartInitException { } private IEditorPart busyOpenEditorBatched ( IEditorInput input , String editorID , boolean activate , int matchFlags , IMemento editorState ) throws PartInitException { } public void openEmptyTab ( ) { } 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 ) { }

Fix:
zoomed = ( ( ( EditorStack ) ( editors [ j ] ) ) . getState ( ) ) == ( IStackPresentationSite . STATE_MAXIMIZED ) ;