diff dwtx/jface/viewers/AbstractComboBoxCellEditor.d @ 71:4878bef4a38e

Some fixing
author Frank Benoit <benoit@tionex.de>
date Thu, 22 May 2008 04:03:58 +0200
parents 46a6e0e6ccd4
children 5df4896124c7
line wrap: on
line diff
--- a/dwtx/jface/viewers/AbstractComboBoxCellEditor.d	Thu May 22 01:36:46 2008 +0200
+++ b/dwtx/jface/viewers/AbstractComboBoxCellEditor.d	Thu May 22 04:03:58 2008 +0200
@@ -17,34 +17,37 @@
 import dwt.custom.CCombo;
 import dwt.widgets.Composite;
 
+import dwt.dwthelper.Runnable;
+import dwt.dwthelper.utils;
+
 /**
  * Abstract base class for Cell-Editors presented as combo boxes
  *
  * @since 3.4
  *
  */
-abstract class AbstractComboBoxCellEditor extends CellEditor {
+abstract class AbstractComboBoxCellEditor : CellEditor {
     /**
      * The list is dropped down when the activation is done through the mouse
      */
-    public static final int DROP_DOWN_ON_MOUSE_ACTIVATION = 1;
+    public static const int DROP_DOWN_ON_MOUSE_ACTIVATION = 1;
 
     /**
      * The list is dropped down when the activation is done through the keyboard
      */
-    public static final int DROP_DOWN_ON_KEY_ACTIVATION = 1 << 1;
+    public static const int DROP_DOWN_ON_KEY_ACTIVATION = 1 << 1;
 
     /**
      * The list is dropped down when the activation is done without
      * ui-interaction
      */
-    public static final int DROP_DOWN_ON_PROGRAMMATIC_ACTIVATION = 1 << 2;
+    public static const int DROP_DOWN_ON_PROGRAMMATIC_ACTIVATION = 1 << 2;
 
     /**
      * The list is dropped down when the activation is done by traversing from
      * cell to cell
      */
-    public static final int DROP_DOWN_ON_TRAVERSE_ACTIVATION = 1 << 3;
+    public static const int DROP_DOWN_ON_TRAVERSE_ACTIVATION = 1 << 3;
 
     private int activationStyle = DWT.NONE;
 
@@ -56,7 +59,7 @@
      * @param style
      *            the style used to create the combo
      */
-    AbstractComboBoxCellEditor(Composite parent, int style) {
+    this(Composite parent, int style) {
         super(parent, style);
     }
 
@@ -65,7 +68,7 @@
      * Initially, the cell editor has no cell validator.
      *
      */
-    AbstractComboBoxCellEditor() {
+    this() {
     }
 
     /*
@@ -92,7 +95,7 @@
             }
 
             if (dropDown) {
-                getControl().getDisplay().asyncExec(new Runnable() {
+                getControl().getDisplay().asyncExec(new class Runnable {
 
                     public void run() {
                         ((CCombo) getControl()).setListVisible(true);