public class StorageAwareTrace extends AbstractEclipseTrace
contributions
to resolve trace URIs.AbstractTrace.TraceAccess, AbstractTrace.TraceRegionsByURI
Constructor and Description |
---|
StorageAwareTrace() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.core.resources.IStorage |
findStorage(SourceRelativeURI uri,
org.eclipse.core.resources.IProject project) |
protected java.io.InputStream |
getContents(SourceRelativeURI uri,
org.eclipse.core.resources.IProject project) |
protected java.io.Reader |
getContentsAsText(org.eclipse.core.resources.IStorage storage) |
protected java.io.Reader |
getContentsAsText(SourceRelativeURI uri,
org.eclipse.core.resources.IProject project) |
protected java.io.Reader |
getLocalContentsAsText(org.eclipse.core.resources.IProject project) |
org.eclipse.core.resources.IProject |
getLocalProject() |
org.eclipse.core.resources.IStorage |
getLocalStorage()
Returns the storage that is associated with this trace.
|
AbsoluteURI |
getLocalURI()
Returns the absolute URI of the local resource.
|
protected AbsoluteURI |
resolvePath(org.eclipse.core.resources.IProject project,
SourceRelativeURI path) |
protected AbsoluteURI |
resolvePath(SourceRelativeURI path)
Resolve the given path in the context of the known
local storage . |
void |
setLocalStorage(org.eclipse.core.resources.IStorage derivedResource) |
createLocationInResource, findProject, getAllAssociatedLocations, getAllAssociatedLocations, getAllAssociatedLocations, getAllAssociatedLocations, getAllAssociatedLocations, getAllAssociatedLocations, getBestAssociatedLocation, getBestAssociatedLocation, getBestAssociatedLocation, getContents, getContentsAsText, getLocalContentsAsText, getLocalProjectConfig, getStorage2uriMapper, getURIForStorage, getWorkspace
createLocationInResourceFor, doGetRootTraceRegion, encloses, encloses, findLanguage, findParentByURI, findTraceRegionAt, findTraceRegionAtLeftOffset, findTraceRegionAtRightOffset, getAllTraceRegions, getAllTraceRegions, getLocalLanguage, getMergedLocationInResource, getRootTraceRegion, getService, getSrcRelativeLocalURI, getTraceRegionProvider, hasTraceData, isAssociatedWith, isTraceToSource, isTraceToTarget, mergeRegions, setTraceRegionProvider, setTraceToSource, toLocations, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocalLanguage, getSrcRelativeLocalURI, hasTraceData
public org.eclipse.core.resources.IStorage getLocalStorage()
IPlatformSpecificTrace
null
.public AbsoluteURI getLocalURI()
ITrace
null
.getLocalURI
in interface ITrace
getLocalURI
in class AbstractTrace
null
.public org.eclipse.core.resources.IProject getLocalProject()
getLocalProject
in class AbstractEclipseTrace
protected AbsoluteURI resolvePath(SourceRelativeURI path)
local storage
.
Try to resolve it by querying the contributions
.resolvePath
in class AbstractTrace
IStorageAwareTraceContribution.tryResolvePath(IStorage, SourceRelativeURI)
protected AbsoluteURI resolvePath(org.eclipse.core.resources.IProject project, SourceRelativeURI path)
public void setLocalStorage(org.eclipse.core.resources.IStorage derivedResource)
protected org.eclipse.core.resources.IStorage findStorage(SourceRelativeURI uri, org.eclipse.core.resources.IProject project)
findStorage
in class AbstractEclipseTrace
protected java.io.InputStream getContents(SourceRelativeURI uri, org.eclipse.core.resources.IProject project) throws java.io.IOException
getContents
in class AbstractEclipseTrace
java.io.IOException
protected java.io.Reader getContentsAsText(SourceRelativeURI uri, org.eclipse.core.resources.IProject project) throws java.io.IOException
getContentsAsText
in class AbstractEclipseTrace
java.io.IOException
protected java.io.Reader getLocalContentsAsText(org.eclipse.core.resources.IProject project) throws java.io.IOException
getLocalContentsAsText
in class AbstractEclipseTrace
java.io.IOException
protected java.io.Reader getContentsAsText(org.eclipse.core.resources.IStorage storage) throws WrappedCoreException
WrappedCoreException