* @param path
* @return true, support it/user select ignore, false, don't support it
*/
public static boolean basics(final Action a, final String path) {
try {
YMessagesDialog errors = new YMessagesDialog(I18N.t("Aufruf von {0} nicht möglich", path), "action" + a.toString());
// supported?
if (!Desktop.isDesktopSupported()) {
errors.add(I18N.t("Java Desktop Funktion wird vom System nicht untersützt."), Priority.INFO_INT);
}
final Desktop desktop = Desktop.getDesktop();
// supported?
if (!desktop.isSupported(a)) {
errors.add(I18N.t("{0}-Aktion wird nicht unterstützt.", a), Priority.INFO_INT);
}
// abort?
return errors.showOk();
} catch (final Throwable t) {
YEx.info("Can not run system action " + a + " for " + path, t);
}
return true;