Skip to main content



      Home
Home » Eclipse Projects » JFace » [databinding] ControlDecorationSupport feedback: provide access to the ControlDecoration
[databinding] ControlDecorationSupport feedback: provide access to the ControlDecoration [message #23073] Wed, 22 July 2009 17:08 Go to next message
Eclipse UserFriend
When using ControlDecorationSupport, the ControlDecoration is created
internally and not directly accessible. I need to set the ControlDecoration
as data on the Control (for testing purposes) and the only way I can see to
do it is to provide a custom ControlDecorationUpdater that does this on
every update:

protected void update(ControlDecoration decoration, IStatus status) {
decoration.getControl().setData("CONTROL_DECORATION", decoration);
super.update(decoration, status);
}
Re: [databinding] ControlDecorationSupport feedback: provide access to the ControlDecoration [message #23222 is a reply to message #23073] Wed, 22 July 2009 17:23 Go to previous messageGo to next message
Eclipse UserFriend
Would you file a bug for this?

Matthew

Will Horn wrote:
> When using ControlDecorationSupport, the ControlDecoration is created
> internally and not directly accessible. I need to set the
> ControlDecoration as data on the Control (for testing purposes) and the
> only way I can see to do it is to provide a custom
> ControlDecorationUpdater that does this on every update:
>
> protected void update(ControlDecoration decoration, IStatus status) {
> decoration.getControl().setData("CONTROL_DECORATION", decoration);
> super.update(decoration, status);
> }
Re: [databinding] ControlDecorationSupport feedback: provide access to the ControlDecoration [message #23663 is a reply to message #23222] Thu, 23 July 2009 20:17 Go to previous message
Eclipse UserFriend
http://bugs.eclipse.org/284521

"Matthew Hall" <matthall@woodcraftmill.com> wrote in message
news:h47vvt$5dj$3@build.eclipse.org...
> Would you file a bug for this?
>
> Matthew
>
> Will Horn wrote:
>> When using ControlDecorationSupport, the ControlDecoration is created
>> internally and not directly accessible. I need to set the
>> ControlDecoration as data on the Control (for testing purposes) and the
>> only way I can see to do it is to provide a custom
>> ControlDecorationUpdater that does this on every update:
>>
>> protected void update(ControlDecoration decoration, IStatus status) {
>> decoration.getControl().setData("CONTROL_DECORATION", decoration);
>> super.update(decoration, status);
>> }
Previous Topic:[databinding] ControlDecorationSupport idea
Next Topic:Add hyperlink control to the end of a TableViewer
Goto Forum:
  


Current Time: Wed May 07 19:05:01 EDT 2025

Powered by FUDForum. Page generated in 0.02983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top