mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Bug 133881 - Make refreshing after building optional
Work in progress.
This commit is contained in:
parent
dc228102ca
commit
a7c9cf5052
2 changed files with 4 additions and 9 deletions
|
@ -31,6 +31,7 @@ import org.eclipse.swt.widgets.Label;
|
||||||
import org.eclipse.swt.widgets.Shell;
|
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
|
* <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
|
* 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
|
//should only be used by the Add Exception dialog
|
||||||
private java.util.List<RefreshExclusionContributor> fExclusionContributors;
|
private java.util.List<RefreshExclusionContributor> fExclusionContributors;
|
||||||
|
|
||||||
private RefreshPolicyExceptionDialog(Shell parent, boolean addException){
|
private RefreshPolicyExceptionDialog(Shell parent, boolean addException){
|
||||||
super(parent);
|
super(parent);
|
||||||
setShellStyle(getShellStyle());
|
setShellStyle(getShellStyle());
|
||||||
fContrManager = RefreshExclusionContributionManager.getInstance();
|
fContrManager = RefreshExclusionContributionManager.getInstance();
|
||||||
|
|
|
@ -53,6 +53,7 @@ import org.eclipse.swt.widgets.TreeItem;
|
||||||
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
|
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
|
* <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
|
* 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();
|
List<ExclusionInstance> exclusionInstancesToAdd = exclusion.getExclusionInstances();
|
||||||
Iterator<ExclusionInstance> iterator = exclusionInstancesToAdd.iterator();
|
Iterator<ExclusionInstance> iterator = exclusionInstancesToAdd.iterator();
|
||||||
exclusion_instances.clear();
|
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()) {
|
while (iterator.hasNext()) {
|
||||||
ExclusionInstance instanceToAdd = iterator.next();
|
ExclusionInstance instanceToAdd = iterator.next();
|
||||||
exclusion_instances.add(new _Exclusion_Instance(instanceToAdd, this));
|
exclusion_instances.add(new _Exclusion_Instance(instanceToAdd, this));
|
||||||
// this.exclusion.addExclusionInstance(instanceToAdd);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,8 +221,6 @@ public class RefreshPolicyTab extends AbstractCPropertyTab {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class _Exception_Node {
|
class _Exception_Node {
|
||||||
_Entry parent; //can be IResource or RefreshExclusion - must not be null
|
_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);
|
List<RefreshExclusion> exclusions = fResourceToExclusionsMap.get(resource);
|
||||||
fManager.setExclusions(resource, exclusions);
|
fManager.setExclusions(resource, exclusions);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue