<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Add Undo/Redo functionality to a Java app</title>
	<atom:link href="http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/</link>
	<description>About teams and technology</description>
	<lastBuildDate>Wed, 11 Jan 2012 18:14:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: GrassEh</title>
		<link>http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/comment-page-1/#comment-602</link>
		<dc:creator>GrassEh</dc:creator>
		<pubDate>Fri, 25 Nov 2011 15:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://processworks.wordpress.com/?p=33#comment-602</guid>
		<description>Great article and very useful !
But I have a remark about the setValue() thing. 
Since every edits are done by the user himself (via an UI in general), I think it is better to register a new edit (via postEdit()) at the place where the &quot;setValue()&quot; method is actually called instead of the method itself.

For example imagine you have a method called &quot;enterKeyPressed()&quot; that you would called after the user press the Enter key or whatever. In this method you would then do:

undoSupport.postEdit(edit);
setValue(...);

This would avoid to post unecessary edits for example if you programmatically called the setValueAt() method.
It would also avoid you to have several setValueAt() methods.

Regards,
GrassEh</description>
		<content:encoded><![CDATA[<p>Great article and very useful !<br />
But I have a remark about the setValue() thing.<br />
Since every edits are done by the user himself (via an UI in general), I think it is better to register a new edit (via postEdit()) at the place where the &#8220;setValue()&#8221; method is actually called instead of the method itself.</p>
<p>For example imagine you have a method called &#8220;enterKeyPressed()&#8221; that you would called after the user press the Enter key or whatever. In this method you would then do:</p>
<p>undoSupport.postEdit(edit);<br />
setValue(&#8230;);</p>
<p>This would avoid to post unecessary edits for example if you programmatically called the setValueAt() method.<br />
It would also avoid you to have several setValueAt() methods.</p>
<p>Regards,<br />
GrassEh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morgan</title>
		<link>http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/comment-page-1/#comment-334</link>
		<dc:creator>Morgan</dc:creator>
		<pubDate>Sun, 22 May 2011 08:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://processworks.wordpress.com/?p=33#comment-334</guid>
		<description>Thank you so much for this. It&#039;s a brilliant little tutorial on undo/redo and it&#039;s most helpful.</description>
		<content:encoded><![CDATA[<p>Thank you so much for this. It&#8217;s a brilliant little tutorial on undo/redo and it&#8217;s most helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tikka</title>
		<link>http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/comment-page-1/#comment-269</link>
		<dc:creator>tikka</dc:creator>
		<pubDate>Mon, 21 Feb 2011 00:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://processworks.wordpress.com/?p=33#comment-269</guid>
		<description>&quot;I write this post to show you how simple undo in Java is and how it can be easily added to an existing application.&quot;

Very true.  This is one of the most helpful post on undo I came across. Thank you!</description>
		<content:encoded><![CDATA[<p>&#8220;I write this post to show you how simple undo in Java is and how it can be easily added to an existing application.&#8221;</p>
<p>Very true.  This is one of the most helpful post on undo I came across. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/comment-page-1/#comment-98</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 11 Jun 2010 15:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://processworks.wordpress.com/?p=33#comment-98</guid>
		<description>Glad to help,
Dominik</description>
		<content:encoded><![CDATA[<p>Glad to help,<br />
Dominik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.processworks.de/blog/2009/08/add-undoredo-functionality-to-a-java-app/comment-page-1/#comment-96</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Thu, 10 Jun 2010 16:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://processworks.wordpress.com/?p=33#comment-96</guid>
		<description>Cool.. good one.</description>
		<content:encoded><![CDATA[<p>Cool.. good one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

