Buggy code:
void alertCheck ( String title , String text , String check , final int [ ] checkValue ) { } boolean invalidCert ( final Browser browser , String message , String [ ] problems , final nsIX509Cert cert ) { Shell parent = getParent ( ) ; Display display = parent . getDisplay ( ) ; Monitor monitor = parent . getMonitor ( ) ; int maxWidth = ( ( monitor . getBounds ( ) . width ) * 2 ) // 3 ; final Shell shell = new Shell ( parent , ( ( SWT . DIALOG_TRIM ) | ( SWT . APPLICATION_MODAL ) ) ) ; shell . setText ( Compatibility . getMessage ( "SWT_InvalidCert_Title" ) ) ; shell . setLayout ( new GridLayout ( ) ) ; Composite messageComposite = new Composite ( shell , SWT . NONE ) ; messageComposite . setLayout ( new GridLayout ( 2 , false ) ) ; Image image = display . getSystemImage ( ICON_WARNING ) ; new Label ( messageComposite , SWT . NONE ) . setImage ( image ) ; Text text = new Text ( messageComposite , SWT . WRAP ) ; text . setLayoutData ( new GridData ( SWT . FILL , SWT . CENTER , true , false ) ) ; text . setEditable ( false ) ; text . setBackground ( shell . getBackground ( ) ) ; text . setText ( message ) ; int width = messageComposite . computeSize ( DEFAULT , DEFAULT ) . x ; GridData data = new GridData ( ) ; data . widthHint = Math . min ( width , maxWidth ) ; data . horizontalAlignment = GridData . FILL ; data . grabExcessHorizontalSpace = true ; messageComposite . setLayoutData ( data ) ; StyledText problemsText = new StyledText ( shell , SWT . WRAP ) ; problemsText . setMargins ( 30 , 0 , 30 , 0 ) ; problemsText . setEditable ( false ) ; problemsText . setBackground ( shell . getBackground ( ) ) ; for ( int i = 0 ; i < ( problems . length ) ; i ++ ) { problemsText . append ( ( ( problems [ i ] ) + '\n' ) ) ; } StyleRange style = new StyleRange ( ) ; style . metrics = new GlyphMetrics ( 0 , 0 , 30 ) ; Bullet bullet0 = new Bullet ( style ) ; problemsText . setLineBullet ( 0 , problems . length , bullet0 ) ; width = problemsText . computeSize ( DEFAULT , DEFAULT ) . x ; data = new GridData ( ) ; data . widthHint = Math . min ( width , maxWidth ) ; data . horizontalAlignment = GridData . FILL ; data . grabExcessHorizontalSpace = true ; problemsText . setLayoutData ( data ) ; text = new Text ( shell , SWT . SINGLE ) ; text . setEditable ( false ) ; text . setBackground ( shell . getBackground ( ) ) ; text . setText ( Compatibility . getMessage ( "SWT_InvalidCert_Connect" ) ) ; new Label ( shell , SWT . NONE ) ; final Browser localBrowser = new Browser ( shell , browser . getStyle ( ) ) ; data = new GridData ( ) ; data . exclude = true ; localBrowser . setLayoutData ( data ) ; Composite buttonsComposite = new Composite ( shell , SWT . NONE ) ; buttonsComposite . setLayout ( new GridLayout ( 3 , true ) ) ; buttonsComposite . setLayoutData ( new GridData ( SWT . CENTER , SWT . CENTER , false , false ) ) ; Button viewCertButton = new Button ( buttonsComposite , SWT . PUSH ) ; viewCertButton . setLayoutData ( new GridData ( SWT . FILL , SWT . FILL , false , false ) ) ; <START_BUG> viewCertButton . setText ( Compatibility . getMessage ( "View<seq2seq4repair_space>Certificate" ) ) ; <END_BUG> viewCertButton . addListener ( Selection , new Listener ( ) { public void handleEvent ( Event event ) { int [ ] result = new int [ 1 ] ; int rc = XPCOM . NS_GetServiceManager ( result ) ; if ( rc != ( XPCOM . NS_OK ) ) Mozilla . error ( rc ) ; if ( ( result [ 0 ] ) == 0 ) Mozilla . error ( NS_NOINTERFACE ) ; nsIServiceManager serviceManager = new nsIServiceManager ( result [ 0 ] ) ; result [ 0 ] = 0 ; byte [ ] aContractID = MozillaDelegate . wcsToMbcs ( null , NS_CERTIFICATEDIALOGS_CONTRACTID , true ) ; rc = serviceManager . GetServiceByContractID ( aContractID , NS_ICERTIFICATEDIALOGS_IID , result ) ; if ( rc != ( XPCOM . NS_OK ) ) Mozilla . error ( rc ) ; if ( ( result [ 0 ] ) == 0 ) Mozilla . error ( NS_NOINTERFACE ) ; serviceManager . Release ( ) ; nsICertificateDialogs dialogs = new nsICertificateDialogs ( result [ 0 ] ) ; result [ 0 ] = 0 ; Runnable runnable = new Runnable ( ) { public void run ( ) { browser . getDisplay ( ) . timerExec ( 1000 , this ) ; } } ; runnable . run ( ) ; rc = ( ( Mozilla ) ( localBrowser . webBrowser ) ) . webBrowser . GetContentDOMWindow ( result ) ; if ( rc != ( XPCOM . NS_OK ) ) Mozilla . error ( rc ) ; if ( ( result [ 0 ] ) == 0 ) Mozilla . error ( NS_NOINTERFACE ) ; nsIDOMWindow window = new nsIDOMWindow ( result [ 0 ] ) ; result [ 0 ] = 0 ; rc = dialogs . ViewCert ( window . getAddress ( ) , cert . getAddress ( ) ) ; browser . getDisplay ( ) . timerExec ( ( - 1 ) , runnable ) ; window . Release ( ) ; dialogs . Release ( ) ; }

Fix:
viewCertButton . setText ( Compatibility . getMessage ( "SWT_ViewCertificate" ) ) ;