public static Component addInfo() {
// build form
final FormBuilder f = new FormBuilder(OPTIONS_INFO);
f.addHeader("basic", new FormHeader(I18N.t("Basics"), "info").setColumn(4));
f.addElement("basic.yaams", new FormInfo("", YAamsCore.TITLE));
if (YLevel.IS_ADVANCED) {
f.addElement("basic.path", new FormTextField(I18N.t("Optionen"), YAamsCore.programPath.getAbsolutePath()));
f.addElement("basic.temp", new FormTextField(I18N.t("Temp"), YAamsCore.tmpFolder.getAbsolutePath()));
f.addElement("basic.system", new FormInfo(I18N.t("System"), SystemUtils.OS_NAME + " " + SystemUtils.OS_VERSION + " "
+ SystemUtils.OS_ARCH));
f.addElement("basic.log", new FormInfo(I18N.t("Log level"), Log.ger.getLevel().toString()));
f.addElement("basic.ylevel", new FormInfo(I18N.t("Program level"), YLevel.getName(YLevel.TYP)));
f.addElement("basic.java", new FormInfo(I18N.t("Java"), SystemUtils.JAVA_RUNTIME_NAME + " " + SystemUtils.JAVA_VENDOR + " "
+ SystemUtils.JAVA_VERSION));
f.addElement(
"basic.ram",
new FormInfo(I18N.t("RAM"), FileHelper.humanReadableByteCount(Runtime.getRuntime().freeMemory(), false) + " / "
+ FileHelper.humanReadableByteCount(Runtime.getRuntime().totalMemory(), false) + " ("
+ FileHelper.humanReadableByteCount(Runtime.getRuntime().maxMemory(), false) + ")"));
}
// add plugins
f.addHeader("plugins", new FormHeader(I18N.t("Plugins"), "plugin").setColumn(8));
for (String key : PluginLoader.getPlugins().keySet()) {
f.addElement("plugins." + key, new FormInfo("", PluginLoader.get(key).getTitle()));
}
if (PluginLoader.getPlugins().keySet().size() <= 1) {
f.addElement("plugins.znone", new FormInfo("", I18N.t("Keine Plugins gefunden. Installiere zuerst welche")).setInfoTxt(I18N
.t("Öffne zur Installation den Katalog vom Starttab und wähle die Plugins aus. Danach musst du YAams neustarten.")));
}
// add special thanks
f.addHeader("thankuser", new FormHeader(I18N.t("Speziellen Dank an"), "user").setColumn(4));
f.addElement("thankuser.studio", new FormInfo("rpg-studio.de", "fürs Hosting, den Server und vieles mehr"));
f.addElement("thankuser.steve", new FormInfo("Steve", "fürs Entwickeln"));
f.addElement("thankuser.wolfsmutter", new FormInfo("Wolfsmutter", "fürs Testen und vieles mehr :)"));
f.addElement("thankuser.evrey", new FormInfo("Evrey", "fürs Testen und ganz viel anderes"));
f.addElement("thankuser.you", new FormInfo("Du?", "Wenn du willst, entwickle YAams mit! Mitarbeiter immer gesucht!"));
// add thanks
f.addHeader("thx", new FormHeader(I18N.t("Vielen Dank an"), "java").setColumn(8));
f.addElement("thx.apachecommon", new FormLink("Apache Commons", "http://commons.apache.org"));
f.addElement("thx.jidesoft", new FormLink("Jidesoft", "http://www.jidesoft.com"));