mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 133881 - Make refreshing after building optional
Work in progress.
This commit is contained in:
parent
cfd1f8213c
commit
dc228102ca
1 changed files with 7 additions and 3 deletions
|
@ -90,12 +90,12 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadInfo() {
|
private void loadInfo() {
|
||||||
fResourcesToRefresh = fManager.getResourcesToRefresh(fProject);
|
fResourcesToRefresh = new LinkedList<IResource>(fManager.getResourcesToRefresh(fProject));
|
||||||
if (fResourcesToRefresh != null) {
|
if (fResourcesToRefresh != null) {
|
||||||
Iterator<IResource> iterator = fResourcesToRefresh.iterator();
|
Iterator<IResource> iterator = fResourcesToRefresh.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
IResource resource = iterator.next();
|
IResource resource = iterator.next();
|
||||||
fResourceToExclusionsMap.put(resource, fManager.getExclusions(resource));
|
fResourceToExclusionsMap.put(resource, new LinkedList<RefreshExclusion>(fManager.getExclusions(resource)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -303,6 +303,10 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
|
||||||
public void remove() {
|
public void remove() {
|
||||||
parent.exclusion.removeExclusionInstance(instance);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue