1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Changed test to use the new way of getting extension points

This commit is contained in:
Sean Evoy 2004-05-20 14:59:11 +00:00
parent 729d4c2fcb
commit 7bac8a490b

View file

@ -60,6 +60,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
public class ManagedBuildCoreTests extends TestCase {
private static final boolean boolVal = true;
@ -242,7 +243,7 @@ public class ManagedBuildCoreTests extends TestCase {
ManagedBuildManager.saveBuildInfo(project, false);
// 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) {
fail("Failed to retrieve the extension point ScannerInfoProvider.");
}