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

Bug 346582

Summary: Support clearing the content when a property is disabled
Product: z_Archived Reporter: Naga <naga_cit>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: konstantin, ling.hao
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Naga CLA 2011-05-20 02:35:28 EDT
Need support to clear the content when a property is disabled.

One of the problem I am seeing with Enablement annotation,

<item1>
<item2>
<item3>

I defined <item2> and <item3> are enabled only when <item1> set to a particular value. Lets say user first time select that value in <item1> and set required property in <item2> and <item3>. when he goes back to <item1> and changes its value. <item2> and <item3> are disabled as expected but the values previously entered in the XML is not going away. we need support to remove those value from xml when we disable that field?

May be "@ClearOnDisable" annotation?
Comment 1 Konstantin Komissarchik CLA 2011-06-06 22:29:07 EDT
Enhancement implemented. See the 0.3 release's what's new document for further details. Example of usage in the IIfThenElseGallery class of the gallery sample.
Comment 2 Ling Hao CLA 2011-06-09 16:52:56 EDT
Verified in sapphire-gallery.xml