1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 133881 - Make refreshing after building optional

Work in progress.
This commit is contained in:
Vivian Kong 2011-04-20 18:21:46 +00:00
parent dc228102ca
commit a7c9cf5052
2 changed files with 4 additions and 9 deletions

View file

@ -31,6 +31,7 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
/**
* The RefreshPolicyExceptionDialog allows users to add or edit a refresh exclusion.
*
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as
* part of a work in progress. There is no guarantee that this API will work or
@ -54,7 +55,7 @@ public class RefreshPolicyExceptionDialog extends Dialog {
//should only be used by the Add Exception dialog
private java.util.List<RefreshExclusionContributor> fExclusionContributors;
private RefreshPolicyExceptionDialog(Shell parent, boolean addException){
private RefreshPolicyExceptionDialog(Shell parent, boolean addException){
super(parent);
setShellStyle(getShellStyle());
fContrManager = RefreshExclusionContributionManager.getInstance();

View file

@ -53,6 +53,7 @@ import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
/**
* The RefreshPolicyTab allows users to modify a project's refresh settings for each build.
*
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as
* part of a work in progress. There is no guarantee that this API will work or
@ -186,14 +187,10 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
List<ExclusionInstance> exclusionInstancesToAdd = exclusion.getExclusionInstances();
Iterator<ExclusionInstance> iterator = exclusionInstancesToAdd.iterator();
exclusion_instances.clear();
// List<ExclusionInstance> exclusionInstancesToRemove = this.exclusion.getExclusionInstances();
// for (int i = 0; i < exclusionInstancesToRemove.size(); i++) {
// this.exclusion.removeExclusionInstance(exclusionInstancesToRemove.get(i));
// }
while (iterator.hasNext()) {
ExclusionInstance instanceToAdd = iterator.next();
exclusion_instances.add(new _Exclusion_Instance(instanceToAdd, this));
// this.exclusion.addExclusionInstance(instanceToAdd);
}
}
@ -224,8 +221,6 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
}
class _Exception_Node {
_Entry parent; //can be IResource or RefreshExclusion - must not be null
@ -590,6 +585,5 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
List<RefreshExclusion> exclusions = fResourceToExclusionsMap.get(resource);
fManager.setExclusions(resource, exclusions);
}
}
}