project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/sharedui/BuilderSelectionComposite.java
branchRCL_2_4
changeset 1240 be20b442a60b
parent 1078 27b0f877c86e
child 1241 8ff5d63314b3
equal deleted inserted replaced
1238:3d9742b8fcac 1240:be20b442a60b
    86 		IStatus status = null;
    86 		IStatus status = null;
    87 		if (builderCombo != null && builderCombo.getSelectionIndex() == 1) {
    87 		if (builderCombo != null && builderCombo.getSelectionIndex() == 1) {
    88 			
    88 			
    89 			IPath sbsBinPath = SBSv2Utils.getSBSBinDirectory(); 
    89 			IPath sbsBinPath = SBSv2Utils.getSBSBinDirectory(); 
    90 			
    90 			
    91 			// if SBSv2 is selected, make sure SBS_HOME is defined
       
    92 			if (SBSv2Utils.getSBSBinDirectory() == null){
    91 			if (SBSv2Utils.getSBSBinDirectory() == null){
    93 				status = new Status(Status.ERROR, ProjectUIPlugin.PLUGIN_ID, "SBS_HOME environment variable is not defined. Carbide needs this variable to find the base SBS install.");
    92 				status = new Status(Status.ERROR, ProjectUIPlugin.PLUGIN_ID, "The Symbian Build System (sbs) cannot be found on the PATH. Carbide needs a valid SBS installation on the PATH to use the SBSv2 builder."); 
    94 			}
       
    95 			
       
    96 			// check to see if SBS_HOME directory really exists
       
    97 			else if (!sbsBinPath.toFile().exists()){
       
    98 				status = new Status(Status.ERROR, ProjectUIPlugin.PLUGIN_ID, "SBS_HOME environment variable path does not exist: " + sbsBinPath.toOSString()); 
       
    99 			}
    93 			}
   100 			// check the raptor version
    94 			// check the raptor version
   101 			else if (SDKCorePlugin.getSDKManager().getSBSv2Version(false).getMajor() == 0){
    95 			else if (SDKCorePlugin.getSDKManager().getSBSv2Version(false).getMajor() == 0){
   102 				// Try to scan again....
    96 				// Try to scan again....
   103 				if (SDKCorePlugin.getSDKManager().getSBSv2Version(true).getMajor() == 0){
    97 				if (SDKCorePlugin.getSDKManager().getSBSv2Version(true).getMajor() == 0){