org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DeploymentTargetPresentationsManager.java
changeset 460 c0bff5ed874c
parent 457 f1087591ff71
--- a/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DeploymentTargetPresentationsManager.java	Thu Jul 29 10:51:59 2010 -0700
+++ b/org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DeploymentTargetPresentationsManager.java	Thu Jul 29 15:59:01 2010 -0700
@@ -34,7 +34,7 @@
     public ITargetDetailsPane createDetailsPane(IDeploymentTargetType targetType) {
         readRegistry();
         final IConfigurationElement element = presentations.get(targetType);
-        if (element != null && element.getAttribute("detailsPane") == null) {
+        if (element != null && element.getAttribute("detailsPane") != null) {
             try {
                 return (ITargetDetailsPane) element.createExecutableExtension("detailsPane");
             } catch (CoreException e) {
@@ -50,7 +50,7 @@
             final IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(
                     MTWCoreUI.PLUGIN_ID, "targetPresentation");
             for (IConfigurationElement element : elements) {
-                final String runtimeId = element.getAttribute("targetId");
+                final String runtimeId = element.getAttribute("targetTypeId");
                 final IDeploymentTargetType targetType = MTWCoreUI.getDefault().getDeploymentTypesRegistry()
                         .getType(runtimeId);
                 if (targetType == null) {