Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/ComboBoxViewerCellEditor.d @ 72:5df4896124c7
JFace and its examples do compile
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 17:56:17 +0200 |
parents | 4878bef4a38e |
children | 7ffeace6c47f |
line wrap: on
line diff
--- a/dwtx/jface/viewers/ComboBoxViewerCellEditor.d Thu May 22 04:03:58 2008 +0200 +++ b/dwtx/jface/viewers/ComboBoxViewerCellEditor.d Thu May 22 17:56:17 2008 +0200 @@ -15,7 +15,14 @@ module dwtx.jface.viewers.ComboBoxViewerCellEditor; -import java.text.MessageFormat; +import dwtx.jface.viewers.AbstractComboBoxCellEditor; +import dwtx.jface.viewers.ComboViewer; +import dwtx.jface.viewers.IStructuredContentProvider; +import dwtx.jface.viewers.CellEditor; +import dwtx.jface.viewers.IBaseLabelProvider; +import dwtx.jface.viewers.ISelection; +import dwtx.jface.viewers.IStructuredSelection; +import dwtx.jface.viewers.StructuredSelection; import dwt.DWT; import dwt.custom.CCombo; @@ -102,7 +109,7 @@ if (selection.isEmpty()) { selectedValue = null; } else { - selectedValue = ((IStructuredSelection) selection) + selectedValue = (cast(IStructuredSelection) selection) .getFirstElement(); } } @@ -225,7 +232,7 @@ if (selection.isEmpty()) { selectedValue = null; } else { - selectedValue = ((IStructuredSelection) selection) + selectedValue = (cast(IStructuredSelection) selection) .getFirstElement(); } @@ -235,8 +242,9 @@ setValueValid(isValid); if (!isValid) { - MessageFormat.format(getErrorMessage(), - [ selectedValue ]); + //DWT: the result is not used? +// MessageFormat.format(getErrorMessage(), +// [ selectedValue ]); } fireApplyEditorValue();