Hello Trupti: I am not sure I understand the question.
1. The modal tools take control of the cursor; and listen to the user and the users interactions 2. Based on the users interactions the tools will issue a commands 3. If the users action is undoable the command issued should be an UndoableCommand Does that help? The tools are very interactive and do not usually modify any state directly; instead they create a command that modifies state. You can see this with the basic Pan and Zoom tools (each of which issue undoable commands). Since they are navigation tools the undo stack is recorded as navigation history (and the forward and back buttons can be used to undo and redo navigation history). Cheers, -- Jody Garnett On Friday, 18 November 2011 at 4:25 PM, Trupti Pol wrote: > Hi, > > We have some 5-6 Modal tools developed in our application. > Now as per the user requirement the tool actions needs to be > undoable/redoable. > As per my knowledge we can make a Command undoable/redoable, but this kind > of facility is not provided for the tools. > > Can you please suggest me some approaches to get through this? > > Thanks, > Trupti > > -- > View this message in context: > http://udig-devel.19327.n5.nabble.com/Need-to-make-Undoable-ModalTool-tp5003442p5003442.html > Sent from the udig-devel mailing list archive at Nabble.com > (http://Nabble.com). > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
