Buggy code:
public IWorkbenchWindow getActiveWorkbenchWindow ( ) { } public EditorHistory getEditorHistory ( ) { } public IEditorRegistry getEditorRegistry ( ) { } private int getNewWindowNumber ( ) { } public IWorkbenchOperationSupport getOperationSupport ( ) { } public IPerspectiveRegistry getPerspectiveRegistry ( ) { } public PreferenceManager getPreferenceManager ( ) { } public IPreferenceStore getPreferenceStore ( ) { } public ISharedImages getSharedImages ( ) { } WindowManager getWindowManager ( ) { } private File getWorkbenchStateFile ( ) { } public int getWorkbenchWindowCount ( ) { } public IWorkbenchWindow [ ] getWorkbenchWindows ( ) { } public IWorkingSetManager getWorkingSetManager ( ) { } public ILocalWorkingSetManager createLocalWorkingSetManager ( ) { } private boolean init ( ) { } private void initializeCommandResolver ( ) { } private void initializeApplicationColors ( ) { } private void initializeSingleClickOption ( ) { } private void initializeFonts ( ) { } private static void initializeImages ( ) { } private void uninitializeImages ( ) { } private void initializeColors ( ) { } public boolean isClosing ( ) { } private final void initializeDefaultServices ( ) { } public boolean isStarting ( ) { } private WorkbenchWindow newWorkbenchWindow ( ) { } private void forceOpenPerspective ( ) { } void openFirstTimeWindow ( ) { } private void runStartupWithProgress ( final int expectedProgressCount , final Runnable runnable ) { } private void doOpenFirstTimeWindow ( ) { } IStatus restoreState ( ) { } public IWorkbenchWindow openWorkbenchWindow ( IAdaptable input ) throws WorkbenchException { } public IWorkbenchWindow openWorkbenchWindow ( final String perspID , final IAdaptable input ) throws WorkbenchException { } IWorkbenchWindow restoreWorkbenchWindow ( IMemento memento ) throws WorkbenchException { } private XMLMemento recordWorkbenchState ( ) { } public boolean restart ( ) { } private IStatus restoreState ( final IMemento memento ) { } public String [ ] getEarlyActivatedPlugins ( ) { } public String [ ] getDisabledEarlyActivatedPlugins ( ) { } private void startPlugins ( ) { } private int runUI ( ) { } private void runEventLoop ( Window . IExceptionHandler handler , Display display ) { } private IStatus saveState ( IMemento memento ) { } private boolean saveMementoToFile ( XMLMemento memento ) { } public IWorkbenchPage showPerspective ( String perspectiveId , IWorkbenchWindow window ) throws WorkbenchException { } public IWorkbenchPage showPerspective ( String perspectiveId , IWorkbenchWindow window , IAdaptable input ) throws WorkbenchException { } private void shutdown ( ) { } private void cancelEarlyStartup ( ) { } public IDecoratorManager getDecoratorManager ( ) { } private WorkbenchWindow getActivatedWindow ( ) { } void setActivatedWindow ( WorkbenchWindow window ) { } WorkbenchConfigurer getWorkbenchConfigurer ( ) { } WorkbenchAdvisor getAdvisor ( ) { } public Display getDisplay ( ) { } public String getDefaultPerspectiveId ( ) { } public IAdaptable getDefaultPageInput ( ) { } public String getMainPreferencePageId ( ) { } public IElementFactory getElementFactory ( String factoryId ) { } public IProgressService getProgressService ( ) { } private WorkbenchActivitySupport workbenchActivitySupport ; private WorkbenchCommandSupport workbenchCommandSupport ; private WorkbenchContextSupport workbenchContextSupport ; private BindingManager bindingManager ; private CommandManager commandManager ; private ContextManager contextManager ; public IWorkbenchActivitySupport getActivitySupport ( ) { } public IWorkbenchCommandSupport getCommandSupport ( ) { } public IWorkbenchContextSupport getContextSupport ( ) { } private final IWindowListener windowListener = new IWindowListener ( ) { public void windowActivated ( IWorkbenchWindow window ) { } public void windowClosed ( IWorkbenchWindow window ) { } public void windowDeactivated ( IWorkbenchWindow window ) { } public void windowOpened ( IWorkbenchWindow window ) { } } ; private final IBindingManagerListener bindingManagerListener = new IBindingManagerListener ( ) { public void bindingManagerChanged ( BindingManagerEvent bindingManagerEvent ) { } } ; private ActionSetSourceProvider actionSetSourceProvider ; private WorkbenchWindow activeWorkbenchWindow = null ; private void updateActiveWorkbenchWindowMenuManager ( boolean textOnly ) { } private ActivityPersistanceHelper activityHelper ; public IIntroManager getIntroManager ( ) { } WorkbenchIntroManager getWorkbenchIntroManager ( ) { } private WorkbenchIntroManager introManager ; public IntroDescriptor getIntroDescriptor ( ) { } public void setIntroDescriptor ( IntroDescriptor descriptor ) { } private IntroDescriptor introDescriptor ; private IExtensionTracker tracker ; private IRegistryChangeListener startupRegistryListener = new IRegistryChangeListener ( ) { public void registryChanged ( IRegistryChangeEvent event ) { } } ; private String factoryID ; public IThemeManager getThemeManager ( ) { } public boolean isRunning ( ) { } public String getPresentationId ( ) { if ( ( factoryID ) != null ) { return factoryID ; } factoryID = PrefUtil . getAPIPreferenceStore ( ) . getString ( PRESENTATION_FACTORY_ID ) ; if ( ( ( factoryID ) == null ) || ( factoryID . equals ( "" ) ) ) { <START_BUG> factoryID = "org.eclipse.ui.presentations.default" ; <END_BUG> } return factoryID ; } public final void largeUpdateStart ( ) { } public final void largeUpdateEnd ( ) { } public IExtensionTracker getExtensionTracker ( ) { } private void addStartupRegistryListener ( ) { } public IWorkbenchHelpSystem getHelpSystem ( ) { } public IWorkbenchBrowserSupport getBrowserSupport ( ) { } public IViewRegistry getViewRegistry ( ) { } public IWizardRegistry getNewWizardRegistry ( ) { } public IWizardRegistry getImportWizardRegistry ( ) { } public IWizardRegistry getExportWizardRegistry ( ) { } public final Object getAdapter ( final Class key ) { } private void doRestoreState ( final IMemento memento , final MultiStatus status ) { } private void openWindowsAfterRestore ( ) { } public final Object getService ( final Class key ) { } public final boolean hasService ( final Class key ) { } public final void registerService ( final Class api , final Object service ) { } private MenuSourceProvider menuSourceProvider ; public final void addShowingMenus ( final Set menuIds , final ISelection localSelection , final ISelection localEditorInput ) { } public final void removeShowingMenus ( final Set menuIds , final ISelection localSelection , final ISelection localEditorInput ) { } public boolean saveAll ( IShellProvider shellProvider , IRunnableContext runnableContext , ISaveableFilter filter , boolean confirm ) { } private List getFilteredSaveables ( ISaveableFilter filter , Saveable [ ] saveables ) { } private boolean matchesFilter ( ISaveableFilter filter , Saveable saveable , IWorkbenchPart [ ] parts ) { } }

Fix:
factoryID = IWorkbenchConstants . DEFAULT_PRESENTATION_ID ;