String message= PreferencesMessages.getString("CodeTemplateBlock.error.read.message"); ExceptionHandler.handle(e, getShell(), title, message);
if (e.getStatus().getCode() == IJavaStatusConstants.TEMPLATE_PARSE_EXCEPTION) { String message= e.getStatus().getException().getLocalizedMessage(); if (message != null) message= PreferencesMessages.getFormattedString("CodeTemplateBlock.error.parse.message", message); else message= PreferencesMessages.getString("CodeTemplateBlock.error.read.message"); MessageDialog.openError(getShell(), title, message); } else { String message= PreferencesMessages.getString("CodeTemplateBlock.error.read.message"); ExceptionHandler.handle(e, getShell(), title, message); }
	private void openReadErrorDialog(CoreException e) {		String title= PreferencesMessages.getString("CodeTemplateBlock.error.read.title"); //$NON-NLS-1$		String message= PreferencesMessages.getString("CodeTemplateBlock.error.read.message"); //$NON-NLS-1$		ExceptionHandler.handle(e, getShell(), title, message);			}