core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2QueryUtils.java
equal
deleted
inserted
replaced
357 } |
357 } |
358 } |
358 } |
359 |
359 |
360 public static HashMap<String, String> getCompleteAliasList() throws SBSv2MinimumVersionException { |
360 public static HashMap<String, String> getCompleteAliasList() throws SBSv2MinimumVersionException { |
361 HashMap<String, String> resultMap = new HashMap<String, String>(); |
361 HashMap<String, String> resultMap = new HashMap<String, String>(); |
362 //return getAliasesForSDK(null); |
|
363 |
362 |
364 // iterate all SDKs and build the map up |
363 // iterate all SDKs and build the map up |
365 for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()){ |
364 for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()){ |
366 if (sdk.isEnabled() && (new File(sdk.getEPOCROOT()).exists())){ |
365 if (sdk.isEnabled() && (new File(sdk.getEPOCROOT()).exists())){ |
367 HashMap<String, String> aliasMap = getAliasesForSDK(sdk); |
366 HashMap<String, String> aliasMap = getAliasesForSDK(sdk); |
374 } |
373 } |
375 |
374 |
376 return resultMap; |
375 return resultMap; |
377 } |
376 } |
378 |
377 |
|
378 public static List<String> getCompleteProductVariantList() throws SBSv2MinimumVersionException { |
|
379 List<String> resultList = new ArrayList<String>(); |
|
380 |
|
381 // iterate all SDKs and build the map up |
|
382 for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()){ |
|
383 if (sdk.isEnabled() && (new File(sdk.getEPOCROOT()).exists())){ |
|
384 List<String> productList = getProductVariantsForSDK(sdk); |
|
385 for (String variant : productList){ |
|
386 if (!resultList.contains(variant)){ |
|
387 resultList.add(variant); |
|
388 } |
|
389 } |
|
390 } |
|
391 } |
|
392 |
|
393 return resultList; |
|
394 } |
379 |
395 |
380 } |
396 } |