Author: DartPeng
Date: 2008-10-15 03:09:35 -0400 (Wed, 15 Oct 2008)
New Revision: 10844
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java
Log:
JBIDE-2898
have fixed it.
there were some problems with the getDataTypeID method
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java 2008-10-15
06:37:41 UTC (rev 10843)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/TypeIDSelectionWizardPage.java 2008-10-15
07:09:35 UTC (rev 10844)
@@ -275,7 +275,7 @@
Object[] objs = viewer.getCheckedElements();
if (objs == null)
return null;
- if (objs.length > 1)
+ if (objs.length <= 0)
return null;
DataTypeID d = (DataTypeID) objs[0];
return d.getId();