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

Bug 323002

Summary: StatusMeterWidget
Product: [RT] Riena Reporter: Stephan Mann <stephan.mann>
Component: UIAssignee: Steffen Kriese <steffen.kriese>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: christian.campo
Version: 2.0.0   
Target Milestone: 3.0.0.M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch including the new widget and the examples elias: iplog+

Description Stephan Mann CLA 2010-08-18 05:24:49 EDT
I'd like to contribute a new widget to Riena. The attached patch applies to HEAD as of today. I've extended the example application to show the use of the StatusMeter in Playground/Table and Playground/Traverse. Note that the use in Playground/Table is limited by bug43910 since the checkbox is also an image. Making the StatusMeter wider would result in an distorted checkbox.

Since this is my first Riena contribution I'd like you to do a thorough code review. I'm looking forward to your suggestions on how to improve.
Comment 1 Stephan Mann CLA 2010-08-18 05:27:23 EDT
Created attachment 176876 [details]
Patch including the new widget and the examples
Comment 2 Steffen Kriese CLA 2010-08-19 03:13:52 EDT
Thanks Stephan, great contribution :-)  
Patch is applied!

I had to do a little tweaking in the StatusMeterRidget to set the custom colors. When the methods set*Color are called in the ridget from SubModuleController.configureRidgets(), the uicontrol isn't available at that point. So I assigned the colors to fields in the StatusMeterRidget and when updateUIControl() is called, passed them to the uicontrol.
Comment 3 Elias Volanakis CLA 2010-08-19 22:25:46 EDT
Comment on attachment 176876 [details]
Patch including the new widget and the examples

Adding IPLog flag.