org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DeploymentTargetTypesRegistry.java
changeset 457 f1087591ff71
parent 456 12b549765c34
--- a/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DeploymentTargetTypesRegistry.java	Wed Jul 28 14:07:39 2010 -0700
+++ b/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DeploymentTargetTypesRegistry.java	Wed Jul 28 15:43:33 2010 -0700
@@ -24,11 +24,9 @@
 import org.symbian.tools.mtw.ui.deployment.IDeploymentTargetType;
 
 public class DeploymentTargetTypesRegistry {
-    private static DeploymentTargetTypesRegistry INSTANCE;
-
     private DeploymentTargetTypeDescriptor[] descriptors;
 
-    private DeploymentTargetTypesRegistry() {
+    public DeploymentTargetTypesRegistry() {
         readExtensions();
     }
 
@@ -41,18 +39,11 @@
         }
     }
 
-    public static synchronized DeploymentTargetTypesRegistry getInstance() {
-        if (INSTANCE == null) {
-            INSTANCE = new DeploymentTargetTypesRegistry();
-        }
-        return INSTANCE;
-    }
-
     public DeploymentTargetTypeDescriptor[] getProviders() {
         return descriptors;
     }
 
-    public IDeploymentTargetType getProvider(String id) {
+    public IDeploymentTargetType getType(String id) {
         DeploymentTargetTypeDescriptor[] providers = getProviders();
         for (DeploymentTargetTypeDescriptor descriptor : providers) {
             if (descriptor.getId().equals(id)) {