| Expensive updates of ToolItems [message #879949] |
Fri, 01 June 2012 03:31  |
Marko Herchet Messages: 10 Registered: May 2012 |
Junior Member |
|
|
Hi,
while working with e4 I realized, that org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.updateItemEnablement() is called about once a second for every ToolItem in my MainToolbar. This leads to HandledContributionItem.updateIcons(). I think this call is needed here to switch between enabled/disabled icons. But even if there is no change the icon bytes are requested via iconURI and a new SWT Image is created everytime.
A similar problem exists for the labels and tooltips, which are newly translated via TranslationService on every updateItemEnablement-call.
Is this a bug? Or required by some reason I don't see yet?
Marko
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05305 seconds