|
Re: formatting a jsp but skipping the undo stack [message #148691 is a reply to message #148370] |
Wed, 23 November 2005 21:25 |
|
Scott Ellis wrote:
> So after the insert, if you press ctrl-Z, you first must cycle through
> undoing all of the format operations before you can actually undo the
> original insertion.
>
> Is there a way to make the format operations skip the undo stack?
Not skip, no, but you can accumulate it into one big undoable
operations. If you look at the
StructuredTextViewer.doOperation(int) method, you'll see that the
format handling wraps the formatting between a beingRecording and
endRecording method. You'd need to do something similar around the
inserting and formatting of your text.
--
- Nitin
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.03551 seconds