private void showErrorMessage(Thread t, Throwable e) {
		String s1 = null, s2 = null, s3 = "";
		switch (errorType) {
		case LOAD_ERROR:
			String s = Modeler.getInternationalText("LoadingError");
			s1 = s != null ? s : "Loading Error";
			s = Modeler.getInternationalText("EncounteredErrorInLoadingDataCausedBy");
			s2 = s != null ? s : "Sorry, we have encountered errors in loading data, caused by:";
			if (e instanceof OutOfMemoryError) {
				s3 = "\n\nSuggestion:\nIt may be good to restart " + Modeler.NAME + " if this error keeps occuring.";
			}
			break;
		case SCRIPT_ERROR:
			s = Modeler.getInternationalText("ScriptError");
			s1 = s != null ? s : "Script Error";
			s = Modeler.getInternationalText("EncounteredErrorInScriptsCausedBy");
			s2 = s != null ? s : "Sorry, we have encountered errors in scripts, caused by:";
			break;
		}
		JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(parent), s2 + "\n" + e + "\n in thread: "
				+ t.getName() + s3, s1, JOptionPane.ERROR_MESSAGE);
	}