Object value = parameters.get(key);
log.log(LogService.LOG_INFO, key + " -> " + value + " (" + value.getClass().getName() + ")");
}
GUIBuilderService guiBuilder = (GUIBuilderService)
context.getService(GUIBuilderService.class.getName());
boolean confirm = guiBuilder.showConfirm("showConfirm()", "showConfirm Test", "showConfirm Details");
log.log(LogService.LOG_INFO, "Confirmed? " + confirm);
guiBuilder.showError("showError()", "showError Test", "showError Details");
try {
Integer.parseInt("Not an integer...");
} catch (NumberFormatException e) {
guiBuilder.showError("showError()", "showError w/ Throwable Test", e);
}
guiBuilder.showInformation("showInformation()", "showInformation Test", "showInformation Details");
confirm = guiBuilder.showQuestion("showQuestion()", "showQuestion Test", "showQuestion Details");
log.log(LogService.LOG_INFO, "Yes? " + (confirm ? "Yes" : "No"));
guiBuilder.showWarning("showWarning()", "showWarning Test", "showWarning Details");
}
return null;
}