Author: scabanovich
Date: 2007-07-25 03:41:49 -0400 (Wed, 25 Jul 2007)
New Revision: 2645
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java
Log:
In case when handler is not set, looking for class is avoided.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java 2007-07-25
07:23:47 UTC (rev 2644)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XActionImpl.java 2007-07-25
07:41:49 UTC (rev 2645)
@@ -223,7 +223,7 @@
}
public Object createInstance() {
- if(name == null) return null;
+ if(name == null || name.trim().length() == 0) return null;
validate();
try {
return ModelFeatureFactory.getInstance().createFeatureInstance(name);
Show replies by date