Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338857 - List property editor doesn't disable add action button when the list property is disabled
Summary: List property editor doesn't disable add action button when the list property...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 16:19 EST by Danny Ju CLA
Modified: 2021-11-19 09:21 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 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.