Community
Participate
Working Groups
In order to properly support the decoration of logical model elements with repository state, we need to have a tighter coupling of the sync decoration (i.e. the > prefix) and the viewer showing the model. This is not overly complex but we must maintain backwards compatibility. To do this, we need a way for a viewer (via it's label provider) to say that it will handle the sync decoration. If the label provider handles sync decoration, the lightweight decorator should not. If the label provider does not, the lightweight decorator shoudl still do the decoration. To support this, I have modifed JFace and Wokbench to pass a decoration context from the decorating label provider through to the lightweight decorators. I will attach what I have done so far for comment.
Created attachment 32039 [details] Here's the patch The patch adds an ILabelDecorator2 that accepts an IDecorationContext to all the decoration methods. It also modifes JFace and Woekbench to pass the context from the DecoratingLabelProvider through the the label decorators.
I also removed the stuff we added earlier in 3.2 sinece we abandoned that approach (although you may want to double check to make sure I got it all).
Patch has been released with some javadoc tidyup and moving ILabelDecorator to an abstract superclass LabelDecorator.
Verified in 20060113-1200 by code inspection