Author: scabanovich
Date: 2007-09-27 11:40:55 -0400 (Thu, 27 Sep 2007)
New Revision: 3867
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ActionX.java
Log:
JBIDE-956
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ActionX.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ActionX.java 2007-09-27
15:10:29 UTC (rev 3866)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/action/ActionX.java 2007-09-27
15:40:55 UTC (rev 3867)
@@ -29,6 +29,7 @@
public ActionX(XModelObjectAction a) {
wrapper = a;
this.action = a.action;
+ boolean enabled = (wrapper.targets == null) ? action.isEnabled(wrapper.object) :
action.isEnabled(wrapper.object, wrapper.targets);
String displayName = action.getDisplayName();
String baseName = action.getBaseActionName();
@@ -59,7 +60,6 @@
Image image = action.getMetaModel().getIconList().getImage("action.empty");
setImageDescriptor(new XImageDescriptor(image));
}
- boolean enabled = (wrapper.targets == null) ? action.isEnabled(wrapper.object) :
action.isEnabled(wrapper.object, wrapper.targets);
setEnabled(enabled);
}
Show replies by date