|
Re: formatting a jsp but skipping the undo stack [message #148691 is a reply to message #148370] |
Wed, 23 November 2005 21:25 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
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.03226 seconds