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

Bug 338857

Summary: List property editor doesn't disable add action button when the list property is disabled
Product: z_Archived Reporter: Danny Ju <danny.ju>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin, ram.venkataswamy
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Danny Ju CLA 2011-03-03 16:19:20 EST
I have a list property in a model, which will be
disabled by certain expression:
    // *** Module publishing options***
    @Label( standard = "module publishing options" )
    @Type( base = IModuleDeploymentOptionsModel.class )
    @FixedOrderList
    @Validator(impl=DeploymentOptionsValidator.class)
    @Enablement( expr = "${ ServerType == 'REMOTE_SERVER' }" )
    ListProperty PROP_MODULE_DEPLOYMENT_OPTIONS = new ListProperty( TYPE, "ModuleDeploymentOptions" );
    ModelElementList<IModuleDeploymentOptionsModel> getModuleDeploymentOptions();    

When UI is rendered, I can see the table control greyed out, but the Add (+) button is still enabled and user can click it to add an empty row.
Comment 1 Konstantin Komissarchik CLA 2011-04-29 14:32:39 EDT
This issue should be resolved now. Please verify. I have added a boolean property to the list sections of the gallery sample to make it easy to toggle enablement on/off and see the effect on the list property editors.
Comment 2 Ram Venkataswamy CLA 2011-06-01 14:18:20 EDT
verified with build 0.3.0.201105261624
Comment 3 Konstantin Komissarchik CLA 2011-06-03 13:11:11 EDT
Closing.