Package org.eclipse.cdt.core.index
Class ResourceContainerRelativeLocationConverter
java.lang.Object
org.eclipse.cdt.core.index.ResourceContainerRelativeLocationConverter
- All Implemented Interfaces:
IIndexLocationConverter
public class ResourceContainerRelativeLocationConverter
extends Object
implements IIndexLocationConverter
A location converter for converting project resource locations to be relative to a specified
container. Resources outside of the associated project will not be converted (ignored).
This location converter is internal-representation-compatible with URIRelativeLocationConverter
This location converter is internal-representation-compatible with URIRelativeLocationConverter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResourceContainerRelativeLocationConverter
(org.eclipse.core.resources.IContainer container) -
Method Summary
Modifier and TypeMethodDescriptionfromInternalFormat
(String raw) Convert a raw string in an internal IIndexFragment implementation specific format to an IIndexFileLocation or null if the internal format could not be translated.toInternalFormat
(IIndexFileLocation location) Convert a IIndexFileLocation to the internal IIndexFragment implementation specific format or null if the location could not be translated.
-
Field Details
-
root
protected org.eclipse.core.resources.IWorkspaceRoot root -
fullPath
protected org.eclipse.core.runtime.IPath fullPath
-
-
Constructor Details
-
ResourceContainerRelativeLocationConverter
public ResourceContainerRelativeLocationConverter(org.eclipse.core.resources.IContainer container) - Parameters:
container
- the resource container to convert relative to
-
-
Method Details
-
fromInternalFormat
Description copied from interface:IIndexLocationConverter
Convert a raw string in an internal IIndexFragment implementation specific format to an IIndexFileLocation or null if the internal format could not be translated.- Specified by:
fromInternalFormat
in interfaceIIndexLocationConverter
-
toInternalFormat
Description copied from interface:IIndexLocationConverter
Convert a IIndexFileLocation to the internal IIndexFragment implementation specific format or null if the location could not be translated.- Specified by:
toInternalFormat
in interfaceIIndexLocationConverter
- Returns:
- an internal representation for the location specified
-