mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +02:00
Removed unnecessary changes against master
This commit is contained in:
parent
bbec91c5bc
commit
2559c118ec
4 changed files with 134 additions and 199 deletions
|
@ -211,11 +211,9 @@ public class IndexProviderManagerTest extends IndexTestBase {
|
||||||
new MockPDOM("contentID.bar", "91"),
|
new MockPDOM("contentID.bar", "91"),
|
||||||
new MockPDOM("contentID.baz", "89")
|
new MockPDOM("contentID.baz", "89")
|
||||||
};
|
};
|
||||||
@Override
|
|
||||||
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
||||||
return fragments;
|
return fragments;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public boolean providesFor(ICProject project) throws CoreException {
|
public boolean providesFor(ICProject project) throws CoreException {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -225,11 +223,9 @@ public class IndexProviderManagerTest extends IndexTestBase {
|
||||||
new MockPDOM("contentID.baz", "90"),
|
new MockPDOM("contentID.baz", "90"),
|
||||||
new MockPDOM("contentID.contentA", "38"),
|
new MockPDOM("contentID.contentA", "38"),
|
||||||
};
|
};
|
||||||
@Override
|
|
||||||
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
||||||
return fragments;
|
return fragments;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public boolean providesFor(ICProject project) throws CoreException {
|
public boolean providesFor(ICProject project) throws CoreException {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -271,11 +267,9 @@ public class IndexProviderManagerTest extends IndexTestBase {
|
||||||
new MockPDOM("contentID.bar", "91"),
|
new MockPDOM("contentID.bar", "91"),
|
||||||
new MockPDOM("contentID.baz", "89")
|
new MockPDOM("contentID.baz", "89")
|
||||||
};
|
};
|
||||||
@Override
|
|
||||||
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
||||||
return fragments;
|
return fragments;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public boolean providesFor(ICProject project) throws CoreException {
|
public boolean providesFor(ICProject project) throws CoreException {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -284,11 +278,9 @@ public class IndexProviderManagerTest extends IndexTestBase {
|
||||||
IIndexFragment[] fragments= new IIndexFragment[] {
|
IIndexFragment[] fragments= new IIndexFragment[] {
|
||||||
new MockPDOM("contentID.contentA", "41"),
|
new MockPDOM("contentID.contentA", "41"),
|
||||||
};
|
};
|
||||||
@Override
|
|
||||||
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) {
|
||||||
return fragments;
|
return fragments;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public boolean providesFor(ICProject project) throws CoreException {
|
public boolean providesFor(ICProject project) throws CoreException {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -528,7 +520,6 @@ class MockStateIndexProvider implements IIndexProvider {
|
||||||
this.targetProject = cproject;
|
this.targetProject = cproject;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean providesFor(ICProject cproject) throws CoreException {
|
public boolean providesFor(ICProject cproject) throws CoreException {
|
||||||
return this.targetProject.equals(cproject);
|
return this.targetProject.equals(cproject);
|
||||||
}
|
}
|
||||||
|
@ -551,7 +542,6 @@ class MockStateIndexFragmentProvider extends MockStateIndexProvider implements I
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) throws CoreException {
|
public IIndexFragment[] getIndexFragments(ICConfigurationDescription config) throws CoreException {
|
||||||
int index = MockState.states.indexOf(config.getId());
|
int index = MockState.states.indexOf(config.getId());
|
||||||
index = invert ? (fragments.length-1)-index : index;
|
index = invert ? (fragments.length-1)-index : index;
|
||||||
|
@ -574,201 +564,146 @@ class MockConfig implements ICConfigurationDescription {
|
||||||
this.project= project;
|
this.project= project;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICConfigExtensionReference create(String extensionPoint,
|
public ICConfigExtensionReference create(String extensionPoint,
|
||||||
String extension) throws CoreException {
|
String extension) throws CoreException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICExternalSetting createExternalSetting(String[] languageIDs,
|
public ICExternalSetting createExternalSetting(String[] languageIDs,
|
||||||
String[] contentTypeIds, String[] extensions,
|
String[] contentTypeIds, String[] extensions,
|
||||||
ICSettingEntry[] entries) throws WriteAccessException {
|
ICSettingEntry[] entries) throws WriteAccessException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICFileDescription createFileDescription(IPath path,
|
public ICFileDescription createFileDescription(IPath path,
|
||||||
ICResourceDescription base) throws CoreException,
|
ICResourceDescription base) throws CoreException,
|
||||||
WriteAccessException {
|
WriteAccessException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICFolderDescription createFolderDescription(IPath path,
|
public ICFolderDescription createFolderDescription(IPath path,
|
||||||
ICFolderDescription base) throws CoreException,
|
ICFolderDescription base) throws CoreException,
|
||||||
WriteAccessException {
|
WriteAccessException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICConfigExtensionReference[] get(String extensionPointID) {
|
public ICConfigExtensionReference[] get(String extensionPointID) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICBuildSetting getBuildSetting() {
|
public ICBuildSetting getBuildSetting() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getBuildSystemId() {
|
public String getBuildSystemId() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICdtVariablesContributor getBuildVariablesContributor() {
|
public ICdtVariablesContributor getBuildVariablesContributor() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public CConfigurationData getConfigurationData() {
|
public CConfigurationData getConfigurationData() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICExternalSetting[] getExternalSettings() {
|
public ICExternalSetting[] getExternalSettings() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICFileDescription[] getFileDescriptions() {
|
public ICFileDescription[] getFileDescriptions() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICFolderDescription[] getFolderDescriptions() {
|
public ICFolderDescription[] getFolderDescriptions() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICProjectDescription getProjectDescription() {
|
public ICProjectDescription getProjectDescription() {
|
||||||
return CoreModel.getDefault().getProjectDescription(project);
|
return CoreModel.getDefault().getProjectDescription(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map getReferenceInfo() {
|
public Map getReferenceInfo() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICResourceDescription getResourceDescription(IPath path,
|
public ICResourceDescription getResourceDescription(IPath path,
|
||||||
boolean exactPath) {
|
boolean exactPath) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICResourceDescription[] getResourceDescriptions() {
|
public ICResourceDescription[] getResourceDescriptions() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICFolderDescription getRootFolderDescription() {return null;}
|
public ICFolderDescription getRootFolderDescription() {return null;}
|
||||||
@Override
|
|
||||||
public Object getSessionProperty(QualifiedName name) {return null;}
|
public Object getSessionProperty(QualifiedName name) {return null;}
|
||||||
@Override
|
|
||||||
public ICSourceEntry[] getSourceEntries() {return null;}
|
public ICSourceEntry[] getSourceEntries() {return null;}
|
||||||
@Override
|
|
||||||
public ICTargetPlatformSetting getTargetPlatformSetting() {return null;}
|
public ICTargetPlatformSetting getTargetPlatformSetting() {return null;}
|
||||||
@Override
|
|
||||||
public boolean isActive() {return false;}
|
public boolean isActive() {return false;}
|
||||||
@Override
|
|
||||||
public boolean isModified() {return false;}
|
public boolean isModified() {return false;}
|
||||||
@Override
|
|
||||||
public boolean isPreferenceConfiguration() {return false;}
|
public boolean isPreferenceConfiguration() {return false;}
|
||||||
@Override
|
|
||||||
public void remove(ICConfigExtensionReference ext) throws CoreException {}
|
public void remove(ICConfigExtensionReference ext) throws CoreException {}
|
||||||
@Override
|
|
||||||
public void remove(String extensionPoint) throws CoreException {}
|
public void remove(String extensionPoint) throws CoreException {}
|
||||||
@Override
|
|
||||||
public void removeExternalSetting(ICExternalSetting setting) throws WriteAccessException {}
|
public void removeExternalSetting(ICExternalSetting setting) throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void removeExternalSettings() throws WriteAccessException {}
|
public void removeExternalSettings() throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void removeResourceDescription(ICResourceDescription des)
|
public void removeResourceDescription(ICResourceDescription des)
|
||||||
throws CoreException, WriteAccessException {}
|
throws CoreException, WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void setActive() throws WriteAccessException {}
|
public void setActive() throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void setConfigurationData(String buildSystemId,
|
public void setConfigurationData(String buildSystemId,
|
||||||
CConfigurationData data) throws WriteAccessException {}
|
CConfigurationData data) throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void setDescription(String des) throws WriteAccessException {}
|
public void setDescription(String des) throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void setName(String name) throws WriteAccessException {}
|
public void setName(String name) throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void setReferenceInfo(Map<String, String> refs) throws WriteAccessException {}
|
public void setReferenceInfo(Map<String, String> refs) throws WriteAccessException {}
|
||||||
@Override
|
|
||||||
public void setSessionProperty(QualifiedName name, Object value) {}
|
public void setSessionProperty(QualifiedName name, Object value) {}
|
||||||
@Override
|
|
||||||
public void setSourceEntries(ICSourceEntry[] entries) throws CoreException,
|
public void setSourceEntries(ICSourceEntry[] entries) throws CoreException,
|
||||||
WriteAccessException {}
|
WriteAccessException {}
|
||||||
@Override
|
|
||||||
public ICSettingObject[] getChildSettings() {return null;}
|
public ICSettingObject[] getChildSettings() {return null;}
|
||||||
@Override
|
|
||||||
public ICConfigurationDescription getConfiguration() {return null;}
|
public ICConfigurationDescription getConfiguration() {return null;}
|
||||||
@Override
|
|
||||||
public String getName() {return null;}
|
public String getName() {return null;}
|
||||||
@Override
|
|
||||||
public ICSettingContainer getParent() {return null;}
|
public ICSettingContainer getParent() {return null;}
|
||||||
@Override
|
|
||||||
public int getType() {return 0;}
|
public int getType() {return 0;}
|
||||||
@Override
|
|
||||||
public boolean isReadOnly() {return false;}
|
public boolean isReadOnly() {return false;}
|
||||||
@Override
|
|
||||||
public boolean isValid() {return false;}
|
public boolean isValid() {return false;}
|
||||||
@Override
|
|
||||||
public ICStorageElement getStorage(String id, boolean create) throws CoreException {
|
public ICStorageElement getStorage(String id, boolean create) throws CoreException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public ICStorageElement importStorage(String id, ICStorageElement storage) {
|
public ICStorageElement importStorage(String id, ICStorageElement storage) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void removeStorage(String id) throws CoreException {
|
public void removeStorage(String id) throws CoreException {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICLanguageSetting getLanguageSettingForFile(IPath path, boolean ignoreExludeStatus) {
|
public ICLanguageSetting getLanguageSettingForFile(IPath path, boolean ignoreExludeStatus) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getExternalSettingsProviderIds() {
|
public String[] getExternalSettingsProviderIds() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setExternalSettingsProviderIds(String[] ids) {}
|
public void setExternalSettingsProviderIds(String[] ids) {}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateExternalSettingsProviders(String[] ids) {}
|
public void updateExternalSettingsProviders(String[] ids) {}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ICSourceEntry[] getResolvedSourceEntries() {
|
public ICSourceEntry[] getResolvedSourceEntries() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public CConfigurationStatus getConfigurationStatus() {
|
public CConfigurationStatus getConfigurationStatus() {
|
||||||
return CConfigurationStatus.CFG_STATUS_OK;
|
return CConfigurationStatus.CFG_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setReadOnly(boolean readOnly, boolean keepModify) {}
|
public void setReadOnly(boolean readOnly, boolean keepModify) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -653,9 +653,9 @@
|
||||||
<extension-point id="templateProcessTypes" name="%templateProcessTypes.name" schema="schema/templateProcessTypes.exsd"/>
|
<extension-point id="templateProcessTypes" name="%templateProcessTypes.name" schema="schema/templateProcessTypes.exsd"/>
|
||||||
<extension-point id="templateAssociations" name="%templateAssociations.name" schema="schema/templateAssociations.exsd"/>
|
<extension-point id="templateAssociations" name="%templateAssociations.name" schema="schema/templateAssociations.exsd"/>
|
||||||
<extension-point id="ScannerInfoProvider2" name="%scannerInfoProvider2.name" schema="schema/ScannerInfoProvider2.exsd"/>
|
<extension-point id="ScannerInfoProvider2" name="%scannerInfoProvider2.name" schema="schema/ScannerInfoProvider2.exsd"/>
|
||||||
<extension-point id="EFSExtensionProvider" name="EFSExtensionProvider" schema="schema/EFSExtensionProvider.exsd"/>
|
<extension-point id="EFSExtensionProvider" name="%efsExtensionProvider.name" schema="schema/EFSExtensionProvider.exsd"/>
|
||||||
|
<extension-point id="RefreshExclusionFactory" name="%refreshExclusionFactory.name" schema="schema/RefreshExclusionFactory.exsd"/>
|
||||||
<extension-point id="LanguageSettingsProvider" name="%LanguageSettingsProvider.name" schema="schema/LanguageSettingsProvider.exsd"/>
|
<extension-point id="LanguageSettingsProvider" name="%LanguageSettingsProvider.name" schema="schema/LanguageSettingsProvider.exsd"/>
|
||||||
<extension-point id="RefreshExclusionFactory" name="Refresh Exclusion Factory" schema="schema/RefreshExclusionFactory.exsd"/>
|
|
||||||
<extension-point id="UNCPathConverter" name="%uncPathConverter.name" schema="schema/UNCPathConverter.exsd"/>
|
<extension-point id="UNCPathConverter" name="%uncPathConverter.name" schema="schema/UNCPathConverter.exsd"/>
|
||||||
|
|
||||||
<extension
|
<extension
|
||||||
|
|
|
@ -713,7 +713,7 @@ outer:
|
||||||
* @return URI
|
* @return URI
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
*/
|
*/
|
||||||
public URI toURI(IPath path) {
|
private URI toURI(IPath path) {
|
||||||
// try {
|
// try {
|
||||||
URI baseURI = getWorkingDirectoryURI();
|
URI baseURI = getWorkingDirectoryURI();
|
||||||
String uriString = path.toString();
|
String uriString = path.toString();
|
||||||
|
|
Loading…
Add table
Reference in a new issue