Bug 389192 - [3.6.2+] [target] Active target platform is not in sync after restart
diff --git a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/provisional/LoadTargetDefinitionJob.java b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/provisional/LoadTargetDefinitionJob.java
index 495a189..4c18cdb 100644
--- a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/provisional/LoadTargetDefinitionJob.java
+++ b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/provisional/LoadTargetDefinitionJob.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 IBM Corporation and others.
+ * Copyright (c) 2009, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -327,7 +327,7 @@
IBundleContainer[] containers = fTarget.getBundleContainers();
boolean profile = false;
if (containers != null && containers.length > 0) {
- profile = containers[0] instanceof ProfileBundleContainer;
+ profile = containers[0] instanceof ProfileBundleContainer || containers[0] instanceof FeatureBundleContainer;
}
pref.setValue(ICoreConstants.TARGET_PLATFORM_REALIZATION, profile);
}