Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 136399 | Differences between
and this patch

Collapse All | Expand All

(-)src-contentmodel/org/eclipse/wst/xml/core/internal/contentmodel/modelqueryimpl/CMDocumentManagerImpl.java (-1 / +11 lines)
Lines 50-55 Link Here
50
    this.cmDocumentReferenceProvider = cmDocumentReferenceProvider;
50
    this.cmDocumentReferenceProvider = cmDocumentReferenceProvider;
51
    setPropertyEnabled(PROPERTY_AUTO_LOAD, true);
51
    setPropertyEnabled(PROPERTY_AUTO_LOAD, true);
52
    setPropertyEnabled(PROPERTY_USE_CACHED_RESOLVED_URI, false);
52
    setPropertyEnabled(PROPERTY_USE_CACHED_RESOLVED_URI, false);
53
    setPropertyEnabled(PROPERTY_PERFORM_URI_RESOLUTION, true);
53
  }         
54
  }         
54
55
55
       
56
       
Lines 157-163 Link Here
157
158
158
    if (getPropertyEnabled(PROPERTY_AUTO_LOAD))
159
    if (getPropertyEnabled(PROPERTY_AUTO_LOAD))
159
    {
160
    {
160
      resolvedURI = lookupOrCreateResolvedURI(publicId, systemId);
161
      // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=136399
162
    	
163
      if (getPropertyEnabled(PROPERTY_PERFORM_URI_RESOLUTION))
164
      {
165
	    resolvedURI = lookupOrCreateResolvedURI(publicId, systemId);
166
      }
167
      else
168
      {
169
        resolvedURI = systemId;
170
      }
161
    }    
171
    }    
162
    else
172
    else
163
    {
173
    {
(-)src-contentmodel/org/eclipse/wst/xml/core/internal/contentmodel/modelquery/CMDocumentManager.java (+8 lines)
Lines 59-64 Link Here
59
	public static final String PROPERTY_USE_CACHED_RESOLVED_URI = "useCachedResovledURI"; //$NON-NLS-1$
59
	public static final String PROPERTY_USE_CACHED_RESOLVED_URI = "useCachedResovledURI"; //$NON-NLS-1$
60
60
61
	/**
61
	/**
62
	 * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=136399
63
	 * Allows a client to control whether the document manager attempts to resolve a
64
	 * CM document's URI. When set to false, the CM systemID will be assumed to point
65
	 * to an already resolved URI. By default this property is set to true.
66
	 */
67
	public static final String PROPERTY_PERFORM_URI_RESOLUTION = "performURIResolution"; //$NON-NLS-1$
68
69
	/**
62
	 * Set the enabled state of a property.
70
	 * Set the enabled state of a property.
63
	 */
71
	 */
64
	public void setPropertyEnabled(String propertyName, boolean enabled);
72
	public void setPropertyEnabled(String propertyName, boolean enabled);
(-)src/org/eclipse/wst/html/core/internal/modelquery/XHTMLAssociationProvider.java (+9 lines)
Lines 13-18 Link Here
13
13
14
import org.eclipse.wst.common.uriresolver.internal.provisional.URIResolver;
14
import org.eclipse.wst.common.uriresolver.internal.provisional.URIResolver;
15
import org.eclipse.wst.xml.core.internal.contentmodel.CMDocument;
15
import org.eclipse.wst.xml.core.internal.contentmodel.CMDocument;
16
import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.CMDocumentManager;
16
import org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.XMLAssociationProvider;
17
import org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.XMLAssociationProvider;
17
import org.eclipse.wst.xml.core.internal.contentmodel.util.CMDocumentCache;
18
import org.eclipse.wst.xml.core.internal.contentmodel.util.CMDocumentCache;
18
import org.w3c.dom.Document;
19
import org.w3c.dom.Document;
Lines 39-44 Link Here
39
	public XHTMLAssociationProvider(CMDocumentCache cache, URIResolver idResolver) {
40
	public XHTMLAssociationProvider(CMDocumentCache cache, URIResolver idResolver) {
40
		super(cache);
41
		super(cache);
41
		this.idResolver = idResolver;
42
		this.idResolver = idResolver;
43
		
44
		// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=136399. If the CM document URI
45
		// is resolved and cached at this level instruct the CM model manager to avoid 
46
		// re-resolving the URI.
47
		
48
		if (USE_QUICK_CACHE) {
49
			documentManager.setPropertyEnabled(CMDocumentManager.PROPERTY_PERFORM_URI_RESOLUTION, false);
50
		}
42
	}
51
	}
43
52
44
	/**
53
	/**

Return to bug 136399