wait until after SDK scan job is complete before notifiying plugings that the SDKManager load is complete.
authortimkelly
Fri, 03 Sep 2010 10:34:40 -0500
changeset 1947 f0e22d4f5863
parent 1946 edab7c4d5f9f
child 1948 e7b5eac0f096
wait until after SDK scan job is complete before notifiying plugings that the SDKManager load is complete.
core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/AbstractSDKManager.java
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/AbstractSDKManager.java	Thu Sep 02 15:49:09 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/AbstractSDKManager.java	Fri Sep 03 10:34:40 2010 -0500
@@ -113,11 +113,14 @@
 		public void aboutToRun(IJobChangeEvent event) {}
 		public void done(IJobChangeEvent event) {
 			fireInstalledSdkChanged(SDKChangeEventType.eSDKScanned);
+			// Notify any plugins that want to know if the SDKManager has scanned plugins.
+			if (!sdkHookExtenstionsNotified) {
+				notifySDKManagerLoaded();
+				sdkHookExtenstionsNotified = true;
+			}
 		}
 	};
 
-		
-	
 	public AbstractSDKManager() {
 		macroStore = SymbianMacroStore.getInstance();
 		scanJob = new Job ("Scan for installed SDKs") {
@@ -186,11 +189,6 @@
 		
 		updateCarbideSDKCache();
 		
-		// Notify any plugins that want to know if the SDKManager has scanned plugins.
-		if (!sdkHookExtenstionsNotified) {
-			notifySDKManagerLoaded();
-			sdkHookExtenstionsNotified = true;
-		}
 		if (monitor.isCanceled()) {
 			return Status.CANCEL_STATUS;
 		}
@@ -231,6 +229,7 @@
 			if (sdkList.size() < 1) {
 				ensureScannedSDKs();
 			}
+					
 			List<ISymbianSDK> listCopy = new ArrayList<ISymbianSDK>(sdkList);
 			return listCopy;			
 		}