Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDavid Salinas2012-04-27 15:19:40 -0400
committerVivian Kong2012-04-27 15:19:40 -0400
commit38ecfea632f85ed186af20738442f44433a2e866 (patch)
treeeb3add3b741029ef715f47503a5158433e795524 /build
parent247c492036de5306c747d630774388aa2e073316 (diff)
downloadorg.eclipse.cdt-38ecfea632f85ed186af20738442f44433a2e866.tar.gz
org.eclipse.cdt-38ecfea632f85ed186af20738442f44433a2e866.tar.xz
org.eclipse.cdt-38ecfea632f85ed186af20738442f44433a2e866.zip
Bug 375859 - Refresh scope becomes empty after closing/opening project
if left to default
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java
index 569bb5ed68..2bb36643de 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java
@@ -106,6 +106,10 @@ public class RefreshPolicyTab extends AbstractCBuildPropertyTab {
private HashMap<String, HashMap<IResource, List<RefreshExclusion>>> copyHashMap(HashMap<String, HashMap<IResource, List<RefreshExclusion>>> source) {
HashMap<String, HashMap<IResource, List<RefreshExclusion>>> target = new HashMap<String, HashMap<IResource, List<RefreshExclusion>>>();
+
+ if (source.size() == 0)
+ return null;
+
Iterator<String> config_iterator = source.keySet().iterator();
// for each Configuration ...
while (config_iterator.hasNext()) {
@@ -137,7 +141,8 @@ public class RefreshPolicyTab extends AbstractCBuildPropertyTab {
private void loadInfo() {
HashMap<String, HashMap<IResource, List<RefreshExclusion>>> configMap = fManager.getConfigurationToResourcesMap(fProject);
- fConfigurationToResourcesToExclusionsMap = copyHashMap(configMap);
+ if ( (configMap != null) && !(configMap.isEmpty()))
+ fConfigurationToResourcesToExclusionsMap = copyHashMap(configMap);
}
private List<RefreshExclusion> getExclusions(String configName, IResource resource) {

Back to the top