Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivian Kong2011-04-20 14:21:46 -0400
committerVivian Kong2011-04-20 14:21:46 -0400
commita7c9cf50528d650a08451ed1c74b9e6c9bd7b279 (patch)
tree223e392dfd935a24cbfff76d80965f58f5098b76 /build/org.eclipse.cdt.managedbuilder.ui
parentdc228102ca07094a85940c6ec1c0a07e459b885f (diff)
downloadorg.eclipse.cdt-a7c9cf50528d650a08451ed1c74b9e6c9bd7b279.tar.gz
org.eclipse.cdt-a7c9cf50528d650a08451ed1c74b9e6c9bd7b279.tar.xz
org.eclipse.cdt-a7c9cf50528d650a08451ed1c74b9e6c9bd7b279.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/RefreshPolicyExceptionDialog.java3
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyTab.java10
2 files changed, 4 insertions, 9 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyExceptionDialog.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyExceptionDialog.java
index e377854c31..5e27804c3f 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyExceptionDialog.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/RefreshPolicyExceptionDialog.java
@@ -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();
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 baf2c03ab6..a7f91731a4 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
@@ -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);
}
-
}
}

Back to the top