[jbosstools-commits] JBoss Tools SVN: r39328 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Mar 6 20:43:57 EST 2012


Author: scabanovich
Date: 2012-03-06 20:43:56 -0500 (Tue, 06 Mar 2012)
New Revision: 39328

Modified:
   trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java
Log:
JBIDE-11173
https://issues.jboss.org/browse/JBIDE-11173
Search of error marker for  XModelObject and attribute is fixed.


Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java	2012-03-07 01:35:47 UTC (rev 39327)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/XMarkerManager.java	2012-03-07 01:43:56 UTC (rev 39328)
@@ -314,9 +314,13 @@
 			return null;
 		}
 		if(ms == null) return null;
+		String pathInFile = object.getPath().substring(f.getPath().length());
 		for (int i = 0; i < ms.length; i++) {
 			XModelObject o = object;
 			String path = ms[i].getAttribute("path", null); //$NON-NLS-1$
+			if(path != null && !path.endsWith(pathInFile)) {
+				continue;
+			}
 			o = (path == null) ? o : o.getModel().getByPath(path);
 			if(o == null) continue;
 			String attr = ms[i].getAttribute("attribute", null); //$NON-NLS-1$



More information about the jbosstools-commits mailing list