Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/AnnotationRulerColumn.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/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(); }