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

Bug 357041

Summary: Manually set cell text does not become disabled
Product: z_Archived Reporter: Remo Arpagaus <remo.arpagaus>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: zimmermann
Version: 3.7.0Flags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch to fix the bug zimmermann: iplog+

Description Remo Arpagaus CLA 2011-09-08 03:37:52 EDT
Build Identifier: 

If text of table cell is set manually in execDecorateCell, disabling the table does not change the font color of these texts.

A Workaround exists to do that manually in project:
1. in execDecorateCell add the following line of code:
cell.setForegroundColor(getForm().isEnabledGranted() ? null : BsiCrmHtmlConstants.RAYO_COLOR_DISABLED_TABLE_TEXT);
2. in execLoad of the form (when form is made disabled due to lack of permission), iterate through the rows and trigger their decoration:
for (ITableRow row : rows) {
   table.getDisplayTextColumn().decorateCell(row);
}

Reproducible: Always
Comment 1 Remo Arpagaus CLA 2011-09-08 03:39:43 EDT
Created attachment 202971 [details]
Patch to fix the bug
Comment 2 Stephan Leicht Vogt CLA 2011-09-08 04:40:21 EDT
solved for trunk and indigo sp1
Comment 3 Matthias Zimmermann CLA 2011-10-11 02:49:59 EDT
shipped with 3.7.1
Comment 4 Matthias Zimmermann CLA 2011-10-11 11:26:40 EDT
removed iplog flag from ticket and added iplog flag to attachment