Buggy code:
public final class WorkbenchWindowConfigurer implements IWorkbenchWindowConfigurer { private WorkbenchWindow window ; private int shellStyle = ( SWT . SHELL_TRIM ) | ( Window . getDefaultOrientation ( ) ) ; private String windowTitle ; private boolean showFastViewBars = false ; private boolean showPerspectiveBar = false ; private boolean showStatusLine = true ; private boolean showToolBar = true ; private boolean showMenuBar = true ; private boolean showProgressIndicator = false ; private Map extraData = new HashMap ( 1 ) ; private ArrayList transferTypes = new ArrayList ( 3 ) ; private DropTargetListener dropTargetListener = null ; private WorkbenchWindowConfigurer . WindowActionBarConfigurer actionBarConfigurer = null ; private Point initialSize = new Point ( 1024 , 768 ) ; private AbstractPresentationFactory presentationFactory = null ; class WindowActionBarConfigurer implements IActionBarConfigurer2 { private IActionBarConfigurer2 proxy ; public void setProxy ( IActionBarConfigurer2 proxy ) { } public IWorkbenchWindowConfigurer getWindowConfigurer ( ) { } boolean containsCoolItem ( String id ) { } public IStatusLineManager getStatusLineManager ( ) { } public IMenuManager getMenuManager ( ) { } public ICoolBarManager getCoolBarManager ( ) { } public void registerGlobalAction ( IAction action ) { } private IActionBarPresentationFactory getActionBarPresentationFactory ( ) { } public IToolBarManager createToolBarManager ( ) { } public IToolBarContributionItem createToolBarContributionItem ( IToolBarManager toolBarManager , String id ) { } } WorkbenchWindowConfigurer ( WorkbenchWindow window ) { } public IWorkbenchWindow getWindow ( ) { } public IWorkbenchConfigurer getWorkbenchConfigurer ( ) { } String basicGetTitle ( ) { } public String getTitle ( ) { } public void setTitle ( String title ) { if ( title == null ) { throw new IllegalArgumentException ( ) ; } windowTitle = title ; Shell shell = window . getShell ( ) ; if ( ( shell != null ) && ( ! ( shell . isDisposed ( ) ) ) ) { <START_BUG> shell . setText ( TextProcessor . process ( title , "-" ) ) ; <END_BUG> } } public boolean getShowMenuBar ( ) { } public void setShowMenuBar ( boolean show ) { } public boolean getShowCoolBar ( ) { } public void setShowCoolBar ( boolean show ) { } public boolean getShowFastViewBars ( ) { } public void setShowFastViewBars ( boolean show ) { } public boolean getShowPerspectiveBar ( ) { } public void setShowPerspectiveBar ( boolean show ) { } public boolean getShowStatusLine ( ) { } public void setShowStatusLine ( boolean show ) { } public boolean getShowProgressIndicator ( ) { } public void setShowProgressIndicator ( boolean show ) { } public Object getData ( String key ) { } public void setData ( String key , Object data ) { } public void addEditorAreaTransfer ( Transfer tranfer ) { } public void configureEditorAreaDropListener ( DropTargetListener dropTargetListener ) { } Transfer [ ] getTransfers ( ) { } DropTargetListener getDropTargetListener ( ) { } public IActionBarConfigurer getActionBarConfigurer ( ) { } boolean containsCoolItem ( String id ) { } public int getShellStyle ( ) { } public void setShellStyle ( int shellStyle ) { } public Point getInitialSize ( ) { } public void setInitialSize ( Point size ) { } public AbstractPresentationFactory getPresentationFactory ( ) { } private AbstractPresentationFactory createDefaultPresentationFactory ( ) { } public void setPresentationFactory ( AbstractPresentationFactory factory ) { } public void createDefaultContents ( Shell shell ) { } public Menu createMenuBar ( ) { } public Control createCoolBarControl ( Composite parent ) { } public Control createStatusLineControl ( Composite parent ) { } public Control createPageComposite ( Composite parent ) { } public IStatus saveState ( IMemento memento ) { } }

Fix:
shell . setText ( TextProcessor . process ( title , TEXT_DELIMITERS ) ) ;