Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.d @ 86:12b890a6392a
Work on databinding
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 18 Apr 2009 13:58:35 +0200 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
85:6be48cf9f95c | 86:12b890a6392a |
---|---|
646 // increment the number of columns in the button bar | 646 // increment the number of columns in the button bar |
647 (cast(GridLayout) parent.getLayout()).numColumns++; | 647 (cast(GridLayout) parent.getLayout()).numColumns++; |
648 Button button = new Button(parent, SWT.PUSH); | 648 Button button = new Button(parent, SWT.PUSH); |
649 button.setText(label); | 649 button.setText(label); |
650 button.setFont(JFaceResources.getDialogFont()); | 650 button.setFont(JFaceResources.getDialogFont()); |
651 button.setData(new ValueWrapperInt(id)); | 651 button.setData(new Integer(id)); |
652 button.addSelectionListener(new class SelectionAdapter { | 652 button.addSelectionListener(new class SelectionAdapter { |
653 public void widgetSelected(SelectionEvent event) { | 653 public void widgetSelected(SelectionEvent event) { |
654 buttonPressed((cast(ValueWrapperInt) event.widget.getData()).value); | 654 buttonPressed((cast(Integer) event.widget.getData()).intValue()); |
655 } | 655 } |
656 }); | 656 }); |
657 if (defaultButton) { | 657 if (defaultButton) { |
658 Shell shell = parent.getShell(); | 658 Shell shell = parent.getShell(); |
659 if (shell !is null) { | 659 if (shell !is null) { |