mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Fix documentation, schema fix is contributed by Tim Kelly (Nokia)
This commit is contained in:
parent
d236e380c7
commit
65ff00c607
2 changed files with 9 additions and 6 deletions
|
@ -17,20 +17,23 @@ import org.eclipse.core.filesystem.URIUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A IIndexLocationConverter for converting relative paths within an index, by prefixing them
|
* A IIndexLocationConverter for converting relative paths within an index, by prefixing them
|
||||||
* with the supplied base URI
|
* with the supplied base URI.<p>
|
||||||
|
* <em>Note: The supplied base URI must end with a forward slash</em>
|
||||||
* <br>
|
* <br>
|
||||||
* This location converter is internal-representation-compatible with ResourceContainerRelativeLocationConverter
|
* This location converter is internal-representation-compatible with ResourceContainerRelativeLocationConverter
|
||||||
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* Internal representation is uri relative path (non encoded form)
|
* The associated internal PDOM representation is the relative path (non encoded form)
|
||||||
*/
|
*/
|
||||||
public class URIRelativeLocationConverter implements IIndexLocationConverter {
|
public class URIRelativeLocationConverter implements IIndexLocationConverter {
|
||||||
private URI baseURI;
|
private URI baseURI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an URIRelativeLocationConverter which will relative paths
|
* Constructs an URIRelativeLocationConverter which will relative paths
|
||||||
* by prefixing the supplied base URI
|
* by prefixing the supplied base URI.
|
||||||
* @param baseURI
|
* @param baseURI the URI which will form the absolute base that relative paths
|
||||||
|
* are concatenated to. <em>Note: It must end with a forward slash</em>.
|
||||||
*/
|
*/
|
||||||
public URIRelativeLocationConverter(URI baseURI) {
|
public URIRelativeLocationConverter(URI baseURI) {
|
||||||
this.baseURI = baseURI;
|
this.baseURI = baseURI;
|
||||||
|
|
|
@ -136,8 +136,8 @@ public class AcmeSDKProvider implements IReadOnlyPDOMProvider {
|
||||||
return AcmeNature.isAcmeProject(project);
|
return AcmeNature.isAcmeProject(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IPDOMDescriptor[] getDescriptors(ICProject cproject, ICConfigurationDescription config) {
|
public IPDOMDescriptor[] getDescriptors(ICConfigurationDescription config) {
|
||||||
final IPath sdkBase = AcmeSDKAPI.getSDKBase(cproject, config);
|
final IPath sdkBase = AcmeSDKAPI.getSDKBase(config);
|
||||||
return new IPDOMDescriptor[] { new IPDOMDescriptor() {
|
return new IPDOMDescriptor[] { new IPDOMDescriptor() {
|
||||||
public IIndexLocationConverter getIndexLocationConverter() {
|
public IIndexLocationConverter getIndexLocationConverter() {
|
||||||
return new URIRelativeLocationConverter(URIUtil.toURI(sdkBase));
|
return new URIRelativeLocationConverter(URIUtil.toURI(sdkBase));
|
||||||
|
|
Loading…
Add table
Reference in a new issue