core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/AbstractSDKManager.java
equal
deleted
inserted
replaced
316 osVersion = new Version("9.5"); |
316 osVersion = new Version("9.5"); |
317 } |
317 } |
318 sdk = SymbianSDKFactory.createInstance(id, |
318 sdk = SymbianSDKFactory.createInstance(id, |
319 entry.getEpocRoot(), |
319 entry.getEpocRoot(), |
320 osVersion); |
320 osVersion); |
|
321 if (isInSDKList(sdk)) { |
|
322 continue; |
|
323 } |
321 ((SymbianSDK)sdk).setEnabled(entry.isEnabled()); |
324 ((SymbianSDK)sdk).setEnabled(entry.isEnabled()); |
322 synchronized (sdkList) { |
325 synchronized (sdkList) { |
323 sdkList.add(sdk); |
326 sdkList.add(sdk); |
324 } |
327 } |
325 } else { |
328 } else { |
344 setSDKCacheEntry(entry); |
347 setSDKCacheEntry(entry); |
345 } |
348 } |
346 flushSDKCache(); |
349 flushSDKCache(); |
347 } |
350 } |
348 } |
351 } |
|
352 |
|
353 /** |
|
354 * Check whether an SDK already exist in SDK list. |
|
355 * @param sdk - SDK to be checked |
|
356 * @return true if SDK already exist in SDK list, false otherwise |
|
357 */ |
|
358 abstract protected boolean isInSDKList(ISymbianSDK sdk); |
349 |
359 |
350 /** |
360 /** |
351 * Tell whether EPOCROOT can be changed for a given ISymbianSDK |
361 * Tell whether EPOCROOT can be changed for a given ISymbianSDK |
352 * @return flag |
362 * @return flag |
353 */ |
363 */ |