public interface IPositionTrackerManager
Modifier and Type | Method and Description |
---|---|
IPositionConverter |
findPositionConverter(org.eclipse.core.resources.IFile file,
long timestamp)
Returns the position converter suitable for mapping character offsets of the
given file/timestamp to the current version of it.
|
IPositionConverter |
findPositionConverter(org.eclipse.core.runtime.IPath fullPathOrExternalLocation,
long timestamp)
Returns the position tracker suitable for mapping character offsets of the
given external file/timestamp to the current version of it.
|
IPositionConverter |
findPositionConverter(ITranslationUnit tu,
long timestamp)
Returns the position converter suitable for mapping character offsets of the
given translation unit to the current version of it.
|
IPositionConverter |
findPositionConverter(URI externalLocation,
long timestamp)
Returns the position tracker suitable for mapping character offsets of the
given external file/timestamp to the current version of it.
|
IPositionConverter findPositionConverter(ITranslationUnit tu, long timestamp)
tu
- a translation unit for which the position adapter is requested.timestamp
- identifies the version of the file stored on disk.null
.IPositionConverter findPositionConverter(org.eclipse.core.resources.IFile file, long timestamp)
file
- a file for which the position adapter is requested.timestamp
- identifies the version of the file stored on disk.null
.IPositionConverter findPositionConverter(org.eclipse.core.runtime.IPath fullPathOrExternalLocation, long timestamp)
The method can be used for resources by supplying the full path. However, it does not work if you supply the location of a resource.
fullPathOrExternalLocation
- an external location for which the position adapter is requested.timestamp
- identifies the version of the file stored on disk.null
.IPositionConverter findPositionConverter(URI externalLocation, long timestamp)
The method cannot be used for resources that are part of the workspace.
externalLocation
- an external location for which the position adapter is requested.timestamp
- identifies the version of the file stored on disk.null
.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.