Author: scabanovich
Date: 2008-04-08 10:24:43 -0400 (Tue, 08 Apr 2008)
New Revision: 7416
Modified:
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/MetaModelTest.java
Log:
JBIDE-893
Modified:
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/MetaModelTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/MetaModelTest.java 2008-04-08
14:24:36 UTC (rev 7415)
+++
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/MetaModelTest.java 2008-04-08
14:24:43 UTC (rev 7416)
@@ -35,7 +35,6 @@
import org.jboss.tools.common.model.event.XModelTreeListener;
import org.jboss.tools.common.model.loaders.XObjectLoader;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
-import org.jboss.tools.common.model.util.ClassLoaderUtil;
import org.jboss.tools.common.model.util.ModelFeatureFactory;
import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
@@ -280,13 +279,11 @@
int errors = 0;
for (int i = 0; i < entities.length; i++) {
XModelEntityImpl entity = (XModelEntityImpl)meta.getEntity(entities[i]);
- Class cls = entity.getImplementingClass();
- if(cls != null) {
+ if(entity.hasObjectImplementation()) {
XModelObject object = model.createModelObject(entity.getName(), null);
if(object == null) {
errors++;
- String error = entity.getName() + ":" + cls.getName();
- sb.append(entity.getName()).append(" -
").append(error).append("\n");
+ sb.append(entity.getName()).append("\n");
}
}
}
@@ -318,8 +315,7 @@
errors++;
sb.append(entity.getName()).append(" -
").append(error).append("\n");
} else {
- Class cls = entity.getLoadingClass();
- if(cls == null) continue;
+ if(!entity.hasObjectLoader()) continue;
XModelObject object = XModelObjectLoaderUtil.createValidObject(model,
entity.getName());
if(object == null) {
continue;
Show replies by date