wait until after SDK scan job is complete before notifiying plugings that the SDKManager load is complete.
--- 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;
}