本文整理了Java中org.nuxeo.ecm.platform.actions.Action.getLabel()
方法的一些代码示例,展示了Action.getLabel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.getLabel()
方法的具体详情如下:
包路径:org.nuxeo.ecm.platform.actions.Action
类名称:Action
方法名:getLabel
暂无
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
public synchronized void addAction(Action action) {
String id = action.getId();
if (log.isDebugEnabled()) {
if (actions.containsKey(id)) {
log.debug("Overriding action: " + action);
} else {
log.debug("Registering action: " + action);
}
}
// add a default label if not set
if (action.getLabel() == null) {
action.setLabel(action.getId());
}
actions.put(id, action);
for (String category : action.getCategories()) {
List<String> acts = categories.get(category);
if (acts == null) {
acts = new ArrayList<>();
}
if (!acts.contains(id)) {
acts.add(id);
}
categories.put(category, acts);
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
String newLabel = source.getLabel();
if (newLabel != null && !newLabel.equals(dest.getLabel())) {
dest.setLabel(newLabel);
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-jsf
WidgetDefinitionImpl wDef = new WidgetDefinitionImpl(widgetNameValue, wtype, actionInstance.getLabel(),
actionInstance.getHelp(), true, null, null, props, null);
wDef.setTypeCategory(wcat);
内容来源于网络,如有侵权,请联系作者删除!