/** * @see org.opencms.widgets.I_CmsWidget#getDialogInitMethod(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog) */ @Override public String getDialogInitMethod(CmsObject cms, I_CmsWidgetDialog widgetDialog) { StringBuffer result = new StringBuffer(128); result.append("function initColorPicker() {\n"); result.append("\tcolorPicker.title = \""); result.append(Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_DIALOG_COLOR_TITLE_0)); result.append("\";\n"); result.append("\tcolorPicker.url=\""); result.append(CmsWorkplace.getSkinUri()); result.append("components/js_colorpicker/index.html\";\n"); result.append("}\n"); return result.toString(); }
/** * @see org.opencms.widgets.I_CmsWidget#getDialogInitMethod(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog) */ @Override public String getDialogInitMethod(CmsObject cms, I_CmsWidgetDialog widgetDialog) { StringBuffer result = new StringBuffer(128); result.append("function initColorPicker() {\n"); result.append("\tcolorPicker.title = \""); result.append(Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_DIALOG_COLOR_TITLE_0)); result.append("\";\n"); result.append("\tcolorPicker.url=\""); result.append(CmsWorkplace.getSkinUri()); result.append("components/js_colorpicker/index.html\";\n"); result.append("}\n"); return result.toString(); }
} catch (PatternSyntaxException e) { LOG.error(Messages.get().getBundle().key(Messages.LOG_ERR_WIDGET_SELECTGROUP_PATTERN_1, filter));
/** * Gets a message string.<p> * * @param cms the CMS context * @param message the message key * @param args the message arguments * * @return the message string */ static String getMessage(CmsObject cms, String message, Object... args) { Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms); return Messages.get().getBundle(locale).key(message, args); }
} catch (PatternSyntaxException e) { LOG.error(Messages.get().getBundle().key(Messages.LOG_ERR_WIDGET_SELECTGROUP_PATTERN_1, filter));
LOG.warn(Messages.get().getBundle().key(Messages.ERR_PARSE_DATETIME_1, dateTimeValue), e);
LOG.warn(Messages.get().getBundle().key(Messages.ERR_PARSE_DATETIME_1, dateTimeValue), e);
Messages.get().container(Messages.LOG_CREATE_HTMLWIDGET_INSTANCE_FAILED_1, widgetClassName).key());
LOG.error(Messages.get().container(Messages.LOG_CREATE_HTMLWIDGET_INSTANCE_FAILED_1, widgetClassName).key());
+ paramId + "');openLinkDialog('" + Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_BUTTON_LINKTO_0) + "');", null, "link", "button.linkto", widgetDialog.getButtonStyle())); buttonsActive = true; + paramId + "');openAnchorDialog('" + Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.ERR_EDITOR_MESSAGE_NOSELECTION_0) + "');", null, "anchor", Messages.GUI_BUTTON_ANCHOR_0, widgetDialog.getButtonStyle())); buttonsActive = true;
org.opencms.synchronize.Messages.get(), org.opencms.util.Messages.get(), org.opencms.widgets.Messages.get(), org.opencms.workplace.Messages.get(), org.opencms.workplace.commons.Messages.get(),