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
-
-
Constructor Summary
Constructors Constructor Description ResourceContainerRelativeLocationConverter(org.eclipse.core.resources.IContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIndexFileLocation
fromInternalFormat(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.String
toInternalFormat(IIndexFileLocation location)
Convert a IIndexFileLocation to the internal IIndexFragment implementation specific format or null if the location could not be translated.
-
-
-
Method Detail
-
fromInternalFormat
public IIndexFileLocation fromInternalFormat(String raw)
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
public String toInternalFormat(IIndexFileLocation location)
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
-
-