Mercurial > projects > dwt2
diff org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ButtonObservableValue.d @ 85:6be48cf9f95c
Work on databinding
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 18 Apr 2009 13:54:50 +0200 |
parents | 0a55d2d5a946 |
children |
line wrap: on
line diff
--- a/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ButtonObservableValue.d Sat Apr 18 09:25:29 2009 +0200 +++ b/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ButtonObservableValue.d Sat Apr 18 13:54:50 2009 +0200 @@ -32,7 +32,8 @@ private bool selectionValue; - private Listener updateListener = new class() Listener { + private Listener updateListener; + class UpdateListener : Listener { public void handleEvent(Event event) { bool oldSelectionValue = selectionValue; selectionValue = button.getSelection(); @@ -61,6 +62,7 @@ } private void init() { +updateListener = new UpdateListener(); button.addListener(SWT.Selection, updateListener); button.addListener(SWT.DefaultSelection, updateListener); }