Bug 564831

Summary: FieldDecorationRegistry static block triggered during startup
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Alex Blewitt <alex.blewitt>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: alex.blewitt, Lars.Vogel
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Lars Vogel CLA 2020-07-01 06:45:18 EDT
The image initializer in FieldDecorationRegistry is triggered during startup. Maybe we can use the same tricks as in the content manage of using a static field for this or create the images on demand?
Comment 1 Lars Vogel CLA 2020-07-01 06:45:44 EDT
Alex, something for you?
Comment 2 Alex Blewitt CLA 2020-07-04 07:56:28 EDT
This will need a bit of work to investigate how to do properly.

The static block is used to pre-fill images in the registry and there are a variety of public calls that are used via the instance initialiser that could be used.

I suspect a refactoring of the code would be appropriate but will require some work. It may be that we use the JFaceResource DeferredImage to delay loading the images.