Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346582 - Support clearing the content when a property is disabled
Summary: Support clearing the content when a property is disabled
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-05-20 02:35 EDT by Naga CLA
Modified: 2021-11-19 09:22 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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