Mercurial > projects > dwt-addons
diff dwtx/jface/text/DefaultUndoManager.d @ 135:65801ad2b265
Regex fix for anon classes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:52:31 +0200 |
parents | 51e6e63f930e |
children | 25170b5a8951 |
line wrap: on
line diff
--- a/dwtx/jface/text/DefaultUndoManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/DefaultUndoManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -882,7 +882,7 @@ case OperationHistoryEvent.ABOUT_TO_REDO: // if this is one of our operations if (event.getOperation().hasContext(fUndoContext)) { - fTextViewer.getTextWidget().getDisplay().syncExec(new Runnable() { + fTextViewer.getTextWidget().getDisplay().syncExec(new class() Runnable { public void run() { // if we are undoing/redoing a command we generated, then ignore // the document changes associated with this undo or redo. @@ -913,7 +913,7 @@ case OperationHistoryEvent.REDONE: case OperationHistoryEvent.OPERATION_NOT_OK: if (event.getOperation() is fOperation) { - fTextViewer.getTextWidget().getDisplay().syncExec(new Runnable() { + fTextViewer.getTextWidget().getDisplay().syncExec(new class() Runnable { public void run() { listenToTextChanges(true); fOperation= null; @@ -1337,7 +1337,7 @@ display= finalShell.getDisplay(); else display= Display.getDefault(); - display.syncExec(new Runnable() { + display.syncExec(new class() Runnable { public void run() { MessageDialog.openError(finalShell, title, ex.getLocalizedMessage()); }