_curlogToDisplay.message
};
// i18n[LogPanel.logMsg=Logged by {0} at {1}:\n\n {2}]
String extMsg = s_stringMgr.getString("LogPanel.logMsg", params);
ErrorDialog errorDialog = new ErrorDialog(_app.getMainFrame(), extMsg, _curlogToDisplay.throwable);
String title;
switch(_curlogToDisplay.logType)
{
case LOG_TYPE_INFO:
// i18n[LogPanel.titleInfo=Last log entry (Entry type: Info)]
title = s_stringMgr.getString("LogPanel.titleInfo");
break;
case LOG_TYPE_WARN:
// i18n[LogPanel.titleWarn=Last log entry (Entry type: Warning)]
title = s_stringMgr.getString("LogPanel.titleWarn");
break;
case LOG_TYPE_ERROR:
// i18n[LogPanel.titleError=Last log entry (Entry type: ERROR)]
title = s_stringMgr.getString("LogPanel.titleError");
break;
default:
// i18n[LogPanel.titleUnknown=Last log entry (Entry type: Unknown)]
title = s_stringMgr.getString("LogPanel.titleUnknown");
break;
}
errorDialog.setTitle(title);
errorDialog.setVisible(true);
}
}