[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: AbstractPluginUI and ImageRegistry confusion

Sharon,

<blush>
You are right.  The API on ImageRegistry does not reflect the API for
Action.  In the workbench we have a map from image name to descriptor. 
This makes it easier for us to get the descriptors which have been added
to the registry and use them to initialize an action.  If the same
descriptor is used in more than one action there is still only one copy of
the image: the ActionContributionItem has a global image cache itself. 
Only 1 copy of the image is allocated, even if it is used in more than one
action.

I have annotated the PR.
</blush>

Dave