Undo/Redo facility [message #463534] |
Tue, 13 February 2007 07:27  |
Eclipse User |
|
|
|
Originally posted by: sujatha.atc.tcs.co.in
Hi,
iam trying to use undo/redo facility provided by eclipse.
I have written an operation which extends abstarct operation and have
overridden
undo redo and execute methods.Then i have written a jface action .In the
run method i have added my operation to the operation history and also
added a context to the operation.when iam trying to execute the action in
he context menu,the call is going to constructor of operation but it is
not going to execute method .
do i need to call the execute method explicitly or will it be called
implicitly..?
are the above steps incorrect?do i need to use undoactionhandler or
redoactionhandler?
|
|
|
|
|
|
|
Re: Undo/Redo facility [message #463655 is a reply to message #463649] |
Wed, 14 February 2007 03:25  |
Eclipse User |
|
|
|
Originally posted by: peter_ossipov.mail.ru
Hey, Sujatha!
Wazz up? Anyway, I do not see why your stuff is not working... Just a
guess... Try removing that line with adding context.
In addition, in your case I would debug and see what the operation
history is doing with your operation. Besides, why do not you have
try/catch block? are you throwing it in your method? just checking.
SujathaKotte wrote:
>
> hey i have tried with out null ,but its not working.
>
> can u send me any links for sample snippet of a simple operation
> (actually i am keen to know how the flow goes on)
>
> BR,
> Sujatha
>
|
|
|
Powered by
FUDForum. Page generated in 0.02376 seconds