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);