Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivian Kong2011-04-20 14:14:58 -0400
committerVivian Kong2011-04-20 14:14:58 -0400
commitdc228102ca07094a85940c6ec1c0a07e459b885f (patch)
tree461b1597bbb45d325604a7b6574a73118123b58c /build/org.eclipse.cdt.managedbuilder.ui
parentcfd1f8213c3ea8fd699a5b24fa2051a19a628a53 (diff)
downloadorg.eclipse.cdt-dc228102ca07094a85940c6ec1c0a07e459b885f.tar.gz
org.eclipse.cdt-dc228102ca07094a85940c6ec1c0a07e459b885f.tar.xz
org.eclipse.cdt-dc228102ca07094a85940c6ec1c0a07e459b885f.zip
Bug 133881 - Make refreshing after building optional
Work in progress.
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.ui')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java10
1 files changed, 7 insertions, 3 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 8a30863df4..baf2c03ab6 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
@@ -90,12 +90,12 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
}
private void loadInfo() {
- fResourcesToRefresh = fManager.getResourcesToRefresh(fProject);
+ fResourcesToRefresh = new LinkedList<IResource>(fManager.getResourcesToRefresh(fProject));
if (fResourcesToRefresh != null) {
Iterator<IResource> iterator = fResourcesToRefresh.iterator();
while (iterator.hasNext()) {
IResource resource = iterator.next();
- fResourceToExclusionsMap.put(resource, fManager.getExclusions(resource));
+ fResourceToExclusionsMap.put(resource, new LinkedList<RefreshExclusion>(fManager.getExclusions(resource)));
}
}
}
@@ -302,7 +302,11 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
public void remove() {
parent.exclusion.removeExclusionInstance(instance);
- parent.exclusion_instances.remove(this);
+ parent.exclusion_instances.remove(this);
+
+ if (parent.exclusion_instances.size() < 1 && parent.exceptions_node == null) {
+ parent.remove();
+ }
}
}

Back to the top