Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 282210

Summary: DecoratedField unusable
Product: [RT] RAP Reporter: Thomas Schindl <tom.schindl>
Component: JFaceAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Thomas Schindl CLA 2009-07-01 16:15:20 EDT
Created attachment 140628 [details]
Patch

The current implementation of DecoratedField is unuseable because it pops up a big div for every DecoratedField when adding a Decoration. This is because of the code in showHoverText().

The shell created doesn't even display the error information (the original JFace-Paint-Code is commented naturally).

In the attached patch i also added a new feature which hides the decoration when no error/warning/... is displayed (though not completed yet).

I'd suggest to at least comment the shell creation in showHoverText in the next minor release and discuss whether you are willing to add the new feature to RAP to make it at least in a none decoration case more compatible with ControlDecoration (the patch has 2 fix me positions I'd work on if you agree that this is a good thing) when maintaining a RAP and RCP code base.
Comment 1 Ivan Furnadjiev CLA 2009-12-18 05:04:54 EST
I will close it as WONTFIX as DecoratedField is deprecated and ControlDecoration is available since 1.3M4 ( see Bug 251689 ).