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

Bug 364121

Summary: Dynamic table disabling is not shown in GUI
Product: z_Archived Reporter: Stephan Merkli <stephan.merkli>
Component: ScoutAssignee: Daniel Wiehl <daniel.wiehl>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: zimmermann
Version: unspecifiedFlags: zimmermann: juno+
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch which triggers a repaint if the table is disabled / enabled
none
Patch
daniel.wiehl: iplog+, daniel.wiehl: review+
mylyn/context/zip none

Description Stephan Merkli CLA 2011-11-18 04:10:23 EST
Build Identifier: M20110210-1200

When disabling an editable table, the disabling is not represented directly in the GUI. The table still looks like being editable. Only when clicking into the table try editing a cell, the table is disabled. The same is true for enabling the table. Even when clicking on a row after disabling the table, only some rows are marked as disabled, other rows are only marked as disabled when selecting them.

Reproducible: Always

Steps to Reproduce:
1. Create a table with editable columns
2. Create a button / link for disabling them
3. Start application, table cells are editable
4. Click button, table cells still seems to be editable
5. Clicking into table will represent the correct state (at least for some rows, usually not all of them).
Comment 1 Remo Arpagaus CLA 2011-12-21 06:33:19 EST
Created attachment 208671 [details]
Patch which triggers a repaint if the table is disabled / enabled

The bug can only be reproduced if there are no other visual changes on the Scout form. If the text of the disable button's was changed the table is correctly disabled.
Even if no editable columns are used in the given table this bug will occur.

The proposed patch triggers an explicit repaint of the table and its header whenever the Scout table is disabled / enabled.
Comment 2 Remo Arpagaus CLA 2011-12-21 08:14:56 EST
Created attachment 208676 [details]
Patch
Comment 3 Daniel Wiehl CLA 2011-12-23 10:44:18 EST
23.12.2011 dwi [contributed by Remo Arpagaus, BSI Business Systems Integration AG]
Bugzilla: 364121
Problem:
If disabling / enabling a table, it sometimes happens not to look like being in disabled / enabled state. This is only a UI refresh problem, meaning that the table effectively is enabled / disabled.
Solution:
The proposed patch triggers an explicit repaint of the table and its header whenever the Scout table is disabled / enabled.
Migration: None
Comment 4 Daniel Wiehl CLA 2011-12-23 10:44:20 EST
Created attachment 208778 [details]
mylyn/context/zip
Comment 5 Daniel Wiehl CLA 2011-12-23 10:44:46 EST
Comment on attachment 208676 [details]
Patch

Thank for contributing this patch
Comment 6 Daniel Wiehl CLA 2011-12-23 10:45:12 EST
Comment on attachment 208676 [details]
Patch

Patch reviewed and applied
Comment 7 Matthias Zimmermann CLA 2012-07-09 06:49:27 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)