Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344925 - Undo/Redo after the action Show Columns
Summary: Undo/Redo after the action Show Columns
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334240
  Show dependency tree
 
Reported: 2011-05-06 04:23 EDT by Vincent Lorenzo CLA
Modified: 2020-05-01 11:27 EDT (History)
2 users (show)

See Also:
gdupe: indigo+


Attachments
Patch for Bug 344925 (80.40 KB, patch)
2011-05-11 12:04 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
Patch for Bug 344925 Non regression test (14.24 KB, patch)
2011-05-16 05:15 EDT, Nicolas Guyomar CLA
no flags Details | Diff
Patch for Bug 344925 Non regression test (15.88 KB, patch)
2011-05-16 11:07 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
Patxh to fix the regression on NatTableShowHideColumnsAPITests.showHideColumnsDeselectAllTest (2.42 KB, patch)
2011-05-16 13:17 EDT, Gregoire Dupe CLA
gdupe: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2011-05-06 04:23:31 EDT
In order to reproduce this bug, I use the example : Open Ecore Tabular Editor
Step to reproduce : 
1/ Use the action Open Ecore Tabular Editor on a EPackage
2/ Hide a column
3/ Redo one time -> the column doesn't reappears
4/ Redo another time -> the column reappears

We should do only one command for this action and not two!
Comment 1 Nicolas Guyomar CLA 2011-05-11 12:04:47 EDT
Created attachment 195385 [details]
Patch for Bug 344925

Hi Vincent,

Since some actions where executed in two separated commands, this behavior was quite expected.

I merged the command execution so that one action will always be executed in only one command.
There was also a problem with the refresh of the table, which has been solved by enabling the modifications tracking on the tableInstance resource.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.

Regards,
Nicolas Guyomar
Comment 2 Nicolas Guyomar CLA 2011-05-16 05:15:05 EDT
Created attachment 195702 [details]
Patch for Bug 344925 Non regression test

Hi,

Please find attached a non regression test for this bug.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.

Regards,
Nicolas Guyomar
Comment 3 Gregoire Dupe CLA 2011-05-16 10:57:44 EDT
Comment on attachment 195385 [details]
Patch for Bug 344925

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 657.

The SVN diff matches a lot of lines that have not be modified, I hope that this will not break the SVN history.
Comment 4 Gregoire Dupe CLA 2011-05-16 10:59:57 EDT
Comment on attachment 195702 [details]
Patch for Bug 344925 Non regression test

There is a problem with this unit test: it does not fail even if the patch has not be applied. I cannot commit it.
Comment 5 Nicolas Guyomar CLA 2011-05-16 11:07:48 EDT
Created attachment 195739 [details]
Patch for Bug 344925 Non regression test

Hi,

Please find attached an updated version of the test which does fail if we go back to revision 656, and succeed on 657.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.

Regards,
Nicolas Guyomar
Comment 6 Gregoire Dupe CLA 2011-05-16 11:47:10 EDT
Comment on attachment 195739 [details]
Patch for Bug 344925 Non regression test

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 658.
Comment 8 Gregoire Dupe CLA 2011-05-16 13:17:18 EDT
Created attachment 195764 [details]
Patxh to fix the regression on NatTableShowHideColumnsAPITests.showHideColumnsDeselectAllTest

Here is a patch to fix the regression on Patxh to fix the regression on NatTableShowHideColumnsAPITests.showHideColumnsDeselectAllTest.
Comment 9 Gregoire Dupe CLA 2011-05-16 13:19:34 EDT
Comment on attachment 195764 [details]
Patxh to fix the regression on NatTableShowHideColumnsAPITests.showHideColumnsDeselectAllTest

I've committed this patch.

(a) I, Gregoire Dupe, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.
Comment 10 Gregoire Dupe CLA 2011-05-17 04:34:31 EDT
The regression has been fixed. We can then mark this bug as fixed.
Comment 11 Vincent Lorenzo CLA 2011-06-09 04:37:11 EDT
This bug can be marked as closed.