Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-01-13 19:22:41 +0000
committerMichael Valenta2006-01-13 19:22:41 +0000
commit2bc8e627995e674c965e70ca1bd6262512da15a2 (patch)
tree59ae6b26e9a89f4a504fbfdc53fcff31c019ece0
parentc7d1338418627045ebdb3885c915fd801839e34e (diff)
downloadeclipse.platform.team-2bc8e627995e674c965e70ca1bd6262512da15a2.tar.gz
eclipse.platform.team-2bc8e627995e674c965e70ca1bd6262512da15a2.tar.xz
eclipse.platform.team-2bc8e627995e674c965e70ca1bd6262512da15a2.zip
Bug 86493 Working set decorator does not change when contained resources change
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/mapping/SynchronizationStateTester.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/mapping/SynchronizationStateTester.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/mapping/SynchronizationStateTester.java
index 5b8aa3496..ca135ceab 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/mapping/SynchronizationStateTester.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/mapping/SynchronizationStateTester.java
@@ -114,6 +114,22 @@ public class SynchronizationStateTester {
return false;
}
+ /**
+ * Return whether state decoration is enabled. If <code>true</code>
+ * is returned, team decorators will use the state methods provided
+ * on this class to calculate the synchronization state of model
+ * elements for the purpose of decoration. If <code>false</code>
+ * is returned, team decorators will not decorate the elements with any
+ * synchronization elated decorations. Subclasses will want to disable
+ * state decoration if state decoration is being provided another way
+ * (e.g. by a {@link SynchronizationLabelProvider}). By default,
+ * <code>true</code>is returned. Subclasses may override.
+ * @return whether state decoration is enabled
+ */
+ public boolean isStateDecorationEnabled() {
+ return true;
+ }
+
private boolean internalIsDecorationEnabled(IProject[] projects) {
Set providerIds = new HashSet();
for (int i = 0; i < projects.length; i++) {

Back to the top