Author: vrubezhny
Date: 2008-02-11 12:45:25 -0500 (Mon, 11 Feb 2008)
New Revision: 6246
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLXmlNsHyperlink.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1771 OpenOn for xsi:schemaLocation attribute value
doesn't work in faces-config.xml.
fixed for JSF 1.1
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLXmlNsHyperlink.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLXmlNsHyperlink.java 2008-02-11
17:41:15 UTC (rev 6245)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLXmlNsHyperlink.java 2008-02-11
17:45:25 UTC (rev 6246)
@@ -274,7 +274,7 @@
mappedSystemId =
XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolvePublic(publicId, systemId);
if (mappedSystemId == null)
mappedSystemId =
XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolveSystem(systemId);
- if (systemId != null)
+ if (mappedSystemId == null && systemId != null)
mappedSystemId =
XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolveURI(systemId);
} catch (Exception e) {
// Ignore, just return null as result