Undo Manager Highlights? [message #485554] |
Sun, 13 September 2009 13:49 |
Seth![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=nightowl2022%40hotmail.com) Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Hello,
I'm having a problem when I ctrl+z after an auto-edit strategy, like such
|0
(| 0)
Ctrl+z --> 0| (highlighted)
I'm pretty sure its not the code fault, but heres the appropriate
iaudoeditstrategy
public class PairAutoEdit implements IAutoEditStrategy {
private void cmdEnd(DocumentCommand c){
c.shiftsCaret = false;
c.caretOffset = c.offset + 1;
c.doit = false;
return;
}
// insert paired "", (), #| |#
public void customizeDocumentCommand(IDocument d,
DocumentCommand c) {
...
if( txt != "" ){
txt = "( "+txt+")";
c.text = txt;
c.length = txt.length()-3;
cmdEnd(c); return;
}
....
|
|
|
Powered by
FUDForum. Page generated in 0.03180 seconds