Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-01-14 04:11:12 +0000
committerJean Michel-Lemieux2004-01-14 04:11:12 +0000
commit13a24e7798a7d5958da2e85edc6e3f2df64dd253 (patch)
treecf9c73af5afa978c79a2966365e8b6976cb274c1 /bundles/org.eclipse.team.cvs.ui
parent362ba11b0400d0e243de7738d85a7ad55302a18c (diff)
downloadeclipse.platform.team-13a24e7798a7d5958da2e85edc6e3f2df64dd253.tar.gz
eclipse.platform.team-13a24e7798a7d5958da2e85edc6e3f2df64dd253.tar.xz
eclipse.platform.team-13a24e7798a7d5958da2e85edc6e3f2df64dd253.zip
Bug 45912 CVS label decorations and outgoing icons should be activated by default
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java9
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java4
2 files changed, 10 insertions, 3 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 c3e892b56..3f95dfa6d 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
@@ -56,10 +56,11 @@ import org.eclipse.team.internal.ui.TeamUIPlugin;
import org.eclipse.team.ui.ISharedImages;
import org.eclipse.team.ui.TeamUI;
-public class CVSLightweightDecorator
- extends LabelProvider
- implements ILightweightLabelDecorator, IResourceStateChangeListener, IPropertyChangeListener {
+public class CVSLightweightDecorator extends LabelProvider implements ILightweightLabelDecorator, IResourceStateChangeListener, IPropertyChangeListener {
+ // Decorator id as defined in the decorator extension point
+ public final static String ID = "org.eclipse.team.cvs.ui.decorator";
+
// Images cached for better performance
private static ImageDescriptor dirty;
private static ImageDescriptor checkedIn;
@@ -70,6 +71,8 @@ public class CVSLightweightDecorator
private static ImageDescriptor edited;
private static ExceptionCollector exceptions = new ExceptionCollector(Policy.bind("CVSDecorator.exceptionMessage"), CVSUIPlugin.ID, IStatus.ERROR, CVSUIPlugin.getPlugin().getLog()); //$NON-NLS-1$;
+
+
/*
* Define a cached image descriptor which only creates the image data once
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
index aa4914645..24d5fb4bf 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
@@ -680,6 +680,10 @@ public class CVSUIPlugin extends AbstractUIPlugin {
initializePreferences();
Console.startup();
+
+ // Enable CVS decorators so that users don't have to enable via
+ // the preference pages.
+ PlatformUI.getWorkbench().getDecoratorManager().setEnabled(CVSLightweightDecorator.ID, true);
}
public static IWorkingSet getWorkingSet(IResource[] resources, String name) {

Back to the top