From 7bac8a490b12eaeb0d056d6bca56e455a627eb49 Mon Sep 17 00:00:00 2001 From: Sean Evoy Date: Thu, 20 May 2004 14:59:11 +0000 Subject: [PATCH] Changed test to use the new way of getting extension points --- .../cdt/managedbuild/core/tests/ManagedBuildCoreTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuild/core/tests/ManagedBuildCoreTests.java b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuild/core/tests/ManagedBuildCoreTests.java index 39d4c757301..833038cf861 100644 --- a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuild/core/tests/ManagedBuildCoreTests.java +++ b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuild/core/tests/ManagedBuildCoreTests.java @@ -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."); }