Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 286629 - Disable/Enable LabelRidget when its corresponding TextRidget enabled-State changes
Summary: Disable/Enable LabelRidget when its corresponding TextRidget enabled-State ch...
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 1.2.0.M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-14 08:02 EDT by Steffen Kriese CLA
Modified: 2009-11-18 11:01 EST (History)
1 user (show)

See Also:


Attachments
rudimental implementation showing how to connect a TextRidget with a LabelRidget (3.18 KB, patch)
2009-08-14 08:29 EDT, Steffen Kriese CLA
no flags Details | Diff
Implementation + TestCase + Update for Riena ExampleClient (33.65 KB, patch)
2009-09-03 07:55 EDT, Steffen Kriese CLA
christian.campo: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Kriese CLA 2009-08-14 08:02:49 EDT
It would be nice if we could change the enabled-State of a LabelRidget automatically, when its corresponding TextRidgets enabled-State changes. For example if we have a SubModuleView with a LabelRidget "labelFirstName" and a TextRidget "textFirstName" and we disable the TextRidget, then the labelFirstName should get disabled too.
This could be easily accomplished by using a naming convention like in the example above. Then we could add a PropertyChangeListener to the TextRidget and propagate the enabled-State to the LabelRidget.
Comment 1 Steffen Kriese CLA 2009-08-14 08:29:59 EDT
Created attachment 144523 [details]
rudimental implementation showing how to connect a TextRidget with a LabelRidget
Comment 2 Steffen Kriese CLA 2009-09-03 07:55:00 EDT
Created attachment 146376 [details]
Implementation + TestCase + Update for Riena ExampleClient

The behaviour can be customized by extension points to provide a labelPrefix or to add a custom LabelFinderStrategy.
Comment 3 Christian Campo CLA 2009-09-03 11:58:03 EDT
patch committed, thanks Steffen
Comment 4 Elias Volanakis CLA 2009-09-03 18:54:58 EDT
Very cool - thanks Steffen!

Could you please add an entry about it to the Riena New & Noteworthy for this milestone ?
http://wiki.eclipse.org/Riena_New_And_Noteworthy

Thanks again,
Elias.