# HG changeset patch # User Frank Benoit # Date 1219535551 -7200 # Node ID 65801ad2b265e481d2bac56272b0bb2e0a9d8aa7 # Parent 51e6e63f930e6b715c15055f7f3ca9ea49b32b2f Regex fix for anon classes diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/StickyHoverManager.d --- a/dwtx/jface/internal/text/StickyHoverManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/StickyHoverManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -232,7 +232,7 @@ public void focusLost(FocusEvent e) { if cast(DEBUG) System.out.println("StickyHoverManager.Closer.focusLost(): " + e); //$NON-NLS-1$ Display d= fSubjectControl.getDisplay(); - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { // Without the asyncExec, mouse clicks to the workbench window are swallowed. public void run() { hideInformationControl(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/html/BrowserInformationControl.d --- a/dwtx/jface/internal/text/html/BrowserInformationControl.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/html/BrowserInformationControl.d Sun Aug 24 01:52:31 2008 +0200 @@ -225,7 +225,7 @@ Display display= getShell().getDisplay(); fBrowser.setForeground(display.getSystemColor(DWT.COLOR_INFO_FOREGROUND)); fBrowser.setBackground(display.getSystemColor(DWT.COLOR_INFO_BACKGROUND)); - fBrowser.addKeyListener(new KeyListener() { + fBrowser.addKeyListener(new class() KeyListener { public void keyPressed(KeyEvent e) { if (e.character is 0x1B) // ESC @@ -235,7 +235,7 @@ public void keyReleased(KeyEvent e) {} }); - fBrowser.addProgressListener(new ProgressAdapter() { + fBrowser.addProgressListener(new class() ProgressAdapter { public void completed(ProgressEvent event) { fCompleted= true; } @@ -252,7 +252,7 @@ * @deprecated use {@link #setInput(Object)} */ public void setInformation(final String content) { - setInput(new BrowserInformationControlInput(null) { + setInput(new class(null) BrowserInformationControlInput { public String getHtml() { return content; } @@ -347,7 +347,7 @@ final Display display= shell.getDisplay(); // Make sure the display wakes from sleep after timeout: - display.timerExec(100, new Runnable() { + display.timerExec(100, new class() Runnable { public void run() { fCompleted= true; } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/html/HTMLPrinter.d --- a/dwtx/jface/internal/text/html/HTMLPrinter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/html/HTMLPrinter.d Sun Aug 24 01:52:31 2008 +0200 @@ -50,7 +50,7 @@ final Display display= Display.getDefault(); if (display !is null && !display.isDisposed()) { try { - display.asyncExec(new Runnable() { + display.asyncExec(new class() Runnable { /* * @see java.lang.Runnable#run() */ diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d --- a/dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d Sun Aug 24 01:52:31 2008 +0200 @@ -185,7 +185,7 @@ } if (fProposalTable !is null && !fProposalTable.isDisposed()) { - fProposalTable.getDisplay().asyncExec(new Runnable() { + fProposalTable.getDisplay().asyncExec(new class() Runnable { public void run() { if (!fIsReset) showInformation(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d --- a/dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d Sun Aug 24 01:52:31 2008 +0200 @@ -125,7 +125,7 @@ */ private bool fIsColoredLabelsSupportEnabled= false; - private final IEditingSupport fFocusEditingSupport= new IEditingSupport() { + private final IEditingSupport fFocusEditingSupport= new class() IEditingSupport { public bool isOriginator(DocumentEvent event, IRegion focus) { return false; @@ -137,7 +137,7 @@ } }; - private final IEditingSupport fModificationEditingSupport= new IEditingSupport() { + private final IEditingSupport fModificationEditingSupport= new class() IEditingSupport { public bool isOriginator(DocumentEvent event, IRegion focus) { if (fViewer !is null) { @@ -178,7 +178,7 @@ public String showProposals(final bool autoActivated) { if (fKeyListener is null) { - fKeyListener= new KeyListener() { + fKeyListener= new class() KeyListener { public void keyPressed(KeyEvent e) { if (!Helper2.okToUse(fProposalShell)) return; @@ -209,7 +209,7 @@ if (styledText !is null && !styledText.isDisposed()) styledText.addKeyListener(fKeyListener); -// BusyIndicator.showWhile(styledText.getDisplay(), new Runnable() { +// BusyIndicator.showWhile(styledText.getDisplay(), new class() Runnable { // public void run() { fInvocationOffset= fViewer.getSelectedRange().x; @@ -305,7 +305,7 @@ fProposalShell.setLocation(newLocation); if (fAdditionalInfoController !is null) { - fProposalShell.addControlListener(new ControlListener() { + fProposalShell.addControlListener(new class() ControlListener { public void controlMoved(ControlEvent e) {} @@ -324,7 +324,7 @@ c= control.getDisplay().getSystemColor(DWT.COLOR_INFO_FOREGROUND); fProposalTable.setForeground(c); - fProposalTable.addSelectionListener(new SelectionListener() { + fProposalTable.addSelectionListener(new class() SelectionListener { public void widgetSelected(SelectionEvent e) {} @@ -335,7 +335,7 @@ fPopupCloser.install(fContentAssistant, fProposalTable); - fProposalShell.addDisposeListener(new DisposeListener() { + fProposalShell.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { unregister(); // but don't dispose the shell, since we're being called from its disposal event! } @@ -664,7 +664,7 @@ if (fContentAssistant.addContentAssistListener(this, ContentAssistant2.PROPOSAL_SELECTOR)) { if (fDocumentListener is null) - fDocumentListener= new IDocumentListener() { + fDocumentListener= new class() IDocumentListener { public void documentAboutToBeChanged(DocumentEvent event) { if (!fInserting) fDocumentEvents.add(event); @@ -867,7 +867,7 @@ private void filterProposals() { ++ fInvocationCounter; Control control= fViewer.getTextWidget(); - control.getDisplay().asyncExec(new Runnable() { + control.getDisplay().asyncExec(new class() Runnable { long fCounter= fInvocationCounter; public void run() { diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/link/contentassist/ContentAssistant2.d --- a/dwtx/jface/internal/text/link/contentassist/ContentAssistant2.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/link/contentassist/ContentAssistant2.d Sun Aug 24 01:52:31 2008 +0200 @@ -194,7 +194,7 @@ if (control !is null) { Display d= control.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { if (!hasFocus()) hide(); @@ -331,7 +331,7 @@ Display d= control.getDisplay(); if (d !is null) { try { - d.syncExec(new Runnable() { + d.syncExec(new class() Runnable { public void run() { if (showStyle is SHOW_PROPOSALS) fProposalPopup.showProposals(true); @@ -747,7 +747,7 @@ * @return an IInformationControlCreator to be used to display context information */ private IInformationControlCreator getInformationControlCreator() { - return new IInformationControlCreator() { + return new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { return new DefaultInformationControl(parent, false); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d --- a/dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d Sun Aug 24 01:52:31 2008 +0200 @@ -120,7 +120,7 @@ */ public String showContextProposals(final bool autoActivated) { final StyledText styledText= fViewer.getTextWidget(); - BusyIndicator.showWhile(styledText.getDisplay(), new Runnable() { + BusyIndicator.showWhile(styledText.getDisplay(), new class() Runnable { public void run() { int position= fViewer.getSelectedRange().x; @@ -161,7 +161,7 @@ */ public void showContextInformation(final IContextInformation info, final int position) { Control control= fViewer.getTextWidget(); - BusyIndicator.showWhile(control.getDisplay(), new Runnable() { + BusyIndicator.showWhile(control.getDisplay(), new class() Runnable { public void run() { internalShowContextInfo(info, position); hideContextSelector(); @@ -363,7 +363,7 @@ c= control.getDisplay().getSystemColor(DWT.COLOR_INFO_FOREGROUND); fContextSelectorTable.setForeground(c); - fContextSelectorTable.addSelectionListener(new SelectionListener() { + fContextSelectorTable.addSelectionListener(new class() SelectionListener { public void widgetSelected(SelectionEvent e) { } @@ -632,7 +632,7 @@ * Otherwise, we'd validate the context information based on the * pre-key-stroke state. */ - fContextInfoPopup.getDisplay().asyncExec(new Runnable() { + fContextInfoPopup.getDisplay().asyncExec(new class() Runnable { private ContextFrame fFrame= cast(ContextFrame) fContextFrameStack.peek(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/link/contentassist/PopupCloser2.d --- a/dwtx/jface/internal/text/link/contentassist/PopupCloser2.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/link/contentassist/PopupCloser2.d Sun Aug 24 01:52:31 2008 +0200 @@ -120,7 +120,7 @@ public void focusLost(final FocusEvent e) { fScrollbarClicked= false; Display d= fTable.getDisplay(); - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { if (Helper2.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant !is null) fContentAssistant.popupFocusLost(e); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/revisions/RevisionPainter.d --- a/dwtx/jface/internal/text/revisions/RevisionPainter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/revisions/RevisionPainter.d Sun Aug 24 01:52:31 2008 +0200 @@ -376,7 +376,7 @@ */ protected IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { - return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, fIsFocusable) { + return new class(parent, JFaceResources.DIALOG_FONT, fIsFocusable) BrowserInformationControl { /* * @see dwtx.jface.internal.text.html.BrowserInformationControl#setInformation(java.lang.String) * @since 3.3 @@ -764,7 +764,7 @@ fControl.addMouseMoveListener(fMouseHandler); fControl.addListener(DWT.MouseUp, fMouseHandler); fControl.addListener(DWT.MouseDown, fMouseHandler); - fControl.addDisposeListener(new DisposeListener() { + fControl.addDisposeListener(new class() DisposeListener { /* * @see dwt.events.DisposeListener#widgetDisposed(dwt.events.DisposeEvent) */ @@ -1369,7 +1369,7 @@ if (isConnected() && !fControl.isDisposed()) { Display d= fControl.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { redraw(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/internal/text/source/DiffPainter.d --- a/dwtx/jface/internal/text/source/DiffPainter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/internal/text/source/DiffPainter.d Sun Aug 24 01:52:31 2008 +0200 @@ -186,7 +186,7 @@ if (fControl is null) return; - fControl.addDisposeListener(new DisposeListener() { + fControl.addDisposeListener(new class() DisposeListener { /* * @see dwt.events.DisposeListener#widgetDisposed(dwt.events.DisposeEvent) */ @@ -373,7 +373,7 @@ if (isConnected() && !fControl.isDisposed()) { Display d= fControl.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { redraw(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/AbstractHoverInformationControlManager.d --- a/dwtx/jface/text/AbstractHoverInformationControlManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/AbstractHoverInformationControlManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -460,7 +460,7 @@ final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, getInformationControlReplacer()); delayedICP.setDelayedInputChangeListener(inputChangeListener); // cancel automatic input updating after a small timeout: - control.getShell().getDisplay().timerExec(1000, new Runnable() { + control.getShell().getDisplay().timerExec(1000, new class() Runnable { public void run() { delayedICP.setDelayedInputChangeListener(null); } @@ -468,7 +468,7 @@ } // XXX: workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=212392 : - control.getShell().getDisplay().asyncExec(new Runnable() { + control.getShell().getDisplay().asyncExec(new class() Runnable { public void run() { replaceInformationControl(true); } @@ -1008,7 +1008,7 @@ if (monitor.isCanceled() || display.isDisposed()) { return Status.CANCEL_STATUS; } - display.syncExec(new Runnable() { + display.syncExec(new class() Runnable { public void run() { fReplacingDelayJob= null; if (monitor.isCanceled()) @@ -1119,7 +1119,7 @@ * @nooverride This method is not intended to be re-implemented or extended by clients. */ public InternalAccessor getInternalAccessor() { - return new MyInternalAccessor() { + return new class() MyInternalAccessor { public void setHoverEnrichMode(EnrichMode mode) { AbstractHoverInformationControlManager.this.setHoverEnrichMode(mode); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/AbstractInformationControl.d --- a/dwtx/jface/text/AbstractInformationControl.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/AbstractInformationControl.d Sun Aug 24 01:52:31 2008 +0200 @@ -414,7 +414,7 @@ data.widthHint= size; data.heightHint= size; resizer.setLayoutData(data); - resizer.addPaintListener(new PaintListener() { + resizer.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent e) { Point s= resizer.getSize(); int x= s.x - 2; @@ -448,7 +448,7 @@ }); resizer.setCursor(new Cursor(resizer.getDisplay(), DWT.CURSOR_SIZESE)); - MouseAdapter resizeSupport= new MouseAdapter() { + MouseAdapter resizeSupport= new class() MouseAdapter { private MouseMoveListener fResizeListener; public void mouseDown(MouseEvent e) { @@ -458,7 +458,7 @@ Point mouseLoc= resizer.toDisplay(e.x, e.y); final int mouseX= mouseLoc.x; final int mouseY= mouseLoc.y; - fResizeListener= new MouseMoveListener() { + fResizeListener= new class() MouseMoveListener { public void mouseMove(MouseEvent e2) { Point mouseLoc2= resizer.toDisplay(e2.x, e2.y); int dx= mouseLoc2.x - mouseX; @@ -497,7 +497,7 @@ * @param control the control that can be used to move the shell */ private void addMoveSupport(final Control control) { - MouseAdapter moveSupport= new MouseAdapter() { + MouseAdapter moveSupport= new class() MouseAdapter { private MouseMoveListener fMoveListener; public void mouseDown(MouseEvent e) { @@ -507,7 +507,7 @@ Point mouseLoc= control.toDisplay(e.x, e.y); final int mouseX= mouseLoc.x; final int mouseY= mouseLoc.y; - fMoveListener= new MouseMoveListener() { + fMoveListener= new class() MouseMoveListener { public void mouseMove(MouseEvent e2) { Point mouseLoc2= control.toDisplay(e2.x, e2.y); int dx= mouseLoc2.x - mouseX; @@ -771,7 +771,7 @@ */ public void addFocusListener(final FocusListener listener) { if (fFocusListeners.isEmpty()) { - fShellListener= new Listener() { + fShellListener= new class() Listener { public void handleEvent(Event event) { Object[] listeners= fFocusListeners.getListeners(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/AbstractInformationControlManager.d --- a/dwtx/jface/text/AbstractInformationControlManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/AbstractInformationControlManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -802,7 +802,7 @@ */ private DisposeListener getSubjectControlDisposeListener() { if (fSubjectControlDisposeListener is null) { - fSubjectControlDisposeListener= new DisposeListener() { + fSubjectControlDisposeListener= new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleSubjectControlDisposed(); } @@ -953,7 +953,7 @@ if (fInformationControl is null) { fInformationControl= creator.createInformationControl(fSubjectControl.getShell()); - fInformationControl.addDisposeListener(new DisposeListener() { + fInformationControl.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleInformationControlDisposed(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/AbstractLineTracker.d --- a/dwtx/jface/text/AbstractLineTracker.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/AbstractLineTracker.d Sun Aug 24 01:52:31 2008 +0200 @@ -240,7 +240,7 @@ * * @since 3.2 */ - private ILineTracker fDelegate= new ListLineTracker() { + private ILineTracker fDelegate= new class() ListLineTracker { public String[] getLegalLineDelimiters() { return AbstractLineTracker.this.getLegalLineDelimiters(); } @@ -370,7 +370,7 @@ private void checkImplementation() { if (fNeedsConversion) { fNeedsConversion= false; - fDelegate= new TreeLineTracker(cast(ListLineTracker) fDelegate) { + fDelegate= new class(cast(ListLineTracker) fDelegate) TreeLineTracker { protected DelimiterInfo nextDelimiterInfo(String text, int offset) { return AbstractLineTracker.this.nextDelimiterInfo(text, offset); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/DefaultInformationControl.d --- a/dwtx/jface/text/DefaultInformationControl.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/DefaultInformationControl.d Sun Aug 24 01:52:31 2008 +0200 @@ -566,7 +566,7 @@ * @since 3.4 */ public IInformationControlCreator getInformationPresenterControlCreator() { - return new IInformationControlCreator() { + return new class() IInformationControlCreator { /* * @see dwtx.jface.text.IInformationControlCreator#createInformationControl(dwt.widgets.Shell) */ diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/DefaultUndoManager.d --- 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()); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/PaintManager.d --- a/dwtx/jface/text/PaintManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/PaintManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -492,7 +492,7 @@ Control control= fTextViewer.getTextWidget(); if (control !is null) { - control.getDisplay().asyncExec(new Runnable() { + control.getDisplay().asyncExec(new class() Runnable { public void run() { if (fTextViewer !is null) paint(IPainter.TEXT_CHANGE); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/PropagatingFontFieldEditor.d --- a/dwtx/jface/text/PropagatingFontFieldEditor.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/PropagatingFontFieldEditor.d Sun Aug 24 01:52:31 2008 +0200 @@ -267,7 +267,7 @@ * @param targetKey the key to be used in the target preference store */ public static void startPropagate(final IPreferenceStore source, final String sourceKey, final IPreferenceStore target, final String targetKey) { - source.addPropertyChangeListener(new IPropertyChangeListener() { + source.addPropertyChangeListener(new class() IPropertyChangeListener { public void propertyChange(PropertyChangeEvent event) { if (sourceKey.equals(event.getProperty())) propagateFont(source, sourceKey, target, targetKey); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/TextViewer.d --- a/dwtx/jface/text/TextViewer.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/TextViewer.d Sun Aug 24 01:52:31 2008 +0200 @@ -1845,7 +1845,7 @@ fTextWidget= createTextWidget(parent, styles); // Support scroll page upon MOD1+MouseWheel - fTextWidget.addListener(DWT.MouseWheel, new Listener() { + fTextWidget.addListener(DWT.MouseWheel, new class() Listener { public void handleEvent(Event event) { if (((event.stateMask & DWT.MOD1) is 0)) @@ -1864,7 +1864,7 @@ }); fTextWidget.addDisposeListener( - new DisposeListener() { + new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleDispose(); } @@ -1878,7 +1878,7 @@ * Disable DWT Shift+TAB traversal in this viewer * 1GIYQ9K: ITPUI:WINNT - StyledText swallows Shift+TAB */ - fTextWidget.addTraverseListener(new TraverseListener() { + fTextWidget.addTraverseListener(new class() TraverseListener { public void keyTraversed(TraverseEvent e) { if ((DWT.SHIFT is e.stateMask) && ('\t' is e.character)) e.doit= false; @@ -1891,7 +1891,7 @@ fVerifyListener.forward(true); fTextWidget.addVerifyListener(fVerifyListener); - fTextWidget.addSelectionListener(new SelectionListener() { + fTextWidget.addSelectionListener(new class() SelectionListener { public void widgetDefaultSelected(SelectionEvent event) { selectionChanged(event.x, event.y - event.x); } @@ -2635,7 +2635,7 @@ return; fNumberOfPostSelectionChangedEvents[0]++; - display.timerExec(getEmptySelectionChangedEventDelay(), new Runnable() { + display.timerExec(getEmptySelectionChangedEventDelay(), new class() Runnable { final int id= fNumberOfPostSelectionChangedEvents[0]; public void run() { if (id is fNumberOfPostSelectionChangedEvents[0]) { diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/TextViewerHoverManager.d --- a/dwtx/jface/text/TextViewerHoverManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/TextViewerHoverManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -230,7 +230,7 @@ public this(TextViewer textViewer, IInformationControlCreator creator) { super(creator); fTextViewer= textViewer; - fStopper= new ITextListener() { + fStopper= new class() ITextListener { public void textChanged(TextEvent event) { synchronized (fMutex) { if (fThread !is null) { @@ -240,7 +240,7 @@ } } }; - fViewportListener= new IViewportListener() { + fViewportListener= new class() IViewportListener { /* * @see dwtx.jface.text.IViewportListener#viewportChanged(int) */ @@ -249,7 +249,7 @@ } }; fTextViewer.addViewportListener(fViewportListener); - fMouseMoveListener= new MouseMoveListener() { + fMouseMoveListener= new class() MouseMoveListener { /* * @see MouseMoveListener#mouseMove(MouseEvent) */ @@ -375,7 +375,7 @@ if (display is null) return; - display.asyncExec(new Runnable() { + display.asyncExec(new class() Runnable { public void run() { doPresentInformation(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/TextViewerUndoManager.d --- a/dwtx/jface/text/TextViewerUndoManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/TextViewerUndoManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -298,7 +298,7 @@ if (extension !is null) extension.setRedraw(false); } - fTextViewer.getTextWidget().getDisplay().syncExec(new Runnable() { + fTextViewer.getTextWidget().getDisplay().syncExec(new class() Runnable { public void run() { if (fTextViewer instanceof TextViewer) (cast(TextViewer)fTextViewer).ignoreAutoEditStrategies(true); @@ -306,7 +306,7 @@ }); } else if (((eventType & DocumentUndoEvent.UNDONE) !is 0) || ((eventType & DocumentUndoEvent.REDONE) !is 0)) { - fTextViewer.getTextWidget().getDisplay().syncExec(new Runnable() { + fTextViewer.getTextWidget().getDisplay().syncExec(new class() Runnable { public void run() { if (fTextViewer instanceof TextViewer) (cast(TextViewer)fTextViewer).ignoreAutoEditStrategies(false); @@ -444,7 +444,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()); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/contentassist/AdditionalInfoController.d --- a/dwtx/jface/text/contentassist/AdditionalInfoController.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/contentassist/AdditionalInfoController.d Sun Aug 24 01:52:31 2008 +0200 @@ -112,7 +112,7 @@ * IDLE: the initial task, and active whenever the info has been shown. It cannot be run, * but specifies an infinite delay. */ - private final Task IDLE= new Task() { + private final Task IDLE= new class() Task { public void run() { Assert.isTrue(false); } @@ -133,7 +133,7 @@ /** * FIRST_WAIT: Schedules a platform {@link Job} to fetch additional info from an {@link ICompletionProposalExtension5}. */ - private final Task FIRST_WAIT= new Task() { + private final Task FIRST_WAIT= new class() Task { public void run() { final ICompletionProposalExtension5 proposal= getCurrentProposalEx(); Job job= new Job(JFaceTextMessages.getString("AdditionalInfoController.job_name")) { //$NON-NLS-1$ @@ -171,7 +171,7 @@ * SECOND_WAIT: Allows display of additional info obtained from an * {@link ICompletionProposalExtension5}. */ - private final Task SECOND_WAIT= new Task() { + private final Task SECOND_WAIT= new class() Task { public void run() { // show the info allowShowing(); @@ -192,11 +192,11 @@ /** * LEGACY_WAIT: Posts a runnable into the display thread to fetch additional info from non-{@link ICompletionProposalExtension5}s. */ - private final Task LEGACY_WAIT= new Task() { + private final Task LEGACY_WAIT= new class() Task { public void run() { final ICompletionProposal proposal= getCurrentProposal(); if (!fDisplay.isDisposed()) { - fDisplay.asyncExec(new Runnable() { + fDisplay.asyncExec(new class() Runnable { public void run() { synchronized (Timer.this) { if (proposal is getCurrentProposal()) { @@ -224,7 +224,7 @@ /** * EXIT: The task that triggers termination of the timer thread. */ - private final Task EXIT= new Task() { + private final Task EXIT= new class() Task { public long delay() { return 1; } @@ -270,7 +270,7 @@ long current= System.currentTimeMillis(); schedule(IDLE, current); - fThread= new Thread(new Runnable() { + fThread= new class(new Runnable() Thread { public void run() { try { loop(); @@ -372,7 +372,7 @@ private void triggerShowing() { final Object info= fCurrentInfo; if (!fDisplay.isDisposed()) { - fDisplay.asyncExec(new Runnable() { + fDisplay.asyncExec(new class() Runnable { public void run() { synchronized (Timer.this) { if (info is fCurrentInfo) { @@ -491,7 +491,7 @@ fProposalTable.addSelectionListener(fSelectionListener); getInternalAccessor().getInformationControlReplacer().install(fProposalTable); - fTimer= new Timer(fProposalTable.getDisplay(), fDelay) { + fTimer= new class(fProposalTable.getDisplay(), fDelay) Timer { protected void showInformation(ICompletionProposal proposal, Object info) { InformationControlReplacer replacer= getInternalAccessor().getInformationControlReplacer(); if (replacer !is null) diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/contentassist/CompletionProposalPopup.d --- a/dwtx/jface/text/contentassist/CompletionProposalPopup.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/contentassist/CompletionProposalPopup.d Sun Aug 24 01:52:31 2008 +0200 @@ -385,7 +385,7 @@ * * @since 3.1.1 */ - private final Runnable fFilterRunnable= new Runnable() { + private final Runnable fFilterRunnable= new class() Runnable { public void run() { if (!fIsFilterPending) return; @@ -510,7 +510,7 @@ // when the user types fast. fContentAssistSubjectControlAdapter.addKeyListener(fKeyListener); - BusyIndicator.showWhile(control.getDisplay(), new Runnable() { + BusyIndicator.showWhile(control.getDisplay(), new class() Runnable { public void run() { fInvocationOffset= fContentAssistSubjectControlAdapter.getSelectedRange().x; @@ -609,7 +609,7 @@ if cast(USE_VIRTUAL) { fProposalTable= new Table(fProposalShell, DWT.H_SCROLL | DWT.V_SCROLL | DWT.VIRTUAL); - Listener listener= new Listener() { + Listener listener= new class() Listener { public void handleEvent(Event event) { handleSetData(event); } @@ -656,7 +656,7 @@ } fContentAssistant.addToLayout(this, fProposalShell, ContentAssistant.LayoutManager.LAYOUT_PROPOSAL_SELECTOR, fContentAssistant.getSelectionOffset()); - fProposalShell.addControlListener(new ControlListener() { + fProposalShell.addControlListener(new class() ControlListener { public void controlMoved(ControlEvent e) {} @@ -678,7 +678,7 @@ c= getForegroundColor(control); fProposalTable.setForeground(c); - fProposalTable.addSelectionListener(new SelectionListener() { + fProposalTable.addSelectionListener(new class() SelectionListener { public void widgetSelected(SelectionEvent e) {} @@ -689,7 +689,7 @@ fPopupCloser.install(fContentAssistant, fProposalTable, fAdditionalInfoController); - fProposalShell.addDisposeListener(new DisposeListener() { + fProposalShell.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { unregister(); // but don't dispose the shell, since we're being called from its disposal event! } @@ -728,7 +728,7 @@ private void addCommandSupport(final Control control) { final KeySequence commandSequence= fContentAssistant.getRepeatedInvocationKeySequence(); if (commandSequence !is null && !commandSequence.isEmpty() && fContentAssistant.isRepeatedInvocationMode()) { - control.addFocusListener(new FocusListener() { + control.addFocusListener(new class() FocusListener { private CommandKeyListener fCommandKeyListener; public void focusGained(FocusEvent e) { if (Helper.okToUse(control)) { @@ -746,12 +746,12 @@ } }); } - control.addFocusListener(new FocusListener() { + control.addFocusListener(new class() FocusListener { private TraverseListener fTraverseListener; public void focusGained(FocusEvent e) { if (Helper.okToUse(control)) { if (fTraverseListener is null) { - fTraverseListener= new TraverseListener() { + fTraverseListener= new class() TraverseListener { public void keyTraversed(TraverseEvent event) { if (event.detail is DWT.TRAVERSE_TAB_NEXT) { IInformationControl iControl= fAdditionalInfoController.getCurrentInformationControl2(); @@ -828,7 +828,7 @@ if (fContentAssistant.isRepeatedInvocationMode()) { fMessageText.setCursor(fProposalShell.getDisplay().getSystemCursor(DWT.CURSOR_HAND)); - fMessageText.addMouseListener(new MouseAdapter() { + fMessageText.addMouseListener(new class() MouseAdapter { public void mouseUp(MouseEvent e) { fLastCompletionOffset= fFilterOffset; fProposalTable.setFocus(); @@ -922,7 +922,7 @@ fInserting= true; IRewriteTarget target= null; - IEditingSupport helper= new IEditingSupport() { + IEditingSupport helper= new class() IEditingSupport { public bool isOriginator(DocumentEvent event, IRegion focus) { return focus.getOffset() <= offset && focus.getOffset() + focus.getLength() >= offset; @@ -1195,7 +1195,7 @@ ensureDocumentListenerInstalled(); if (fFocusHelper is null) { - fFocusHelper= new IEditingSupport() { + fFocusHelper= new class() IEditingSupport { public bool isOriginator(DocumentEvent event, IRegion focus) { return false; // this helper just covers the focus change to the proposal shell, no remote editions @@ -1240,7 +1240,7 @@ */ private void ensureDocumentListenerInstalled() { if (fDocumentListener is null) { - fDocumentListener= new IDocumentListener() { + fDocumentListener= new class() IDocumentListener { public void documentAboutToBeChanged(DocumentEvent event) { if (!fInserting) fDocumentEvents.add(event); @@ -1563,7 +1563,7 @@ if (!Helper.okToUse(fProposalShell) && !control.isDisposed()) fContentAssistSubjectControlAdapter.addKeyListener(fKeyListener); - BusyIndicator.showWhile(control.getDisplay(), new Runnable() { + BusyIndicator.showWhile(control.getDisplay(), new class() Runnable { public void run() { fInvocationOffset= fContentAssistSubjectControlAdapter.getSelectedRange().x; diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/contentassist/ContentAssistant.d --- a/dwtx/jface/text/contentassist/ContentAssistant.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/contentassist/ContentAssistant.d Sun Aug 24 01:52:31 2008 +0200 @@ -240,7 +240,7 @@ if (Helper.okToUse(control)) { Display d= control.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { if (!fProposalPopup.hasFocus() && (fContextInfoPopup is null || !fContextInfoPopup.hasFocus())) hide(); @@ -396,7 +396,7 @@ return; try { - d.syncExec(new Runnable() { + d.syncExec(new class() Runnable { public void run() { if (isProposalPopupActive()) return; @@ -1421,7 +1421,7 @@ if (Helper.okToUse(fContentAssistSubjectControlAdapter.getControl())) { fContentAssistSubjectControlShell= fContentAssistSubjectControlAdapter.getControl().getShell(); - fCASCSTraverseListener= new TraverseListener() { + fCASCSTraverseListener= new class() TraverseListener { public void keyTraversed(TraverseEvent e) { if (e.detail is DWT.TRAVERSE_ESCAPE && isProposalPopupActive()) e.doit= false; diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/contentassist/ContextInformationPopup.d --- a/dwtx/jface/text/contentassist/ContextInformationPopup.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/contentassist/ContextInformationPopup.d Sun Aug 24 01:52:31 2008 +0200 @@ -214,7 +214,7 @@ */ public String showContextProposals(final bool autoActivated) { final Control control= fContentAssistSubjectControlAdapter.getControl(); - BusyIndicator.showWhile(control.getDisplay(), new Runnable() { + BusyIndicator.showWhile(control.getDisplay(), new class() Runnable { public void run() { int offset= fContentAssistSubjectControlAdapter.getSelectedRange().x; @@ -285,7 +285,7 @@ */ public void showContextInformation(final IContextInformation info, final int offset) { Control control= fContentAssistSubjectControlAdapter.getControl(); - BusyIndicator.showWhile(control.getDisplay(), new Runnable() { + BusyIndicator.showWhile(control.getDisplay(), new class() Runnable { public void run() { if (info is null) validateContextInformation(); @@ -397,7 +397,7 @@ if (initial) { if (fContentAssistant.addContentAssistListener(this, ContentAssistant.CONTEXT_INFO_POPUP)) { if (fContentAssistSubjectControlAdapter.getControl() !is null) { - fTextWidgetSelectionListener= new SelectionAdapter() { + fTextWidgetSelectionListener= new class() SelectionAdapter { /* * @see dwt.events.SelectionAdapter#widgetSelected(dwt.events.SelectionEvent) */ @@ -560,7 +560,7 @@ c= control.getDisplay().getSystemColor(DWT.COLOR_INFO_FOREGROUND); fContextSelectorTable.setForeground(c); - fContextSelectorTable.addSelectionListener(new SelectionListener() { + fContextSelectorTable.addSelectionListener(new class() SelectionListener { public void widgetSelected(SelectionEvent e) { } @@ -851,7 +851,7 @@ if (!Helper.okToUse(fContextInfoPopup)) return; - fContextInfoPopup.getDisplay().asyncExec(new Runnable() { + fContextInfoPopup.getDisplay().asyncExec(new class() Runnable { private ContextFrame fFrame= cast(ContextFrame) fContextFrameStack.peek(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/contentassist/PopupCloser.d --- a/dwtx/jface/text/contentassist/PopupCloser.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/contentassist/PopupCloser.d Sun Aug 24 01:52:31 2008 +0200 @@ -193,7 +193,7 @@ public void focusLost(final FocusEvent e) { fScrollbarClicked= false; Display d= fTable.getDisplay(); - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { if (Helper.okToUse(fTable) && !fTable.isFocusControl() && !fScrollbarClicked && fContentAssistant !is null) fContentAssistant.popupFocusLost(e); @@ -265,7 +265,7 @@ final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer()); delayedICP.setDelayedInputChangeListener(inputChangeListener); // cancel automatic input updating after a small timeout: - control.getShell().getDisplay().timerExec(1000, new Runnable() { + control.getShell().getDisplay().timerExec(1000, new class() Runnable { public void run() { delayedICP.setDelayedInputChangeListener(null); } @@ -273,7 +273,7 @@ } // XXX: workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=212392 : - control.getShell().getDisplay().asyncExec(new Runnable() { + control.getShell().getDisplay().asyncExec(new class() Runnable { public void run() { fAdditionalInfoController.getInternalAccessor().replaceInformationControl(true); } @@ -293,7 +293,7 @@ Control control= cast(Control) event.widget; IInformationControlExtension5 iControl5= cast(IInformationControlExtension5) iControl; if (iControl5.containsControl(control)) { - control.getDisplay().asyncExec(new Runnable() { + control.getDisplay().asyncExec(new class() Runnable { public void run() { if (fContentAssistant !is null && ! fContentAssistant.hasProposalPopupFocus()) fContentAssistant.hide(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/hyperlink/DefaultHyperlinkPresenter.d --- a/dwtx/jface/text/hyperlink/DefaultHyperlinkPresenter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/hyperlink/DefaultHyperlinkPresenter.d Sun Aug 24 01:52:31 2008 +0200 @@ -324,7 +324,7 @@ StyledText widget= fTextViewer.getTextWidget(); if (widget !is null && !widget.isDisposed()) { - widget.getDisplay().asyncExec(new Runnable() { + widget.getDisplay().asyncExec(new class() Runnable { public void run() { hideHyperlinks(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/hyperlink/MultipleHyperlinkPresenter.d --- a/dwtx/jface/text/hyperlink/MultipleHyperlinkPresenter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/hyperlink/MultipleHyperlinkPresenter.d Sun Aug 24 01:52:31 2008 +0200 @@ -230,7 +230,7 @@ registerTableListeners(); - getShell().addShellListener(new ShellAdapter() { + getShell().addShellListener(new class() ShellAdapter { /* * @see dwt.events.ShellAdapter#shellActivated(dwt.events.ShellEvent) @@ -247,7 +247,7 @@ private void registerTableListeners() { - fTable.addMouseMoveListener(new MouseMoveListener() { + fTable.addMouseMoveListener(new class() MouseMoveListener { TableItem fLastItem= null; public void mouseMove(MouseEvent e) { @@ -278,13 +278,13 @@ } }); - fTable.addSelectionListener(new SelectionAdapter() { + fTable.addSelectionListener(new class() SelectionAdapter { public void widgetSelected(SelectionEvent e) { openSelectedLink(); } }); - fTable.addMouseListener(new MouseAdapter() { + fTable.addMouseListener(new class() MouseAdapter { public void mouseUp(MouseEvent e) { if (fTable.getSelectionCount() < 1) return; @@ -301,7 +301,7 @@ } }); - fTable.addKeyListener(new KeyAdapter() { + fTable.addKeyListener(new class() KeyAdapter { public void keyPressed(KeyEvent e) { if (e.keyCode is 0x0D) // return openSelectedLink(); @@ -355,7 +355,7 @@ * @see dwtx.jface.text.ITextHoverExtension#getHoverControlCreator() */ public IInformationControlCreator getHoverControlCreator() { - return new IInformationControlCreator() { + return new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { Color foregroundColor= fTextViewer.getTextWidget().getForeground(); Color backgroundColor= fTextViewer.getTextWidget().getBackground(); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/information/InformationPresenter.d --- a/dwtx/jface/text/information/InformationPresenter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/information/InformationPresenter.d Sun Aug 24 01:52:31 2008 +0200 @@ -200,7 +200,7 @@ */ public void focusLost(FocusEvent e) { Display d= fSubjectControl.getDisplay(); - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { // Without the asyncExec, mouse clicks to the workbench window are swallowed. public void run() { if (fInformationControlToClose is null || !fInformationControlToClose.isFocusControl()) diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/link/LinkedModeUI.d --- a/dwtx/jface/text/link/LinkedModeUI.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/link/LinkedModeUI.d Sun Aug 24 01:52:31 2008 +0200 @@ -345,7 +345,7 @@ else { // Post in UI thread since the assistant popup will only get the focus after we lose it. - display.asyncExec(new Runnable() { + display.asyncExec(new class() Runnable { public void run() { if (fIsActive && viewer instanceof IEditingSupportRegistry) { IEditingSupport[] helpers= (cast(IEditingSupportRegistry) viewer).getRegisteredSupports(); @@ -622,7 +622,7 @@ private bool fHasOpenCompoundChange= false; /** The position listener. */ private ILinkedModeUIFocusListener fPositionListener= new EmtpyFocusListener(); - private IAutoEditStrategy fAutoEditVetoer= new IAutoEditStrategy() { + private IAutoEditStrategy fAutoEditVetoer= new class() IAutoEditStrategy { /* * @see dwtx.jface.text.IAutoEditStrategy#customizeDocumentCommand(dwtx.jface.text.IDocument, dwtx.jface.text.DocumentCommand) @@ -999,7 +999,7 @@ return; // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=132263 - widget.getDisplay().asyncExec(new Runnable() { + widget.getDisplay().asyncExec(new class() Runnable { public void run() { if (!widget.isDisposed()) try { @@ -1185,7 +1185,7 @@ fModel.stopForwarding(flags); - Runnable runnable= new Runnable() { + Runnable runnable= new class() Runnable { public void run() { if (fExitPosition !is null) fExitPosition.getDocument().removePosition(fExitPosition); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/revisions/RevisionInformation.d --- a/dwtx/jface/text/revisions/RevisionInformation.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/revisions/RevisionInformation.d Sun Aug 24 01:52:31 2008 +0200 @@ -114,7 +114,7 @@ } // sort by start line - Collections.sort(ranges, new Comparator() { + Collections.sort(ranges, new class() Comparator { public int compare(Object o1, Object o2) { RevisionRange r1= cast(RevisionRange) o1; RevisionRange r2= cast(RevisionRange) o2; diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/AbstractRulerColumn.d --- a/dwtx/jface/text/source/AbstractRulerColumn.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/AbstractRulerColumn.d Sun Aug 24 01:52:31 2008 +0200 @@ -277,7 +277,7 @@ fCanvas.setBackground(getDefaultBackground()); fCanvas.setFont(getFont()); - fCanvas.addPaintListener(new PaintListener() { + fCanvas.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent event) { AbstractRulerColumn.this.paintControl(event); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/AnnotationBarHoverManager.d --- a/dwtx/jface/text/source/AnnotationBarHoverManager.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationBarHoverManager.d Sun Aug 24 01:52:31 2008 +0200 @@ -815,7 +815,7 @@ * @nooverride This method is not intended to be re-implemented or extended by clients. */ public InternalAccessor getInternalAccessor() { - return new InternalAccessor() { + return new class() InternalAccessor { public IInformationControl getCurrentInformationControl() { return AnnotationBarHoverManager.super.getInternalAccessor().getCurrentInformationControl(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/AnnotationModel.d --- a/dwtx/jface/text/source/AnnotationModel.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationModel.d Sun Aug 24 01:52:31 2008 +0200 @@ -378,7 +378,7 @@ fPositions= new IdentityHashMap(10); fAnnotationModelListeners= new ArrayList(2); - fDocumentListener= new IDocumentListener() { + fDocumentListener= new class() IDocumentListener { public void documentAboutToBeChanged(DocumentEvent event) { } @@ -740,7 +740,7 @@ removeAnnotations(deleted, false, false); synchronized (getLockObject()) { if (fModelEvent !is null) - new Thread() { + new class() Thread { public void run() { fireModelChanged(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/AnnotationPainter.d --- a/dwtx/jface/text/source/AnnotationPainter.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationPainter.d Sun Aug 24 01:52:31 2008 +0200 @@ -1136,7 +1136,7 @@ // changes any more. If the document gets modified between // now and running the posted runnable, the position information // is not accurate any longer. - textWidgetDisplay.asyncExec(new Runnable() { + textWidgetDisplay.asyncExec(new class() Runnable { public void run() { if (fTextWidget !is null && !fTextWidget.isDisposed()) updatePainting(event); @@ -1184,7 +1184,7 @@ fCachedAnnotationType2PaintingStrategy.clear(); if (fTextInputListener is null) { - fTextInputListener= new ITextInputListener() { + fTextInputListener= new class() ITextInputListener { /* * @see dwtx.jface.text.ITextInputListener#inputDocumentAboutToBeChanged(dwtx.jface.text.IDocument, dwtx.jface.text.IDocument) diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/AnnotationRulerColumn.d --- a/dwtx/jface/text/source/AnnotationRulerColumn.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationRulerColumn.d Sun Aug 24 01:52:31 2008 +0200 @@ -340,14 +340,14 @@ fCanvas= createCanvas(parentControl); - fCanvas.addPaintListener(new PaintListener() { + fCanvas.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent event) { if (fCachedTextViewer !is null) doubleBufferPaint(event.gc); } }); - fCanvas.addDisposeListener(new DisposeListener() { + fCanvas.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleDispose(); fCachedTextViewer= null; @@ -355,7 +355,7 @@ } }); - fMouseListener= new MouseListener() { + fMouseListener= new class() MouseListener { public void mouseUp(MouseEvent event) { int lineNumber; if (isPropagatingMouseListener()) { @@ -387,7 +387,7 @@ }; fCanvas.addMouseListener(fMouseListener); - fCanvas.addMouseMoveListener(new MouseMoveListener() { + fCanvas.addMouseMoveListener(new class() MouseMoveListener { /* * @see dwt.events.MouseMoveListener#mouseMove(dwt.events.MouseEvent) * @since 3.0 @@ -412,7 +412,7 @@ * @return the created canvas */ private Canvas createCanvas(Composite parent) { - return new Canvas(parent, DWT.NO_BACKGROUND | DWT.NO_FOCUS) { + return new class(parent, DWT.NO_BACKGROUND | DWT.NO_FOCUS) Canvas { /* * @see dwt.widgets.Control#addMouseListener(dwt.events.MouseListener) * @since 3.0 @@ -845,7 +845,7 @@ if (fCanvas !is null && !fCanvas.isDisposed()) { Display d= fCanvas.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { redraw(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/ChangeRulerColumn.d --- a/dwtx/jface/text/source/ChangeRulerColumn.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/ChangeRulerColumn.d Sun Aug 24 01:52:31 2008 +0200 @@ -270,14 +270,14 @@ fCanvas= new Canvas(parentControl, DWT.NONE); fCanvas.setBackground(getBackground()); - fCanvas.addPaintListener(new PaintListener() { + fCanvas.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent event) { if (fCachedTextViewer !is null) doubleBufferPaint(event.gc); } }); - fCanvas.addDisposeListener(new DisposeListener() { + fCanvas.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleDispose(); fCachedTextViewer= null; @@ -531,7 +531,7 @@ if (fCanvas !is null && !fCanvas.isDisposed()) { Display d= fCanvas.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { redraw(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/CompositeRuler.d --- a/dwtx/jface/text/source/CompositeRuler.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/CompositeRuler.d Sun Aug 24 01:52:31 2008 +0200 @@ -210,7 +210,7 @@ */ public this(Composite parent, int style) { super(parent, style); - fMenuDetectListener= new Listener() { + fMenuDetectListener= new class() Listener { public void handleEvent(Event event) { if (event.type is DWT.MenuDetect) { Menu menu= getMenu(); @@ -221,7 +221,7 @@ } } }; - super.addDisposeListener(new DisposeListener() { + super.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { if (fCachedListeners !is null) { fCachedListeners.clear(); @@ -729,7 +729,7 @@ if (fComposite !is null && !fComposite.isDisposed()) { Display d= fComposite.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { immediateUpdate(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/LineChangeHover.d --- a/dwtx/jface/text/source/LineChangeHover.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/LineChangeHover.d Sun Aug 24 01:52:31 2008 +0200 @@ -386,7 +386,7 @@ * @since 3.2 */ public IInformationControlCreator getInformationPresenterControlCreator() { - return new IInformationControlCreator() { + return new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { return new DefaultInformationControl(parent, cast(ToolBarManager)null, null); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/LineNumberRulerColumn.d --- a/dwtx/jface/text/source/LineNumberRulerColumn.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/LineNumberRulerColumn.d Sun Aug 24 01:52:31 2008 +0200 @@ -381,7 +381,7 @@ Runnable timer= null; switch (direction) { case DWT.UP: - timer= new Runnable() { + timer= new class() Runnable { public void run() { if (fAutoScrollDirection is DWT.UP) { int top= getInclusiveTopIndex(); @@ -395,7 +395,7 @@ }; break; case DWT.DOWN: - timer= new Runnable() { + timer= new class() Runnable { public void run() { if (fAutoScrollDirection is DWT.DOWN) { int top= getInclusiveTopIndex(); @@ -469,7 +469,7 @@ * Redraw runnable * @since 3.0 */ - private Runnable fRunnable= new Runnable() { + private Runnable fRunnable= new class() Runnable { public void run() { synchronized (fRunnableLock) { fIsRunnablePosted= false; @@ -646,7 +646,7 @@ fCachedTextViewer= parentRuler.getTextViewer(); fCachedTextWidget= fCachedTextViewer.getTextWidget(); - fCanvas= new Canvas(parentControl, DWT.NO_FOCUS ) { + fCanvas= new class(parentControl, DWT.NO_FOCUS ) Canvas { /* * @see dwt.widgets.Control#addMouseListener(dwt.events.MouseListener) * @since 3.4 @@ -666,14 +666,14 @@ fCanvas.setBackground(getBackground(fCanvas.getDisplay())); fCanvas.setForeground(fForeground); - fCanvas.addPaintListener(new PaintListener() { + fCanvas.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent event) { if (fCachedTextViewer !is null) doubleBufferPaint(event.gc); } }); - fCanvas.addDisposeListener(new DisposeListener() { + fCanvas.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleDispose(); fCachedTextViewer= null; diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/OverviewRuler.d --- a/dwtx/jface/text/source/OverviewRuler.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/OverviewRuler.d Sun Aug 24 01:52:31 2008 +0200 @@ -443,7 +443,7 @@ * Redraw runnable * @since 3.3 */ - private Runnable fRunnable= new Runnable() { + private Runnable fRunnable= new class() Runnable { public void run() { synchronized (fRunnableLock) { fIsRunnablePosted= false; @@ -538,7 +538,7 @@ fHeader= new Canvas(parent, DWT.NONE); if (fAnnotationAccess instanceof IAnnotationAccessExtension) { - fHeader.addMouseTrackListener(new MouseTrackAdapter() { + fHeader.addMouseTrackListener(new class() MouseTrackAdapter { /* * @see dwt.events.MouseTrackAdapter#mouseHover(dwt.events.MouseEvent) * @since 3.3 @@ -551,27 +551,27 @@ fCanvas= new Canvas(parent, DWT.NO_BACKGROUND); - fCanvas.addPaintListener(new PaintListener() { + fCanvas.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent event) { if (fTextViewer !is null) doubleBufferPaint(event.gc); } }); - fCanvas.addDisposeListener(new DisposeListener() { + fCanvas.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent event) { handleDispose(); fTextViewer= null; } }); - fCanvas.addMouseListener(new MouseAdapter() { + fCanvas.addMouseListener(new class() MouseAdapter { public void mouseDown(MouseEvent event) { handleMouseDown(event); } }); - fCanvas.addMouseMoveListener(new MouseMoveListener() { + fCanvas.addMouseMoveListener(new class() MouseMoveListener { public void mouseMove(MouseEvent event) { handleMouseMove(event); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/SourceViewerConfiguration.d --- a/dwtx/jface/text/source/SourceViewerConfiguration.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/SourceViewerConfiguration.d Sun Aug 24 01:52:31 2008 +0200 @@ -395,7 +395,7 @@ * @since 2.0 */ public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) { - return new IInformationControlCreator() { + return new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { return new DefaultInformationControl(parent); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/VerticalRuler.d --- a/dwtx/jface/text/source/VerticalRuler.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/VerticalRuler.d Sun Aug 24 01:52:31 2008 +0200 @@ -211,21 +211,21 @@ fCanvas= new Canvas(parent, DWT.NO_BACKGROUND); - fCanvas.addPaintListener(new PaintListener() { + fCanvas.addPaintListener(new class() PaintListener { public void paintControl(PaintEvent event) { if (fTextViewer !is null) doubleBufferPaint(event.gc); } }); - fCanvas.addDisposeListener(new DisposeListener() { + fCanvas.addDisposeListener(new class() DisposeListener { public void widgetDisposed(DisposeEvent e) { handleDispose(); fTextViewer= null; } }); - fCanvas.addMouseListener(new MouseListener() { + fCanvas.addMouseListener(new class() MouseListener { public void mouseUp(MouseEvent event) { } @@ -515,7 +515,7 @@ if (fCanvas !is null && !fCanvas.isDisposed()) { Display d= fCanvas.getDisplay(); if (d !is null) { - d.asyncExec(new Runnable() { + d.asyncExec(new class() Runnable { public void run() { redraw(); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/projection/ProjectionAnnotationHover.d --- a/dwtx/jface/text/source/projection/ProjectionAnnotationHover.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/projection/ProjectionAnnotationHover.d Sun Aug 24 01:52:31 2008 +0200 @@ -178,7 +178,7 @@ */ public IInformationControlCreator getHoverControlCreator() { if (fInformationControlCreator is null) { - fInformationControlCreator= new IInformationControlCreator() { + fInformationControlCreator= new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { return new SourceViewerInformationControl(parent, false, JFaceResources.TEXT_FONT, null); } @@ -193,7 +193,7 @@ */ public IInformationControlCreator getInformationPresenterControlCreator() { if (fInformationPresenterControlCreator is null) { - fInformationPresenterControlCreator= new IInformationControlCreator() { + fInformationPresenterControlCreator= new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { return new SourceViewerInformationControl(parent, true, JFaceResources.TEXT_FONT, null); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/projection/ProjectionRulerColumn.d --- a/dwtx/jface/text/source/projection/ProjectionRulerColumn.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/projection/ProjectionRulerColumn.d Sun Aug 24 01:52:31 2008 +0200 @@ -192,7 +192,7 @@ control.setBackground(background); // install hover listener - control.addMouseTrackListener(new MouseTrackAdapter() { + control.addMouseTrackListener(new class() MouseTrackAdapter { public void mouseExit(MouseEvent e) { if (clearCurrentAnnotation()) redraw(); @@ -200,7 +200,7 @@ }); // install mouse move listener - control.addMouseMoveListener(new MouseMoveListener() { + control.addMouseMoveListener(new class() MouseMoveListener { public void mouseMove(MouseEvent e) { bool redraw= false; ProjectionAnnotation annotation= findAnnotation(toDocumentLineNumber(e.y), false); diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/projection/ProjectionViewer.d --- a/dwtx/jface/text/source/projection/ProjectionViewer.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/projection/ProjectionViewer.d Sun Aug 24 01:52:31 2008 +0200 @@ -906,7 +906,7 @@ if (widget !is null) { Display display= widget.getDisplay(); if (display !is null) { - display.asyncExec(new Runnable() { + display.asyncExec(new class() Runnable { public void run() { try { while (true) { diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/source/projection/SourceViewerInformationControl.d --- a/dwtx/jface/text/source/projection/SourceViewerInformationControl.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/source/projection/SourceViewerInformationControl.d Sun Aug 24 01:52:31 2008 +0200 @@ -146,7 +146,7 @@ fTextFont= JFaceResources.getFont(symbolicFontName); fText.setFont(fTextFont); - fText.addKeyListener(new KeyListener() { + fText.addKeyListener(new class() KeyListener { public void keyPressed(KeyEvent e) { if (e.character is 0x1B) // ESC @@ -406,7 +406,7 @@ * @since 3.4 */ public IInformationControlCreator getInformationPresenterControlCreator() { - return new IInformationControlCreator() { + return new class() IInformationControlCreator { public IInformationControl createInformationControl(Shell parent) { return new SourceViewerInformationControl(parent, true, fSymbolicFontName, null); } diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/templates/TemplateProposal.d --- a/dwtx/jface/text/templates/TemplateProposal.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/templates/TemplateProposal.d Sun Aug 24 01:52:31 2008 +0200 @@ -262,7 +262,7 @@ fUpdater= new InclusivePositionUpdater(getCategory()); document.addPositionUpdater(fUpdater); - model.addLinkingListener(new ILinkedModeListener() { + model.addLinkingListener(new class() ILinkedModeListener { /* * @see dwtx.jface.text.link.ILinkedModeListener#left(dwtx.jface.text.link.LinkedModeModel, int) diff -r 51e6e63f930e -r 65801ad2b265 dwtx/jface/text/templates/persistence/TemplateStore.d --- a/dwtx/jface/text/templates/persistence/TemplateStore.d Sun Aug 24 01:46:20 2008 +0200 +++ b/dwtx/jface/text/templates/persistence/TemplateStore.d Sun Aug 24 01:52:31 2008 +0200 @@ -126,7 +126,7 @@ */ public final void startListeningForPreferenceChanges() { if (fPropertyListener is null) { - fPropertyListener= new IPropertyChangeListener() { + fPropertyListener= new class() IPropertyChangeListener { public void propertyChange(PropertyChangeEvent event) { /* * Don't load if we are in the process of saving ourselves. We are in sync anyway after the