Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:08 Go to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
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 21:23 Go to previous messageGo to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
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] Fri, 24 July 2009 00:17 Go to previous message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
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: Fri Apr 26 19:08:32 GMT 2024

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

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

Back to the top