Author: vrubezhny
Date: 2008-03-14 15:58:13 -0400 (Fri, 14 Mar 2008)
New Revision: 6944
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:05:23 UTC (rev 6943)
+++
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)
@@ -411,6 +411,20 @@
postponedTextSelection.select(o, attr);
}
}
+ } else {
+ try {
+ if ("org.eclipse.search.searchmarker".equals(marker.getType())) {
+ int offset = marker.getAttribute(IMarker.CHAR_START, -1);
+ int length = marker.getAttribute(IMarker.CHAR_END, -1);
+ if (offset > -1 && length > -1) {
+ postponedTextSelection.clean();
+ textEditor.gotoMarker(marker);
+ }
+ }
+ } catch (CoreException e) {
+ ModelUIPlugin.getPluginLog().logError(e);
+ }
+
}
}