public class ResourceContainerRelativeLocationConverter extends Object implements IIndexLocationConverter
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.core.runtime.IPath |
fullPath |
protected org.eclipse.core.resources.IWorkspaceRoot |
root |
Constructor and Description |
---|
ResourceContainerRelativeLocationConverter(org.eclipse.core.resources.IContainer container) |
Modifier and Type | Method and 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.
|
protected org.eclipse.core.resources.IWorkspaceRoot root
protected org.eclipse.core.runtime.IPath fullPath
public ResourceContainerRelativeLocationConverter(org.eclipse.core.resources.IContainer container)
container
- the resource container to convert relative topublic IIndexFileLocation fromInternalFormat(String raw)
IIndexLocationConverter
fromInternalFormat
in interface IIndexLocationConverter
public String toInternalFormat(IIndexFileLocation location)
IIndexLocationConverter
toInternalFormat
in interface IIndexLocationConverter
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.