daily merge
authorfturovic <frank.turovich@nokia.com>
Wed, 09 Sep 2009 10:24:01 -0500
changeset 485 6a656b7f160f
parent 484 e6bf0f616b9a (current diff)
parent 483 34f888c29813 (diff)
child 486 852b79cf7a65
child 488 745fac120450
daily merge
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java	Tue Sep 08 13:50:49 2009 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java	Wed Sep 09 10:24:01 2009 -0500
@@ -369,6 +369,7 @@
 			if (sdkPropDlg.open() == SDKPropertiesDialog.OK){
 				sdkListTableViewer.refresh();
 				setSelectedSDKInfoText(sdk);
+				rescanSDKs(false);
 			}
 		} else {
 			MessageDialog.openError(getShell(), Messages.getString("SDKPreferencePage.No_SDK_Selected"), Messages.getString("SDKPreferencePage.No_selected_SDK_detected")); //$NON-NLS-1$ //$NON-NLS-2$
@@ -403,6 +404,10 @@
 	}
 	
 	private void rescanNowButtonAction(){
+		rescanSDKs(true);
+	}
+	
+	private void rescanSDKs(boolean scanForNewPlugins){
 		sdkListTableViewer.getTable().clearAll();
 		sdkListTableViewer.refresh();
 		sdkList.clear();
@@ -418,7 +423,9 @@
 			setSelectedSDKInfoText(sdk);
 		}
 		
-		NewPluginChecker.checkForNewlyInstalledPlugins(SDKUIPlugin.getDefault().getWorkbench());
+		if (scanForNewPlugins){
+			NewPluginChecker.checkForNewlyInstalledPlugins(SDKUIPlugin.getDefault().getWorkbench());
+		}
 	}
 	
 	/**