Changeset 145

Show
Ignore:
Timestamp:
02/15/07 14:31:07 (2 years ago)
Author:
jlee
Message:

Display an error when the help browser cannot be displayed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/org/thestaticvoid/iriverter/ConverterUI.java

    r143 r145  
    538538                 
    539539                if (e.getSource() == contents) 
    540                         new HelpBrowser("file://" + ConverterOptions.CONF_DIR + "/doc/index.html"); 
     540                        try { 
     541                                new HelpBrowser("file://" + ConverterOptions.CONF_DIR + "/doc/index.html"); 
     542                        } catch (Exception ex) { 
     543                                MessageBox messageBox = new MessageBox(new Shell(Display.getDefault()), SWT.ICON_ERROR | SWT.OK); 
     544                                messageBox.setText("Unable to Load Browser"); 
     545                                messageBox.setMessage("iriverter was unable to find the libraries required to display the browser\n\n" + 
     546                                                "You can read the help online."); 
     547                                messageBox.open(); 
     548                        } 
    541549                 
    542550                if (e.getSource() == logViewer) {