core/com.nokia.carbide.cpp.sysdoc.hover/src/com/nokia/carbide/cpp/sysdoc/internal/hover/dal/sdk/SDKController.java
equal
deleted
inserted
replaced
81 |
81 |
82 } |
82 } |
83 } |
83 } |
84 }; |
84 }; |
85 probeAllAvailableSystemSDKDirectories(); |
85 probeAllAvailableSystemSDKDirectories(); |
|
86 |
|
87 // add the listener after getting the initial list of SDK's to prevent possible |
|
88 // bundle state exception |
|
89 sdkMgr.addInstalledSdkChangeListener(sdkListChangeListener); |
86 } |
90 } |
87 |
91 |
88 |
92 |
89 /** |
93 /** |
90 * Get all available SDK directories which is both installed and custom SDKs |
94 * Get all available SDK directories which is both installed and custom SDKs |
142 * Discovers all available installed SDKs which are used by Carbide. |
146 * Discovers all available installed SDKs which are used by Carbide. |
143 * |
147 * |
144 * @throws MalformedURLException |
148 * @throws MalformedURLException |
145 */ |
149 */ |
146 public void probeAllAvailableSystemSDKDirectories() { |
150 public void probeAllAvailableSystemSDKDirectories() { |
147 sdkMgr.addInstalledSdkChangeListener(sdkListChangeListener); |
|
148 List<ISymbianSDK> sdkList = sdkMgr.getSDKList(); |
151 List<ISymbianSDK> sdkList = sdkMgr.getSDKList(); |
149 |
152 |
150 for (ISymbianSDK currSDK : sdkList) { |
153 for (ISymbianSDK currSDK : sdkList) { |
151 if (currSDK.isEnabled()) { |
154 if (currSDK.isEnabled()) { |
152 String epocRootStr = currSDK.getEPOCROOT(); |
155 String epocRootStr = currSDK.getEPOCROOT(); |