Undoable Operation Not Working [message #331068] |
Fri, 22 August 2008 19:45  |
Eclipse User |
|
|
|
I've made an operation that extends AbstractOperation then executed it
like so:
Operation o = new Operation();
o.addContext(Workbench.getInstance().getOperationSupport().g etUndoContext());
Workbench.getInstance().getOperationSupport().getOperationHi story().execute(o,
monitor, null);
This doesn't seem to add it into the Undo chain, as the undo action icon
doesn't become enabled after I perform the operation.
Is there something wrong with this approach? Is the proper way detailed
somewhere in a tutorial? I have looked at the eclipse help on Undoable
Operations but it seems that I have done everything that's in there.
Thanks,
Philippe
|
|
|
|
Powered by
FUDForum. Page generated in 0.02686 seconds