improved PHP parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / externaltools / internal / registry / ExternalToolVariableRegistry.java
index bd65b25..bd450ba 100644 (file)
@@ -5,19 +5,20 @@ Copyright (c) 2002 IBM Corp. and others. All rights reserved.
 This file is made available under the terms of the Common Public License v1.0
 which accompanies this distribution, and is available at
 http://www.eclipse.org/legal/cpl-v10.html
+�
 Contributors:
 **********************************************************************/
 
 import java.util.HashMap;
 
+import net.sourceforge.phpdt.externaltools.internal.model.ExternalToolsPlugin;
+import net.sourceforge.phpdt.externaltools.model.IExternalToolConstants;
+
 import org.eclipse.core.runtime.IConfigurationElement;
 import org.eclipse.core.runtime.IExtension;
 import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.IPluginRegistry;
+import org.eclipse.core.runtime.IExtensionRegistry;
 import org.eclipse.core.runtime.Platform;
-import net.sourceforge.phpdt.externaltools.internal.model.ExternalToolsPlugin;
-import net.sourceforge.phpdt.externaltools.model.IExternalToolConstants;
 
 /**
  * General registry reader for external tool variables.
@@ -93,7 +94,8 @@ public abstract class ExternalToolVariableRegistry {
         */
        private void loadVariables() {
                variables = new HashMap();
-               IPluginRegistry registry = Platform.getPluginRegistry();
+               IExtensionRegistry registry= Platform.getExtensionRegistry();
+//             IPluginRegistry registry = Platform.getPluginRegistry();
                IExtensionPoint point = registry.getExtensionPoint(IExternalToolConstants.PLUGIN_ID, extensionPointId);
                if (point != null) {
                        IExtension[] extensions = point.getExtensions();