Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 31908 Details for
Bug 121326
MylarUiPlugin fails to activate if no mylar views visible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch to org.eclipse.mylar.tasklist
121326 patch.txt (text/plain), 1.54 KB, created by
Brock Janiczak
on 2005-12-17 22:52:29 EST
(
hide
)
Description:
patch to org.eclipse.mylar.tasklist
Filename:
MIME Type:
Creator:
Brock Janiczak
Created:
2005-12-17 22:52:29 EST
Size:
1.54 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylar.tasklist >Index: src/org/eclipse/mylar/tasklist/ui/TaskListImages.java >=================================================================== >RCS file: /home/technology/org.eclipse.mylar/org.eclipse.mylar.tasklist/src/org/eclipse/mylar/tasklist/ui/TaskListImages.java,v >retrieving revision 1.5 >diff -u -r1.5 TaskListImages.java >--- src/org/eclipse/mylar/tasklist/ui/TaskListImages.java 16 Dec 2005 19:37:13 -0000 1.5 >+++ src/org/eclipse/mylar/tasklist/ui/TaskListImages.java 18 Dec 2005 03:50:27 -0000 >@@ -34,7 +34,7 @@ > */ > public class TaskListImages { > >- private static ImageRegistry imageRegistry = new ImageRegistry(); >+ private static ImageRegistry imageRegistry; > > public static final Color BACKGROUND_WHITE = new Color(Display.getDefault(), 255, 255, 255); > public static final Color BACKGROUND_ARCHIVE = new Color(Display.getDefault(), 190, 210, 238); >@@ -107,12 +107,22 @@ > buffer.append('/'); > buffer.append(name); > return new URL(baseURL, buffer.toString()); >- } >+ } >+ >+ private static ImageRegistry getImageRegistry() { >+ if (imageRegistry == null) { >+ imageRegistry = new ImageRegistry(); >+ } >+ >+ return imageRegistry; >+ } > > /** > * Lazily initializes image map. > */ > public static Image getImage(ImageDescriptor imageDescriptor) { >+ ImageRegistry imageRegistry = getImageRegistry(); >+ > Image image = imageRegistry.get(""+imageDescriptor.hashCode()); > if (image == null) { > image = imageDescriptor.createImage();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 121326
: 31908