else if(event instanceof SearchResultsSelectionEvent){
//SearchResultsSelectionEvent specificEvent = (SearchResultsSelectionEvent)event;
//statusBarCommandGroup.setMessage(specificEvent.getSearchResult().getURL());
}
else if(event instanceof SwingWorkerExceptionEvent){
SwingWorkerExceptionEvent specificEvent = (SwingWorkerExceptionEvent)event;
if(specificEvent.getCause().getCause() != null){
statusBar.setErrorMessage(
specificEvent.getCause().getCause().getMessage());
}
else{
statusBar.setErrorMessage(getMessage(UNKNOWN_ERROR));
}
}
else if(event instanceof OpenEditorEvent){
OpenEditorEvent specificEvent = (OpenEditorEvent)event;
GoogleSearchResultElement element = (GoogleSearchResultElement)specificEvent.getObject();
statusBar.setMessage(getMessage(OPENED, new Object[]{element.getURL()}));
}
}