statusBar.setText(" "); //$NON-NLS-1$ // Must be a space or it disappears
} else if (type == HyperlinkEvent.EventType.ACTIVATED) {
if (event instanceof HTMLFrameHyperlinkEvent) {
HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent) event;
HTMLDocument doc = (HTMLDocument) editor.getDocument();
doc.processHTMLFrameHyperlinkEvent(evt);
} else {
try {
editor.setPage(event.getURL());
} catch (FileNotFoundException fnfe) {
editor.setText(MessageFormat.format(Messages.getString("SimpleLinkListener.err.openfailed"), //$NON-NLS-1$