core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2QueryUtils.java
equal
deleted
inserted
replaced
45 import org.w3c.dom.NodeList; |
45 import org.w3c.dom.NodeList; |
46 import org.xml.sax.InputSource; |
46 import org.xml.sax.InputSource; |
47 import org.xml.sax.helpers.DefaultHandler; |
47 import org.xml.sax.helpers.DefaultHandler; |
48 |
48 |
49 import com.nokia.carbide.cpp.internal.api.sdk.SBSv2Utils; |
49 import com.nokia.carbide.cpp.internal.api.sdk.SBSv2Utils; |
|
50 import com.nokia.carbide.cpp.internal.sdk.core.model.SDKManager; |
50 import com.nokia.carbide.cpp.sdk.core.ISymbianSDK; |
51 import com.nokia.carbide.cpp.sdk.core.ISymbianSDK; |
51 import com.nokia.carbide.cpp.sdk.core.SDKCorePlugin; |
52 import com.nokia.carbide.cpp.sdk.core.SDKCorePlugin; |
52 import com.nokia.cpp.internal.api.utils.core.Logging; |
53 import com.nokia.cpp.internal.api.utils.core.Logging; |
53 |
54 |
54 public class SBSv2QueryUtils { |
55 public class SBSv2QueryUtils { |
409 |
410 |
410 return productList; |
411 return productList; |
411 } |
412 } |
412 |
413 |
413 private static boolean checkForMinimumRaptorVersion() throws SBSv2MinimumVersionException{ |
414 private static boolean checkForMinimumRaptorVersion() throws SBSv2MinimumVersionException{ |
414 Version sbsVers = SDKCorePlugin.getSDKManager().getSBSv2Version(false); |
415 SDKManager sdkMgr = (SDKManager)SDKCorePlugin.getSDKManager(); |
415 if (sbsVers.compareTo(SDKCorePlugin.getSDKManager().getMinimumSupportedSBSv2Version()) >= 0) |
416 Version sbsVers = sdkMgr.getSBSv2Version(false); |
|
417 if (sbsVers.compareTo(sdkMgr.getMinimumSupportedSBSv2Version()) >= 0) |
416 return true; |
418 return true; |
417 else { |
419 else { |
418 String message = "Raptor/SBSv2 minimum version supported in Carbide.c++ is " + SDKCorePlugin.getSDKManager().getMinimumSupportedSBSv2Version() + ". Your sbs version is " + sbsVers + ". Please update your sbs installation and 'Rescan' from the Build Configuration Filtering preference page ."; |
420 String message = "Raptor/SBSv2 minimum version supported in Carbide.c++ is " + sdkMgr.getMinimumSupportedSBSv2Version() + ". Your sbs version is " + sbsVers + ". Please update your sbs installation and 'Rescan' from the Build Configuration Filtering preference page ."; |
419 throw new SBSv2MinimumVersionException(message); |
421 throw new SBSv2MinimumVersionException(message); |
420 } |
422 } |
421 } |
423 } |
422 |
424 |
423 public static HashMap<String, String> getCompleteAliasList() throws SBSv2MinimumVersionException { |
425 public static HashMap<String, String> getCompleteAliasList() throws SBSv2MinimumVersionException { |