}
}));
f.addElement("basic." + id + "_detail", new FormSwing("", i.getStatusMessage()));
f.addElement("basic." + id + "_moreinfo", new FormButton(I18N.t("Details"), i.getImg(), new AE() {
@Override
public void run() {
YDialog.showForm(i.getTitle(), i.getImg(), i.getMoreInfo());
}
}));
}
// add buttons
// add button
f.addButton("change", YFactory.installTooltip(YFactory.b(I18N.t("Wechseln"), "reload", new AE() {
@Override
public void run() {
for (String key : PluginLoader.getPlugins().keySet()) {
JCheckBox c = (JCheckBox) f.getElement("basic." + key + "_box").getElement();
c.setSelected(!c.isSelected());
}
}
}), I18N.t("Wechselt den Stand der ausgewählten Plugins"), "reload"));
// add button
f.addButton("check", YFactory.b(I18N.t("Online prüfen"), "search", new AE() {
@Override
public void run() {
PluginLoader.installOnlineInfo(true);
// update plugin view
reload();
}
}));
// add button
if (YLevel.IS_ADVANCED) {
f.addButton("folder", YFactory.b(I18N.t("Pluginordner"), "folder_search", new AE() {
@Override
public void run() {
SystemHelper.viewFile(PluginLoader.folder);
}
}));
// add button
f.addButton("enable", YFactory.b(I18N.t("Aktivieren"), "add", new AE() {
@Override
public void run() {
// inform user
if (checkSelected()) {
// run over all
for (String key : actives) {
PluginLoader.getPlugins().get(key).setDisabled(false);
}
}
}
}));
// add button
f.addButton("disable", YFactory.b(I18N.t("Deaktivieren"), "del", new AE() {
@Override
public void run() {
// inform user
if (checkSelected()) {
// run over all
for (String key : actives) {
PluginLoader.getPlugins().get(key).setDisabled(true);
}
}
}
}));
}
// add button
f.addButton("del", YFactory.b(I18N.t("Deinstallieren"), "plugin_del", new AE() {
@Override
public void run() {
// inform user
if (checkSelected()) {
// run over all
for (String key : actives) {
PluginLoader.uninstall(key);
}
SystemHelper.restart();
}
}
}));
// add button
f.addButton("install", YFactory.installTooltip(YFactory.b(I18N.t("Installieren"), "setup", new AE() {
@Override
public void run() {
// inform user
if (checkSelected()) {
// run over all
for (String key : actives) {
PluginLoader.installFromOnline(key);
}
SystemHelper.restart();
}
}
}), I18N.t("Installiert bzw. aktualisiert die Ausgewählten"), "setup"));
// add button
f.addButton("open", YFactory.installTooltip(YFactory.b(I18N.t("Importieren"), "folder", new AE() {
@Override
public void run() {
File[] fl = EditorIntegration.openDialog(true, false, new FileFilter() {