mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Changed test to use the new way of getting extension points
This commit is contained in:
parent
729d4c2fcb
commit
7bac8a490b
1 changed files with 2 additions and 1 deletions
|
@ -60,6 +60,7 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IExtensionPoint;
|
import org.eclipse.core.runtime.IExtensionPoint;
|
||||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
|
import org.eclipse.core.runtime.Platform;
|
||||||
|
|
||||||
public class ManagedBuildCoreTests extends TestCase {
|
public class ManagedBuildCoreTests extends TestCase {
|
||||||
private static final boolean boolVal = true;
|
private static final boolean boolVal = true;
|
||||||
|
@ -242,7 +243,7 @@ public class ManagedBuildCoreTests extends TestCase {
|
||||||
ManagedBuildManager.saveBuildInfo(project, false);
|
ManagedBuildManager.saveBuildInfo(project, false);
|
||||||
|
|
||||||
// Use the plugin mechanism to discover the supplier of the path information
|
// Use the plugin mechanism to discover the supplier of the path information
|
||||||
IExtensionPoint extensionPoint = CCorePlugin.getDefault().getDescriptor().getExtensionPoint("ScannerInfoProvider");
|
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(CCorePlugin.PLUGIN_ID + ".ScannerInfoProvider");
|
||||||
if (extensionPoint == null) {
|
if (extensionPoint == null) {
|
||||||
fail("Failed to retrieve the extension point ScannerInfoProvider.");
|
fail("Failed to retrieve the extension point ScannerInfoProvider.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue