Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Undo Manager Highlights?
Undo Manager Highlights? [message #485554] Sun, 13 September 2009 13:49
Seth is currently offline SethFriend
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;
}
....
Previous Topic:Databinding: Validation and JSR303 / How to use ValidationStatusProvider
Next Topic:Starting Galileo takes a while...
Goto Forum:
  


Current Time: Tue Apr 30 08:59:08 GMT 2024

Powered by FUDForum. Page generated in 0.03017 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top