Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/LineNumberRulerColumn.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 | b6bad70d540a |
line wrap: on
line diff
--- 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;