comparison dwtx/jface/text/source/projection/ProjectionRulerColumn.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
comparison
equal deleted inserted replaced
134:51e6e63f930e 135:65801ad2b265
190 Display display= parentControl.getDisplay(); 190 Display display= parentControl.getDisplay();
191 Color background= display.getSystemColor(DWT.COLOR_LIST_BACKGROUND); 191 Color background= display.getSystemColor(DWT.COLOR_LIST_BACKGROUND);
192 control.setBackground(background); 192 control.setBackground(background);
193 193
194 // install hover listener 194 // install hover listener
195 control.addMouseTrackListener(new MouseTrackAdapter() { 195 control.addMouseTrackListener(new class() MouseTrackAdapter {
196 public void mouseExit(MouseEvent e) { 196 public void mouseExit(MouseEvent e) {
197 if (clearCurrentAnnotation()) 197 if (clearCurrentAnnotation())
198 redraw(); 198 redraw();
199 } 199 }
200 }); 200 });
201 201
202 // install mouse move listener 202 // install mouse move listener
203 control.addMouseMoveListener(new MouseMoveListener() { 203 control.addMouseMoveListener(new class() MouseMoveListener {
204 public void mouseMove(MouseEvent e) { 204 public void mouseMove(MouseEvent e) {
205 bool redraw= false; 205 bool redraw= false;
206 ProjectionAnnotation annotation= findAnnotation(toDocumentLineNumber(e.y), false); 206 ProjectionAnnotation annotation= findAnnotation(toDocumentLineNumber(e.y), false);
207 if (annotation !is fCurrentAnnotation) { 207 if (annotation !is fCurrentAnnotation) {
208 if (fCurrentAnnotation !is null) { 208 if (fCurrentAnnotation !is null) {