Bug 564831 - FieldDecorationRegistry static block triggered during startup
Summary: FieldDecorationRegistry static block triggered during startup
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alex Blewitt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-01 06:45 EDT by Lars Vogel CLA
Modified: 2020-07-04 07:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.