[jbosstools-commits] JBoss Tools SVN: r6945 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Mar 14 16:08:00 EDT 2008


Author: vrubezhny
Date: 2008-03-14 16:08:00 -0400 (Fri, 14 Mar 2008)
New Revision: 6945

Modified:
   trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1911 seam find references/declartions does not show exact location in xml (e.g. components.xml)

gotoMarker() is extended to support "org.eclipse.search.searchmarker" marker type

Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java	2008-03-14 19:58:13 UTC (rev 6944)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java	2008-03-14 20:08:00 UTC (rev 6945)
@@ -392,7 +392,7 @@
 	}
 
 	public void gotoMarker(IMarker marker) {
-		if(getModelObject() == null) return;
+		if(marker == null || getModelObject() == null) return;
 		String path = marker.getAttribute("path", null);
 		if(path != null) {
 			XModelObject o = getModelObject().getModel().getByPath(path);




More information about the jbosstools-commits mailing list