Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Macguire2003-03-04 01:13:04 +0000
committerKevin Macguire2003-03-04 01:13:04 +0000
commitdbcabb6ce7d62a728dc05c398b8943980e31238b (patch)
tree174566cfe86a9454f7f4e68367363d5b452e5b07
parent1b55b2b12104f82b6a4812d9dcc5fada29fd0ce8 (diff)
downloadeclipse.platform.team-dbcabb6ce7d62a728dc05c398b8943980e31238b.tar.gz
eclipse.platform.team-dbcabb6ce7d62a728dc05c398b8943980e31238b.tar.xz
eclipse.platform.team-dbcabb6ce7d62a728dc05c398b8943980e31238b.zip
29120 - applied suggested fix and removed unused reference to deconfiguredProjects
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java28
1 files changed, 4 insertions, 24 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
index 69721facf..23d27bc1f 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
@@ -46,7 +46,6 @@ import org.eclipse.team.internal.ccvs.core.syncinfo.FolderSyncInfo;
import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo;
import org.eclipse.team.ui.ISharedImages;
import org.eclipse.team.ui.TeamImages;
-import org.eclipse.ui.IDecoratorManager;
public class CVSLightweightDecorator
extends LabelProvider
@@ -93,9 +92,6 @@ public class CVSLightweightDecorator
CVSProviderPlugin.broadcastDecoratorEnablementChanged(true /* enabled */);
}
- // Keep track of deconfigured projects
- private Set deconfiguredProjects = new HashSet();
-
public static boolean isDirty(final ICVSResource cvsResource) {
try {
final boolean[] isDirty = new boolean[] { false };
@@ -434,26 +430,10 @@ public class CVSLightweightDecorator
}
/*
- * Return the CVSLightweightDecorator instance that is currently enabled.
- * Return null if we don't have a decorator or its not enabled.
- */
- /* package */ static CVSLightweightDecorator getActiveCVSDecorator() {
- IDecoratorManager manager = CVSUIPlugin.getPlugin().getWorkbench().getDecoratorManager();
- if (manager.getEnabled(CVSUIPlugin.DECORATOR_ID))
- return (CVSLightweightDecorator) manager.getBaseLabelProvider(CVSUIPlugin.DECORATOR_ID);
- return null;
- }
- /*
- * Perform a blanket refresh of all CVS decorations
- */
- public static void refresh() {
- CVSLightweightDecorator activeDecorator = getActiveCVSDecorator();
-
- if(activeDecorator == null)
- return; //nothing to do, our decorator isn't active
-
- //update all displaying of our decorator;
- activeDecorator.fireLabelProviderChanged(new LabelProviderChangedEvent(activeDecorator));
+ * Perform a blanket refresh of all CVS decorations
+ */
+ public static void refresh() {
+ CVSUIPlugin.getPlugin().getWorkbench().getDecoratorManager().update(CVSUIPlugin.DECORATOR_ID);
}
/*

Back to the top