don't scan sdks for p2 sites that are disabled
authortimkelly
Wed, 15 Sep 2010 09:33:14 -0500
changeset 2008 549473f3167e
parent 2007 283cfb261d8f
child 2009 b622387629d6
child 2010 2da3246ba2e6
don't scan sdks for p2 sites that are disabled
core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/NewPluginChecker.java
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/NewPluginChecker.java	Wed Sep 15 09:32:22 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/NewPluginChecker.java	Wed Sep 15 09:33:14 2010 -0500
@@ -59,6 +59,9 @@
 				SubMonitor subMonitor = SubMonitor.convert(monitor, 100);
 				int worked = 100 / sdkList.size();
 				for (ISymbianSDK sdk : sdkList) {
+					if (!sdk.isEnabled()){
+						continue; // Don't bother scanning SDKs that are not enabled
+					}
 					ISBSv2BuildInfo sbsv2BuildInfo = (ISBSv2BuildInfo)sdk.getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER);
 					if (sbsv2BuildInfo != null) {
 						if (sbsv2BuildInfo.isPreviouslyScanned() == false) {