Bug 537104 - Table with Detail does not handle readonly and enablement correctly
Summary: Table with Detail does not handle readonly and enablement correctly
Status: RESOLVED FIXED
Alias: None
Product: ECP
Classification: Modeling
Component: EMF Forms (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.18.0   Edit
Assignee: Lucas Koehler CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2018-07-17 06:53 EDT by Eugen Neufeld CLA
Modified: 2018-07-24 12:00 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugen Neufeld CLA 2018-07-17 06:53:48 EDT
The detail view of a table with detail must honor the readonly and disabled state of the table control.
Comment 1 Eclipse Genie CLA 2018-07-20 05:38:06 EDT
New Gerrit change created: https://git.eclipse.org/r/126368
Comment 2 Lucas Koehler CLA 2018-07-20 05:51:17 EDT
TEST INFORMATION

Summary of the critical part of the change
1. When a table with a detail panel is disabled or set to read only, its detail panel is also set to read only. This mostly leads to controls contained in the detail panel getting disabled.
2. Furthermore, the basic renderer implementation (AbstractSWTRenderer) does no longer disable its SWT controls by default when its VElement is disabled. This behavior must be implemented in sub classes. For all renderers part of EMF Forms this is the case.
3. Remaining renderers were updated to correctly use isEffectivelyReadonly and isEffectivelyEnabled instead of isReadonly and isEnabled.


Potential regressions
1. Details of a disabled/readonly table are no longer editable. This is intended but might not be considered by a client
2. Custom renderers directly extending AbstractSWTRenderer, might no longer have proper disable/readonly behavior
3. Renderers might be disabled/readonly more often than so far if one of their parents is disabled/readonly


Affected areas / use cases
Disabling/Readonly of tables with detail panel and parent elments (e.g. containers) of other controls

Things that shall be tested
That all renderered controls are still disabled/set to readonly as expected. They might be disabled/readonly more often than before (1. & 3.) or not at all anymore if they are not children of AbstractControlSWTRenderer (2.)
Comment 4 Eclipse Genie CLA 2018-07-24 09:39:45 EDT
New Gerrit change created: https://git.eclipse.org/r/126555