<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 12: action-a, action-b, undo, undo, redo, redo fails</title><link>https://sourceforge.net/p/rejava/bugs/12/</link><description>Recent changes to 12: action-a, action-b, undo, undo, redo, redo fails</description><atom:link href="https://sourceforge.net/p/rejava/bugs/12/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 08 Oct 2006 12:05:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/rejava/bugs/12/feed.rss" rel="self" type="application/rss+xml"/><item><title>action-a, action-b, undo, undo, redo, redo fails</title><link>https://sourceforge.net/p/rejava/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Some of the actions, while supporting undo and redo do&lt;br /&gt;
not support the contract of the undoable actions.&lt;/p&gt;
&lt;p&gt;For example performing the two following actins:&lt;br /&gt;
*Create method&lt;br /&gt;
*Modify method (name for instance)&lt;/p&gt;
&lt;p&gt;Undo both actions.&lt;/p&gt;
&lt;p&gt;Redo create method: OK&lt;br /&gt;
Redo modify method: NOT OK - the modify method action&lt;br /&gt;
has a reference to a Method object created inicially,&lt;br /&gt;
but the redo create method creates a new Method action&lt;br /&gt;
which is the one that should be modified.&lt;/p&gt;
&lt;p&gt;The simplest solution seems to be adjusting the&lt;br /&gt;
existing actions so that the bulk of creating new&lt;br /&gt;
objects would be done in the initializer and not in the&lt;br /&gt;
perform method. That way it will "always create the&lt;br /&gt;
same object".&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sami Koivu</dc:creator><pubDate>Sun, 08 Oct 2006 12:05:19 -0000</pubDate><guid>https://sourceforge.net3733304d78312dd0085fe57c40d428e8f5fc0ce0</guid></item></channel></rss>