Author: DartPeng
Date: 2008-10-15 02:37:41 -0400 (Wed, 15 Oct 2008)
New Revision: 10843
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java
Log:
JBIDE-2897
change the class full path display way.
Add title/description to JavaBean wizard page
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java 2008-10-15
05:20:39 UTC (rev 10842)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanConfigWizardPage.java 2008-10-15
06:37:41 UTC (rev 10843)
@@ -54,6 +54,8 @@
super("beansearchwizardpage");
this.project = selection;
setPageComplete(true);
+ setTitle("JavaBean Class selection page");
+ setDescription("Select the JavaBean class");
}
public void activeNextWizardNode(IWizardNode node){
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java 2008-10-15
05:20:39 UTC (rev 10842)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/ui/JavaBeanModelLoadComposite.java 2008-10-15
06:37:41 UTC (rev 10843)
@@ -173,8 +173,8 @@
Class clazz = loader.loadClass(this.classText.getText());
rootJavaBean = JavaBeanModelFactory
.getJavaBeanModelWithLazyLoad(clazz);
- }catch(Exception e){
-
+ } catch (Exception e) {
+
}
}
// if (rootJavaBean != null)
@@ -203,8 +203,13 @@
Object result = results[0];
String packageFullName = JavaModelUtil
.getTypeContainerName((IType) result);
- classText.setText(packageFullName + "."
- + ((IType) result).getElementName());
+ if (packageFullName == null
+ || packageFullName.length() <= 0) {
+ classText.setText(((IType) result).getElementName());
+ } else {
+ classText.setText(packageFullName + "."
+ + ((IType) result).getElementName());
+ }
}
}
} catch (Exception e) {
@@ -213,6 +218,5 @@
}
}
-
}