Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

undoProblem

 
eLL Pascual
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also having a problem with undo and redo... Please help me again...
I have here my program codes...
This is an SSCCE...

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, but you have to be kidding. There is nothing "short" about this code excerpt. Plus, how are we supposed to figure out what's going on if you neither describe what the code is supposed to be doing, nor what it is actually doing?
 
eLL Pascual
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it has to be really short?

Oh my God, I dont know how to make that short because I guess this is the shortest it can be. All the codes here are necessary to run the program and address my problem.

This program is a notepad...
The problem here is that I am trying to make the program capable of using undo but the problem is it cannot tell weather an action happened.
[ July 11, 2008: Message edited by: eLL Pascual ]
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by eLL Pascual:
...The problem here is that I am trying to make the problem capable of using undo but the problem is it cannot tell weather an action happened.


Well you can always confirm this either by running your application in a debugger or having SOP statements in your actions.

These links might also be useful.
http://jroller.com/santhosh/entry/implementing_undo_redo_in_right

http://jroller.com/santhosh/entry/implementing_undo_redo_in_right1
[ July 01, 2008: Message edited by: Maneesh Godbole ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic