comparison org.eclipse.draw2d/src/org/eclipse/draw2d/FigureCanvas.d @ 16:dbfb303e8fb0

first complete successful compile (win-only)
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Mar 2009 08:56:47 +0100
parents bc29606a740c
children
comparison
equal deleted inserted replaced
15:c4b1a29263fc 16:dbfb303e8fb0
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module org.eclipse.draw2d.FigureCanvas; 13 module org.eclipse.draw2d.FigureCanvas;
14 14
15 import java.lang.all; 15 import java.lang.all;
16 import org.eclipse.dwtxhelper.Bean; 16 import java.util.Collection;
17 import java.util.Map;
18 import java.beans.PropertyChangeListener;
19 import java.beans.PropertyChangeEvent;
17 20
18 import org.eclipse.swt.SWT; 21 import org.eclipse.swt.SWT;
19 import org.eclipse.swt.events.SelectionAdapter; 22 import org.eclipse.swt.events.SelectionAdapter;
20 import org.eclipse.swt.events.SelectionEvent; 23 import org.eclipse.swt.events.SelectionEvent;
21 import org.eclipse.swt.graphics.Font; 24 import org.eclipse.swt.graphics.Font;
266 /** 269 /**
267 * Adds listeners for scrolling. 270 * Adds listeners for scrolling.
268 */ 271 */
269 private void hook() { 272 private void hook() {
270 getLightweightSystem().getUpdateManager().addUpdateListener(new class() UpdateListener { 273 getLightweightSystem().getUpdateManager().addUpdateListener(new class() UpdateListener {
271 public void notifyPainting(Rectangle damage, org.eclipse.dwtxhelper.Collection.Map dirtyRegions) { } 274 public void notifyPainting(Rectangle damage, java.util.Map.Map dirtyRegions) { }
272 public void notifyValidating() { 275 public void notifyValidating() {
273 if (!isDisposed()) 276 if (!isDisposed())
274 layoutViewport(); 277 layoutViewport();
275 } 278 }
276 }); 279 });