Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-13 10:09:18 -0400
committerjames2002-05-13 10:09:18 -0400
commit980b8c0be0711781aa11f5f01e6e115a9a5beec5 (patch)
treefbca7dad323cf089eb348e377d4bf36d98c65a5e /bundles/org.eclipse.team.cvs.ui
parent1586070969f8365db6e55cd7b9c4ebf20d4b3719 (diff)
downloadeclipse.platform.team-980b8c0be0711781aa11f5f01e6e115a9a5beec5.tar.gz
eclipse.platform.team-980b8c0be0711781aa11f5f01e6e115a9a5beec5.tar.xz
eclipse.platform.team-980b8c0be0711781aa11f5f01e6e115a9a5beec5.zip
Make image initialization static
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/CVSDecorationRunnable.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java
index e3577eda4..5193df6b1 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorationRunnable.java
@@ -52,10 +52,17 @@ public class CVSDecorationRunnable implements Runnable {
List decorations = new ArrayList();
private final static int NUM_TO_BATCH = 50;
+ static {
+ dirty = new CachedImageDescriptor(TeamUIPlugin.getPlugin().getImageDescriptor(ISharedImages.IMG_DIRTY_OVR));
+ checkedIn = new CachedImageDescriptor(TeamUIPlugin.getPlugin().getImageDescriptor(ISharedImages.IMG_CHECKEDIN_OVR));
+ checkedOut = new CachedImageDescriptor(TeamUIPlugin.getPlugin().getImageDescriptor(ISharedImages.IMG_CHECKEDOUT_OVR));
+ merged = new CachedImageDescriptor(CVSUIPlugin.getPlugin().getImageDescriptor(ICVSUIConstants.IMG_MERGED));
+ }
+
/*
* Define a cached image descriptor which only creates the image data once
*/
- public class CachedImageDescriptor extends ImageDescriptor {
+ public static class CachedImageDescriptor extends ImageDescriptor {
ImageDescriptor descriptor;
ImageData data;
public CachedImageDescriptor(ImageDescriptor descriptor) {
@@ -71,10 +78,6 @@ public class CVSDecorationRunnable implements Runnable {
/* package */
CVSDecorationRunnable(IDecorationNotifier notifier) {
- dirty = new CachedImageDescriptor(TeamUIPlugin.getPlugin().getImageDescriptor(ISharedImages.IMG_DIRTY_OVR));
- checkedIn = new CachedImageDescriptor(TeamUIPlugin.getPlugin().getImageDescriptor(ISharedImages.IMG_CHECKEDIN_OVR));
- checkedOut = new CachedImageDescriptor(TeamUIPlugin.getPlugin().getImageDescriptor(ISharedImages.IMG_CHECKEDOUT_OVR));
- merged = new CachedImageDescriptor(CVSUIPlugin.getPlugin().getImageDescriptor(ICVSUIConstants.IMG_MERGED));
this.notifier = notifier;
}

Back to the top