public interface ITrace
Modifier and Type | Interface and Description |
---|---|
static interface |
ITrace.Internal |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ILocationInResource> |
getAllAssociatedLocations()
Returns all known associated
locations . |
java.lang.Iterable<ILocationInResource> |
getAllAssociatedLocations(org.eclipse.core.resources.IStorage associatedStorage)
Returns all known
locations that were produced from the associated resource
in the given targetResource . |
java.lang.Iterable<ILocationInResource> |
getAllAssociatedLocations(ITextRegion localRegion)
Returns all associated
locations that match the given region . |
java.lang.Iterable<ILocationInResource> |
getAllAssociatedLocations(ITextRegion localRegion,
org.eclipse.core.resources.IStorage associatedStorage)
|
ILocationInResource |
getBestAssociatedLocation(ITextRegion localRegion)
Returns the best associated
location that matches the given region . |
ILocationInResource |
getBestAssociatedLocation(ITextRegion localRegion,
org.eclipse.core.resources.IStorage associatedStorage)
|
LanguageInfo |
getLanguage()
Returns the language that is associated with the source resource.
|
org.eclipse.core.resources.IProject |
getLocalProject()
Returns the source project.
|
org.eclipse.emf.common.util.URI |
getLocalURI()
Returns the URI of the source resource.
|
ILocationInResource getBestAssociatedLocation(ITextRegion localRegion)
location
that matches the given region
.
If the region does not match a single location, the following strategy applies:
null
is returned.
null
.localRegion
- the region in the current resource. May not be null
.null
if none.java.lang.Iterable<ILocationInResource> getAllAssociatedLocations(ITextRegion localRegion)
locations
that match the given region
.localRegion
- the region in the current resource. May not be null
.null
.java.lang.Iterable<ILocationInResource> getAllAssociatedLocations()
locations
.null
.org.eclipse.core.resources.IProject getLocalProject()
null
.null
.org.eclipse.emf.common.util.URI getLocalURI()
null
.null
.LanguageInfo getLanguage()
null
.null
.ILocationInResource getBestAssociatedLocation(ITextRegion localRegion, org.eclipse.core.resources.IStorage associatedStorage)
location
that matches the given
sourceRegion
in the targetResource
.
If the region does not match a single location in the target, the following strategy applies:
targetResource
is returned.
sourceRegion
does not yield
a location in targetResource
, returns null
.localRegion
- the region in the current resource. May not be null
.associatedStorage
- the expected target resource. May not be null
.null
if none.java.lang.Iterable<ILocationInResource> getAllAssociatedLocations(ITextRegion localRegion, org.eclipse.core.resources.IStorage associatedStorage)
localRegion
- the region in the current resource. May not be null
.associatedStorage
- the expected target resource. May not be null
.null
.java.lang.Iterable<ILocationInResource> getAllAssociatedLocations(org.eclipse.core.resources.IStorage associatedStorage)
locations
that were produced from the associated resource
in the given targetResource
.associatedStorage
- the expected target resource. May not be null
.null
.