//form.setFields(localeItem, enableAnalytics, enableSecurityContextCache);
Widget formWidget = form.asWidget();
formWidget.getElement().setAttribute("style", "margin:15px");
DialogueOptions options = new DialogueOptions(
Console.CONSTANTS.common_label_save(),
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
presenter.onSaveDialogue(form.getUpdatedEntity());
presenter.hideView();
Feedback.confirm(Console.MESSAGES.restartRequired(), Console.MESSAGES.restartRequiredConfirm(),
new Feedback.ConfirmationHandler()
{
@Override
public void onConfirmation(boolean isConfirmed) {
// Ignore: it crashes the browser..
/*if(isConfirmed){
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
@Override
public void execute() {
reload();
}
});
} */
}
});
}
},
Console.CONSTANTS.common_label_cancel(),
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
presenter.onCancelDialogue();
}
}
);
options.getElement().setAttribute("style", "padding:10px");
SafeHtmlBuilder html = new SafeHtmlBuilder();
html.appendHtmlConstant("<ul>");
html.appendHtmlConstant("<li>").appendEscaped("Locale: The user interface language.");
if (productConfig.getProfile() == COMMUNITY) {