redo

How to implement undo/redo of files mapped in a treeview

Can anyone give an idea of how should I implement undo/redo of files (dirs, subdirs) mapped in a treeview - C#? Would be great some code samples ...

Pythonic equivalent of unshift or redo?

I'm learning Python, and I have a situation where I want to consume items from an iterator. The tricky part is that under certain conditions, I want to "un-iterate." That is, put an item back onto the front of the iterator before I loop. For example, suppose I'm picking apples from a tree. My fruit basket can only hold 10kg before it...

Can I jump back to the beginning of a method using 'redo' in Ruby?

In the Poignant Guide this example of the redo keyword is given: class LotteryTicket def self.new_random new(rand(25) + 1, rand(25) + 1, rand(25) + 1) rescue ArgumentError redo end end It's supposed to keep calling new until all three random numbers are unique. But after I typed this code in and ran it a few times, I got...

Cleanest Perl parser for Makefile-like continuation lines

A perl script I'm writing needs to parse a file that has continuation lines like a Makefile. i.e. lines that begin with whitespace are part of the previous line. I wrote the code below but don't feel like it is very clean or perl-ish (heck, it doesn't even use "redo"!) There are many edge cases: EOF at odd places, single-line files, f...

What are the effects of disabling the redo logs in Oracle on Hibernate transactions?

If we disable the 'redo logs' of a tablespace in Oracle, will they impact Hibernate's transactions? These are the options present in the Oracle EM on a tablespace level: Enable logging Yes Generate redo logs for creation of tables, indexes and partitions, and for subsequent inserts. Recoverable No Redo log entries are smaller, the a...

how do I do redo (i.e. "undo undo") in vim

In vim, I did to much undo. How do I undo this (i.e. redo) ...

How does Oracle manage Redo logs?

Can any body give me an idea about Redo logs? An example would be most appreciated. ...

How do I restore a NSUndoManager's contents in a CoreData NSManagedObjectContext?

I'd like to use NSUndoManager in an iPhone application on CoreData (NSManagedObject) objects such that I can save (and later restore) the state of the NSUndoManager if the application exits prematurely (say, due to a phone call coming in). I.e. as opposed to automatically discarding or saving the changes accumulated in the NSUndoManager...

undo, redo, delete function in java

hi there, I need to write these 3 functions, but i got stuck at redo and delete. Redo is showing error when there is nothing to redo and i don't know how to write delete function. Thank you undo public class Undo extends AbstractAction { private MyCanvas myCanvas; public Undo(MyCanvas myCanvas) { this.myCanvas = myCanvas; thi...

NSUndoManager with Core Data - Redo not working

I have a Core Data document-based app which support undo/redo via the built-in NSUndoManager associated with the NSManagedObjectContext. I have a few actions set up which perform numerous tasks within Core Data, wrap all these tasks into an undo group via beginUndoGrouping/endUndoGrouping, and are processed by the NSUndoManager. Undo wo...

NSUndoManager won't undo editing of a NSMutableDictionary

Hi, I'm experiencing problems with the undo operation. The following code won't undo an removeObjectForKey: operation but the redo operation setObject:ForKey: works. - (void) insertIntoDictionary:(NSBezierPath *)thePath { [[[window undoManager] prepareWithInvocationTarget:self] removeFromDictionary:thePath]; if(![[window undoManage...

Simple program logic to Call method continuously

Hi everybody, I am in a situation, in which my program needs to do processing and then wait for some interval, let's say 5 seconds and the do the same processing again. I don't know how to implement the logic. I have developed a logic, the code is below: private void ProcessEmail() { PprocessEmail:; //Do whatever ...

How to design undo & redo in text editor?

Part of my project is write text editor that used for type some rule and my application compile and run it. Writing compiler was end and release beta version. In final version we must add undo and redo in text editor.I use file and save it periodically for text editor. How to design undo and redo to my text editor? What is change in stru...

how to implement undo/redo operation without major changes in program

Hi I'm about to add new functionality to application which I'm currently writting. I need to write a undo/redo fnctionality. However 90% of our application is ready and I don't know what is the best way to implementing this functionality without affectig(too much ) code which has been already created. ...