Mercurial > projects > dwt-addons
comparison dwtx/jface/text/link/LinkedModeUI.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 | 6dcb0baaa031 |
comparison
equal
deleted
inserted
replaced
134:51e6e63f930e | 135:65801ad2b265 |
---|---|
343 leave(ILinkedModeListener.EXIT_ALL); | 343 leave(ILinkedModeListener.EXIT_ALL); |
344 } | 344 } |
345 else | 345 else |
346 { | 346 { |
347 // Post in UI thread since the assistant popup will only get the focus after we lose it. | 347 // Post in UI thread since the assistant popup will only get the focus after we lose it. |
348 display.asyncExec(new Runnable() { | 348 display.asyncExec(new class() Runnable { |
349 public void run() { | 349 public void run() { |
350 if (fIsActive && viewer instanceof IEditingSupportRegistry) { | 350 if (fIsActive && viewer instanceof IEditingSupportRegistry) { |
351 IEditingSupport[] helpers= (cast(IEditingSupportRegistry) viewer).getRegisteredSupports(); | 351 IEditingSupport[] helpers= (cast(IEditingSupportRegistry) viewer).getRegisteredSupports(); |
352 for (int i= 0; i < helpers.length; i++) { | 352 for (int i= 0; i < helpers.length; i++) { |
353 if (helpers[i].ownsFocusShell()) | 353 if (helpers[i].ownsFocusShell()) |
620 private bool fDoContextInfo= false; | 620 private bool fDoContextInfo= false; |
621 /** Whether we have begun a compound change, but not yet closed. */ | 621 /** Whether we have begun a compound change, but not yet closed. */ |
622 private bool fHasOpenCompoundChange= false; | 622 private bool fHasOpenCompoundChange= false; |
623 /** The position listener. */ | 623 /** The position listener. */ |
624 private ILinkedModeUIFocusListener fPositionListener= new EmtpyFocusListener(); | 624 private ILinkedModeUIFocusListener fPositionListener= new EmtpyFocusListener(); |
625 private IAutoEditStrategy fAutoEditVetoer= new IAutoEditStrategy() { | 625 private IAutoEditStrategy fAutoEditVetoer= new class() IAutoEditStrategy { |
626 | 626 |
627 /* | 627 /* |
628 * @see dwtx.jface.text.IAutoEditStrategy#customizeDocumentCommand(dwtx.jface.text.IDocument, dwtx.jface.text.DocumentCommand) | 628 * @see dwtx.jface.text.IAutoEditStrategy#customizeDocumentCommand(dwtx.jface.text.IDocument, dwtx.jface.text.DocumentCommand) |
629 */ | 629 */ |
630 public void customizeDocumentCommand(IDocument document, DocumentCommand command) { | 630 public void customizeDocumentCommand(IDocument document, DocumentCommand command) { |
997 final StyledText widget= fCurrentTarget.fWidget; | 997 final StyledText widget= fCurrentTarget.fWidget; |
998 if (widget is null || widget.isDisposed()) | 998 if (widget is null || widget.isDisposed()) |
999 return; | 999 return; |
1000 | 1000 |
1001 // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=132263 | 1001 // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=132263 |
1002 widget.getDisplay().asyncExec(new Runnable() { | 1002 widget.getDisplay().asyncExec(new class() Runnable { |
1003 public void run() { | 1003 public void run() { |
1004 if (!widget.isDisposed()) | 1004 if (!widget.isDisposed()) |
1005 try { | 1005 try { |
1006 widget.showSelection(); | 1006 widget.showSelection(); |
1007 } catch (IllegalArgumentException e) { | 1007 } catch (IllegalArgumentException e) { |
1183 docs.add(doc); | 1183 docs.add(doc); |
1184 } | 1184 } |
1185 | 1185 |
1186 fModel.stopForwarding(flags); | 1186 fModel.stopForwarding(flags); |
1187 | 1187 |
1188 Runnable runnable= new Runnable() { | 1188 Runnable runnable= new class() Runnable { |
1189 public void run() { | 1189 public void run() { |
1190 if (fExitPosition !is null) | 1190 if (fExitPosition !is null) |
1191 fExitPosition.getDocument().removePosition(fExitPosition); | 1191 fExitPosition.getDocument().removePosition(fExitPosition); |
1192 | 1192 |
1193 for (Iterator iter = docs.iterator(); iter.hasNext(); ) { | 1193 for (Iterator iter = docs.iterator(); iter.hasNext(); ) { |