public class TraceForStorageProvider extends AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace> implements ITraceForStorageProvider
Modifier and Type | Class and Description |
---|---|
protected class |
TraceForStorageProvider.FileBasedTrace |
AbstractTraceForURIProvider.CachedTraces, AbstractTraceForURIProvider.PersistedTrace
ITraceForStorageProvider.Null
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TRACE_FILE_EXTENSION
Deprecated.
|
Constructor and Description |
---|
TraceForStorageProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.core.resources.IFile |
asFile(AbsoluteURI absoluteURI,
IProjectConfig project)
Obtain the file representation from the given URI.
|
protected java.util.List<AbstractTraceForURIProvider.PersistedTrace> |
findInverseTraceFiles(org.eclipse.core.resources.IFile sourceFile)
Find all the trace files that have been written for the given source file.
|
protected AbstractTraceForURIProvider.PersistedTrace |
findPersistedTrace(org.eclipse.core.resources.IFile generatedFile)
Find the persisted trace information for the given generated file.
|
protected AbsoluteURI |
getAbsoluteLocation(org.eclipse.core.resources.IFile file)
Returns the absolute location from the given file representation.
|
protected IProjectConfig |
getProjectConfig(org.eclipse.core.resources.IFile sourceFile)
Find the project configuration for the given generated file.
|
org.eclipse.core.resources.IFile |
getTraceFile(org.eclipse.core.resources.IFile generatedFile) |
IEclipseTrace |
getTraceToSource(org.eclipse.core.resources.IStorage derivedResource)
Returns the trace information to the sources that were used as input for the given derived resource.
|
IEclipseTrace |
getTraceToTarget(org.eclipse.core.resources.IStorage sourceResource)
Returns the trace information to the targets that were generated from the given source.
|
boolean |
isTraceFile(org.eclipse.core.resources.IStorage storage) |
protected StorageAwareTrace |
newAbstractTrace(org.eclipse.core.resources.IFile file)
Instantiate a new instance of the trace and associate the locate information with the given file.
|
asFile, getGeneratedLocation, getGeneratedUriForTrace, getServiceProvider, getTraceFileNameProvider, getTraceToSource, getTraceToSource, getTraceToSource, getTraceToTarget, getTraceToTarget, getTraceToTarget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTraceToSource, getTraceToSource, getTraceToTarget, getTraceToTarget
@Deprecated public static final java.lang.String TRACE_FILE_EXTENSION
protected org.eclipse.core.resources.IFile asFile(AbsoluteURI absoluteURI, IProjectConfig project)
AbstractTraceForURIProvider
asFile
in class AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace>
protected java.util.List<AbstractTraceForURIProvider.PersistedTrace> findInverseTraceFiles(org.eclipse.core.resources.IFile sourceFile)
AbstractTraceForURIProvider
findInverseTraceFiles
in class AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace>
protected AbstractTraceForURIProvider.PersistedTrace findPersistedTrace(org.eclipse.core.resources.IFile generatedFile)
AbstractTraceForURIProvider
findPersistedTrace
in class AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace>
protected AbsoluteURI getAbsoluteLocation(org.eclipse.core.resources.IFile file)
AbstractTraceForURIProvider
getAbsoluteLocation
in class AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace>
protected IProjectConfig getProjectConfig(org.eclipse.core.resources.IFile sourceFile)
AbstractTraceForURIProvider
getProjectConfig
in class AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace>
protected StorageAwareTrace newAbstractTrace(org.eclipse.core.resources.IFile file)
AbstractTraceForURIProvider
newAbstractTrace
in class AbstractTraceForURIProvider<org.eclipse.core.resources.IFile,StorageAwareTrace>
public IEclipseTrace getTraceToTarget(org.eclipse.core.resources.IStorage sourceResource)
IPlatformSpecificTraceProvider
null
if no such data is available for the given storage.getTraceToTarget
in interface IPlatformSpecificTraceProvider<org.eclipse.core.resources.IStorage,IEclipseTrace>
sourceResource
- the resource whose target trace is requested. May not be null
.null
.public IEclipseTrace getTraceToSource(org.eclipse.core.resources.IStorage derivedResource)
IPlatformSpecificTraceProvider
null
if no such data is available for the given storage.getTraceToSource
in interface IPlatformSpecificTraceProvider<org.eclipse.core.resources.IStorage,IEclipseTrace>
derivedResource
- the resource whose source trace is requested. May not be null
.null
.public org.eclipse.core.resources.IFile getTraceFile(org.eclipse.core.resources.IFile generatedFile)
public boolean isTraceFile(org.eclipse.core.resources.IStorage storage)