Buggy code:
public abstract class EditorWorkbook extends LayoutPart implements IPropertyListener , ILayoutContainer , IWorkbenchDragSource { private static final int INACTIVE = 0 ; private static final int ACTIVE_FOCUS = 1 ; private static final int ACTIVE_NOFOCUS = 2 ; private EditorArea editorArea ; private List editors = new ArrayList ( ) ; private EditorPane visibleEditor ; protected Composite parent ; private int activeState = EditorWorkbook . INACTIVE ; private boolean isZoomed = false ; private Map mapPartToDragMonitor = new HashMap ( ) ; public static EditorWorkbook newEditorWorkbook ( EditorArea editorArea ) { } protected EditorWorkbook ( EditorArea editorArea ) { } public void add ( LayoutPart part ) { } public boolean allowsBorder ( ) { } public void becomeActiveWorkbook ( boolean hasFocus ) { } public void createControl ( Composite parent ) { } protected abstract void createPresentation ( Composite parent ) { } public abstract void showPaneMenu ( ) { } private void createPage ( EditorPane editorPane ) { } protected abstract Object createItem ( EditorPane editorPane ) { } public void dispose ( ) { } protected abstract void disposePresentation ( ) { } protected void doZoom ( ) { } public void drawGradient ( ) { } protected abstract void drawGradient ( Color fgColor , Color [ ] bgColors , int [ ] bgPercents , boolean activeState ) { } private void enableDrop ( LayoutPart part ) { } public Rectangle getBounds ( ) { } public LayoutPart [ ] getChildren ( ) { } public abstract Control getControl ( ) { } public EditorArea getEditorArea ( ) { } public int getItemCount ( ) { } public Composite getParent ( ) { } public abstract Control [ ] getTabList ( ) { } public abstract void showVisibleEditor ( ) { } public EditorPane getVisibleEditor ( ) { } public boolean isActiveWorkbook ( ) { } public boolean isDragAllowed ( Point p ) { } public abstract boolean isDragAllowed ( EditorPane pane , Point p ) { } public void openTracker ( LayoutPart part ) { } public void propertyChanged ( Object source , int property ) { } public void remove ( LayoutPart child ) { } protected abstract void disposeItem ( EditorPane editorPane ) { } public void removeAll ( ) { } protected abstract void disposeAllItems ( ) { } private void removeListeners ( EditorPane editor ) { } public abstract void reorderTab ( EditorPane pane , int x , int y ) { } public abstract void reorderTab ( EditorPane pane , int newIndex ) { } public void replace ( LayoutPart oldPart , LayoutPart newPart ) { } private void setActiveState ( int state ) { } public void setBounds ( Rectangle r ) { } public void setContainer ( ILayoutContainer container ) { } protected abstract void setControlSize ( ) { } public void setVisibleEditor ( EditorPane comp ) { } protected abstract void setVisibleItem ( EditorPane editorPane ) { } public void tabFocusHide ( ) { } public void tabFocusShow ( boolean hasFocus ) { } public LayoutPart targetPartFor ( IWorkbenchDragSource dragSource ) { } public void updateEditorTab ( IEditorPart part ) { } public void updateEditorTab ( IEditorReference ref ) { } protected abstract void updateItem ( EditorPane editorPane ) { } public void zoomIn ( ) { } public void zoomOut ( ) { } public EditorPane [ ] getEditors ( ) { } protected List getEditorList ( ) { } public int getType ( ) { <START_BUG> return ( EDITOR ) | ( VIEW ) ; <END_BUG> } public static boolean usingNewDropDown ( ) { } }

Fix:
return EDITOR ;