author | timkelly |
Mon, 30 Aug 2010 14:58:15 -0500 | |
changeset 1916 | 4d554177f768 |
parent 1912 | 5c5021051315 |
child 1917 | 4de816ec8ba5 |
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2QueryUtils.java Mon Aug 30 14:17:20 2010 -0500 +++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/sbsv2/SBSv2QueryUtils.java Mon Aug 30 14:58:15 2010 -0500 @@ -482,5 +482,19 @@ public static void removeCachedConfigurations() { SDKCacheUtils.getCache().removeCache(CONFIG_CACHE_KEY, true); } + + /** + * Write all SBSv2 caches. + */ + public static void flushAllSBSv2Caches(){ + try { + SDKCacheUtils.getCache().flushCache(ALIAS_CACHE_KEY); + SDKCacheUtils.getCache().flushCache(PRODUCT_CACHE_KEY); + SDKCacheUtils.getCache().flushCache(CONFIG_CACHE_KEY); + } catch (Exception e) { + e.printStackTrace(); + } + + } }
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/api/sdk/ui/SBSv2PlatformFilterComposite.java Mon Aug 30 14:17:20 2010 -0500 +++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/api/sdk/ui/SBSv2PlatformFilterComposite.java Mon Aug 30 14:58:15 2010 -0500 @@ -135,13 +135,15 @@ public void widgetSelected(SelectionEvent e) { refreshButton.setEnabled(false); refreshButton.setText(Messages.getString("SBSv2PlatformFilterComposite.RefreshButtonScanningText")); //$NON-NLS-1$ - SBSv2QueryUtils.removeAllCachedQueries(); - refreshLocalSBSCacheData(); - for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()){ - ((SBSv2BuildInfo)sdk.getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER)).clearDataFromBuildCache(); - } +// for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()){ +// ((SBSv2BuildInfo)sdk.getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER)).clearDataFromBuildCache(); +// } + SBSv2QueryUtils.removeAllCachedQueries(); + refreshLocalSBSCacheData(); + + SBSv2QueryUtils.flushAllSBSv2Caches(); refreshButton.setText(Messages.getString("SBSv2PlatformFilterComposite.RefreshButtonText")); //$NON-NLS-1$ refreshButton.setEnabled(true); } @@ -320,6 +322,7 @@ if (customVariantListViewer != null) { customVariantListViewer.setInput(savedVariants); } + } private void refreshLocalSBSCacheData() {