[jbosstools-commits] JBoss Tools SVN: r24099 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Aug 12 08:44:47 EDT 2010


Author: dazarov
Date: 2010-08-12 08:44:46 -0400 (Thu, 12 Aug 2010)
New Revision: 24099

Modified:
   trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
Log:
https://jira.jboss.org/browse/JBIDE-6822

Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java	2010-08-12 12:39:02 UTC (rev 24098)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java	2010-08-12 12:44:46 UTC (rev 24099)
@@ -822,9 +822,11 @@
 		if(dataModelName==null) {
 			// here must be the only one @DataModel in the component
 			Set<IBijectedAttribute> dataBinders = declaration.getBijectedAttributesByType(BijectedAttributeType.DATA_BINDER);
+			ITextSourceReference location = null;
 			if(dataBinders!=null && dataBinders.size()>1) {
 				for (IBijectedAttribute dataBinder : dataBinders) {
-					addError(SeamValidationMessages.MULTIPLE_DATA_BINDER, SeamPreferences.MULTIPLE_DATA_BINDER, dataBinder, declaration.getResource());
+					location = dataBinder.getLocationFor(SeamComponentDeclaration.PATH_OF_NAME);
+					addError(SeamValidationMessages.MULTIPLE_DATA_BINDER, SeamPreferences.MULTIPLE_DATA_BINDER, location, declaration.getResource());
 				}
 			}
 		} else {



More information about the jbosstools-commits mailing list