org.eclipse.xtext.builder.trace
Class StorageAwareTrace

java.lang.Object
  extended by org.eclipse.xtext.builder.trace.AbstractTrace
      extended by org.eclipse.xtext.builder.trace.StorageAwareTrace
All Implemented Interfaces:
ITrace, ITrace.Internal

@NonNullByDefault
public class StorageAwareTrace
extends AbstractTrace

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.builder.trace.AbstractTrace
AbstractTrace.TraceRegionsByURI
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.generator.trace.ITrace
ITrace.Internal
 
Constructor Summary
StorageAwareTrace()
           
 
Method Summary
protected  AbstractTraceRegion doGetRootTraceRegion()
           
 org.eclipse.core.resources.IProject getLocalProject()
          Returns the source project.
 org.eclipse.core.resources.IStorage getLocalStorage()
          Returns the storage that is associated with this trace.
protected  ITraceRegionProvider getTraceRegionProvider()
           
protected  void setLocalStorage(org.eclipse.core.resources.IStorage derivedResource)
           
protected  void setTraceRegionProvider(ITraceRegionProvider traceRegionProvider)
           
 
Methods inherited from class org.eclipse.xtext.builder.trace.AbstractTrace
createLocationInResourceFor, encloses, encloses, findLanguage, findParentByURI, findProject, findStorage, findTraceRegionAt, findTraceRegionAtLeftOffset, findTraceRegionAtRightOffset, getAllAssociatedLocations, getAllAssociatedLocations, getAllAssociatedLocations, getAllAssociatedLocations, getAllTraceRegions, getAllTraceRegions, getBestAssociatedLocation, getBestAssociatedLocation, getLanguage, getLocalURI, getMergedLocationInResource, getResource, getRootTraceRegion, getService, getURIForStorage, isAssociatedWith, mergeRegions, toLocations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageAwareTrace

public StorageAwareTrace()
Method Detail

getLocalStorage

public org.eclipse.core.resources.IStorage getLocalStorage()
Description copied from interface: ITrace
Returns the storage that is associated with this trace.

Specified by:
getLocalStorage in interface ITrace
Specified by:
getLocalStorage in class AbstractTrace
Returns:
the associated storage. Never null.

getLocalProject

public org.eclipse.core.resources.IProject getLocalProject()
Description copied from interface: ITrace
Returns the source project. Never null.

Specified by:
getLocalProject in interface ITrace
Specified by:
getLocalProject in class AbstractTrace
Returns:
the source project. Never null.

doGetRootTraceRegion

@Nullable
protected AbstractTraceRegion doGetRootTraceRegion()
Specified by:
doGetRootTraceRegion in class AbstractTrace

setTraceRegionProvider

protected void setTraceRegionProvider(ITraceRegionProvider traceRegionProvider)

getTraceRegionProvider

protected ITraceRegionProvider getTraceRegionProvider()

setLocalStorage

protected void setLocalStorage(org.eclipse.core.resources.IStorage derivedResource)