Browse Source

Merge pull request #1545 in BA/design from ~XIAOXIA/design:feature/9.0 to feature/9.0

* commit 'a484e2493d4649298de6e9c78d512bffb492fdf5':
  无JIRA任务 打包失败
superman 8 years ago
parent
commit
ccc224000d
  1. 14
      designer_base/src/com/fr/design/mainframe/toolbar/UpdateActionManager.java

14
designer_base/src/com/fr/design/mainframe/toolbar/UpdateActionManager.java

@ -27,12 +27,18 @@ public class UpdateActionManager {
this.updateActions = updateActions;
}
public boolean isEnable(UpdateAction updateAction) {
/**
* 根据action name获取action对象
*
* @param name
* @return
*/
public UpdateAction getActionByName(String name) {
for (UpdateActionModel action : updateActions) {
if (ComparatorUtils.equals(updateAction.getName(), action.getActionName()) && action.getAction().isEnabled()) {
return true;
if (ComparatorUtils.equals(name, action.getActionName()) && action.getAction().isEnabled()) {
return action.getAction();
}
}
return false;
return null;
}
}
Loading…
Cancel
Save