Is there an example of using IDecorationContext to decorate shortcuts?
In appearance, the IDecorationContext class seems to provide some support for contextual decoration, but for the life of me I cannot find any sample code using this function ...
Has anyone really used the context decoration function, and if so, what use cases did he allow?
PS: I’m looking for a way to apply image decorations to the labels of objects, and depending on where the object is displayed, the size of the base icon changes (for example, traditional “small” icons in tables and tree elements and larger icons for content headers).
Jewelery applied to the original badges must choose the appropriate sizes accordingly.
IDecorationContext seems to fit the vector, for which I need it, but the documentation is as rare as you might expect from a minor open source library function, and there are no examples to be found.
Googling for "IDecorationContext" also didn’t show anything interesting, so I move on to the crowd of StackOverflow crowds in the hope that the next guy who gets the question will be able to get an answer faster;)
java eclipse api swt jface
Rolling tepp
source share