Author: DartPeng
Date: 2008-11-02 21:01:32 -0500 (Sun, 02 Nov 2008)
New Revision: 11481
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
Log:
JBIDE-2994
Fix some bugs what are actived during resolving the JBIDE-2994
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java 2008-11-03
01:59:25 UTC (rev 11480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java 2008-11-03
02:01:32 UTC (rev 11481)
@@ -170,11 +170,11 @@
// rootJavaBean = (JavaBeanModel) list.get(0);
try {
ProjectClassLoader loader = new ProjectClassLoader(javaProject);
- Class clazz = loader.loadClass(this.classText.getText());
+ Class clazz = loader.loadClass(classFullName);
rootJavaBean = JavaBeanModelFactory
.getJavaBeanModelWithLazyLoad(clazz);
} catch (Exception e) {
-
+ // ignore
}
}
// if (rootJavaBean != null)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-11-03
01:59:25 UTC (rev 11480)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-11-03
02:01:32 UTC (rev 11481)
@@ -167,7 +167,7 @@
String instanceName = ((JavaBeanModel) refObj)
.getBeanClassString();
Class instanceClazz = null;
- if(((JavaBeanModel) refObj).isPrimitive()) {
+ if(((JavaBeanModel) refObj).isPrimitive() || ((JavaBeanModel) refObj).isArray()) {
// TODO process primitive type
continue;
}
Show replies by date