merge commit
authortimkelly
Wed, 22 Sep 2010 13:55:01 -0500
changeset 2091 42a54f0190c1
parent 2090 0a42921f1c76 (diff)
parent 2089 3d4e0b2128c1 (current diff)
child 2092 047b263f1004
merge commit
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/SymbianSDK.java	Wed Sep 22 13:40:05 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/model/SymbianSDK.java	Wed Sep 22 13:55:01 2010 -0500
@@ -156,21 +156,6 @@
 		return osVersion;
 	}
 
-//	public File getPrefixFile(String builderId) {
-//		File prefixFile = prefixFileMap.get(builderId);
-//		if (prefixFile == null) {
-//			ISDKBuildInfo buildInfo = getBuildInfo(builderId);
-//			if (buildInfo != null) {
-//				IPath prefixFilePath = buildInfo.getPrefixFromVariantCfg();
-//				if (prefixFilePath != null) {
-//					prefixFile = prefixFilePath.toFile();
-//					setPrefixFile(prefixFilePath, builderId);
-//				}
-//			}
-//		}
-//		return prefixFile;
-//	}
-
 	public IPath getReleaseRoot() {
 		String epocRoot = getEPOCROOT();
 		if (epocRoot.length() > 0) {
@@ -642,7 +627,7 @@
 		return hasScannedRaptor;
 	}
 
-	void setScannedRaptor(boolean hasScannedRaptor){
+	public void setScannedRaptor(boolean hasScannedRaptor){
 		this.hasScannedRaptor = hasScannedRaptor;
 	}
 }
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java	Wed Sep 22 13:40:05 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java	Wed Sep 22 13:55:01 2010 -0500
@@ -67,9 +67,12 @@
 import org.eclipse.ui.IWorkbenchPreferencePage;
 import org.eclipse.ui.PlatformUI;
 
+import com.nokia.carbide.cpp.internal.api.sdk.ISBSv2BuildInfo;
 import com.nokia.carbide.cpp.internal.api.sdk.SymbianBuildContextDataCache;
+import com.nokia.carbide.cpp.internal.sdk.core.model.SBSv2BuildInfo;
 import com.nokia.carbide.cpp.internal.sdk.core.model.SymbianSDK;
 import com.nokia.carbide.cpp.sdk.core.ISDKManager;
+import com.nokia.carbide.cpp.sdk.core.ISymbianBuilderID;
 import com.nokia.carbide.cpp.sdk.core.ISymbianSDK;
 import com.nokia.carbide.cpp.sdk.core.SDKCorePlugin;
 import com.nokia.carbide.cpp.sdk.ui.SDKUIPlugin;
@@ -182,6 +185,13 @@
 		@Override
 		protected void setValue(Object element, Object value) {
 			ISymbianSDK sdk = (ISymbianSDK) element;
+			File currentPath = new File(sdk.getEPOCROOT());
+			File editedPath = new File(value.toString());
+			if (!currentPath.equals(editedPath)){
+				// User changed the path, so make sure to scan again (boog 12172)
+				((SymbianSDK)sdk).setScannedRaptor(false);
+				SymbianBuildContextDataCache.refreshForSDKs(new ISymbianSDK[] { sdk });
+			}
 			((SymbianSDK)sdk).setEPOCROOT(value.toString());
 			SDKCorePlugin.getSDKManager().updateSDK(sdk);
 			getViewer().refresh();