diff dwtx/jface/viewers/CellEditor.d @ 69:07b9d96fd764

Make nested class CellEditor.LayoutData a top level class to omit compiler errors "forward reference"
author Frank Benoit <benoit@tionex.de>
date Mon, 19 May 2008 13:41:06 +0200
parents 644f1334b451
children 46a6e0e6ccd4
line wrap: on
line diff
--- a/dwtx/jface/viewers/CellEditor.d	Fri May 16 23:44:34 2008 +0200
+++ b/dwtx/jface/viewers/CellEditor.d	Mon May 19 13:41:06 2008 +0200
@@ -29,6 +29,26 @@
 
 import dwt.dwthelper.utils;
 
+    /**
+     * Struct-like layout data for cell editors, with reasonable defaults
+     * for all fields.
+     */
+    public static class LayoutData {
+        /**
+         * Horizontal alignment; <code>DWT.LEFT</code> by default.
+         */
+        public int horizontalAlignment = DWT.LEFT;
+
+        /**
+         * Indicates control grabs additional space; <code>true</code> by default.
+         */
+        public bool grabHorizontal = true;
+
+        /**
+         * Minimum width in pixels; <code>50</code> pixels by default.
+         */
+        public int minimumWidth = 50;
+    }
 /**
  * Abstract base class for cell editors. Implements property change listener handling,
  * and DWT window management.
@@ -94,27 +114,7 @@
      */
     private int style = defaultStyle;
 
-    /**
-     * Struct-like layout data for cell editors, with reasonable defaults
-     * for all fields.
-     */
-    public static class LayoutData {
-        /**
-         * Horizontal alignment; <code>DWT.LEFT</code> by default.
-         */
-        public int horizontalAlignment = DWT.LEFT;
-
-        /**
-         * Indicates control grabs additional space; <code>true</code> by default.
-         */
-        public bool grabHorizontal = true;
-
-        /**
-         * Minimum width in pixels; <code>50</code> pixels by default.
-         */
-        public int minimumWidth = 50;
-    }
-
+    //public alias dwtx.jface.viewers.CellEditor.LayoutData LayoutData;
     /**
      * Property name for the copy action
      */