Community
Participate
Working Groups
this.cmDocumentReferenceProvider = cmDocumentReferenceProvider;
setPropertyEnabled(PROPERTY_AUTO_LOAD, true);
setPropertyEnabled(PROPERTY_USE_CACHED_RESOLVED_URI, false);
setPropertyEnabled(PROPERTY_PERFORM_URI_RESOLUTION, true);
}
if (getPropertyEnabled(PROPERTY_AUTO_LOAD))
{
resolvedURI = lookupOrCreateResolvedURI(publicId, systemId);
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=136399
if (getPropertyEnabled(PROPERTY_PERFORM_URI_RESOLUTION))
else
resolvedURI = systemId;
public static final String PROPERTY_USE_CACHED_RESOLVED_URI = "useCachedResovledURI"; //$NON-NLS-1$
/**
* See https://bugs.eclipse.org/bugs/show_bug.cgi?id=136399
* Allows a client to control whether the document manager attempts to resolve a
* CM document's URI. When set to false, the CM systemID will be assumed to point
* to an already resolved URI. By default this property is set to true.
*/
public static final String PROPERTY_PERFORM_URI_RESOLUTION = "performURIResolution"; //$NON-NLS-1$
* Set the enabled state of a property.
public void setPropertyEnabled(String propertyName, boolean enabled);
import org.eclipse.wst.common.uriresolver.internal.provisional.URIResolver;
import org.eclipse.wst.xml.core.internal.contentmodel.CMDocument;
import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.CMDocumentManager;
import org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.XMLAssociationProvider;
import org.eclipse.wst.xml.core.internal.contentmodel.util.CMDocumentCache;
import org.w3c.dom.Document;
public XHTMLAssociationProvider(CMDocumentCache cache, URIResolver idResolver) {
super(cache);
this.idResolver = idResolver;
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=136399. If the CM document URI
// is resolved and cached at this level instruct the CM model manager to avoid
// re-resolving the URI.
if (USE_QUICK_CACHE) {
documentManager.setPropertyEnabled(CMDocumentManager.PROPERTY_PERFORM_URI_RESOLUTION, false);