Author: DartPeng
Date: 2009-06-18 03:58:29 -0400 (Thu, 18 Jun 2009)
New Revision: 16024
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaBeanModelFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaPropertiesSelectionDialog.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/JavaPropertiesProposalProvider.java
Log:
JBIDE-4501
DONE
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaBeanModelFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaBeanModelFactory.java 2009-06-18
04:49:01 UTC (rev 16023)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaBeanModelFactory.java 2009-06-18
07:58:29 UTC (rev 16024)
@@ -49,6 +49,11 @@
return m;
}
+ /**
+ * @deprecated
+ * @param beanClass
+ * @return
+ */
public synchronized static JavaBeanModel getJavaBeanModel(Class<?> beanClass ) {
JavaBeanModel m = new JavaBeanModel(beanClass,false);
m.setRootClassModel(true);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaPropertiesSelectionDialog.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaPropertiesSelectionDialog.java 2009-06-18
04:49:01 UTC (rev 16023)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/javabean/JavaPropertiesSelectionDialog.java 2009-06-18
07:58:29 UTC (rev 16024)
@@ -79,7 +79,7 @@
} else {
clazz = classLoader.loadClass(className);
}
- JavaBeanModel beanModel = JavaBeanModelFactory.getJavaBeanModel(clazz);
+ JavaBeanModel beanModel = JavaBeanModelFactory.getJavaBeanModelWithLazyLoad(clazz);
PropertySelectionDialog dialog = new PropertySelectionDialog(shell, project,
beanModel);
if (dialog.open() == Dialog.OK) {
JavaBeanModel pd = (JavaBeanModel) dialog.getCurrentSelection();
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/JavaPropertiesProposalProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/JavaPropertiesProposalProvider.java 2009-06-18
04:49:01 UTC (rev 16023)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/JavaPropertiesProposalProvider.java 2009-06-18
07:58:29 UTC (rev 16024)
@@ -48,7 +48,7 @@
} else {
clazz = classLoader.loadClass(className);
}
- beanModel = JavaBeanModelFactory.getJavaBeanModel(clazz);
+ beanModel = JavaBeanModelFactory.getJavaBeanModelWithLazyLoad(clazz);
}
} catch (JavaModelException e) {
} catch (ClassNotFoundException e) {
Show replies by date