diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet140.d @ 29:4e5843b771cc

First snippets buildable on windows
author Frank Benoit <benoit@tionex.de>
date Sun, 22 Mar 2009 19:55:00 +0100
parents 69b1fa94a4a8
children 9f4c18c268b2
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet140.d	Sun Mar 22 15:17:04 2009 +0100
+++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet140.d	Sun Mar 22 19:55:00 2009 +0100
@@ -46,9 +46,9 @@
     display = new Display ();
     shell = new Shell (display);
     shell.setLayout(new GridLayout());
-    coolBar = new CoolBar(shell, SWT.FLAT | DWT.BORDER);
+    coolBar = new CoolBar(shell, SWT.FLAT | SWT.BORDER);
     coolBar.setLayoutData(new GridData(GridData.FILL_BOTH));
-    ToolBar toolBar = new ToolBar(coolBar, SWT.FLAT | DWT.WRAP);
+    ToolBar toolBar = new ToolBar(coolBar, SWT.FLAT | SWT.WRAP);
     int minWidth = 0;
     for (int j = 0; j < 5; j++) {
         int width = 0;
@@ -60,7 +60,7 @@
     }
     CoolItem coolItem = new CoolItem(coolBar, SWT.DROP_DOWN);
     coolItem.setControl(toolBar);
-    Point size = toolBar.computeSize(SWT.DEFAULT, DWT.DEFAULT);
+    Point size = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
     Point coolSize = coolItem.computeSize (size.x, size.y);
     coolItem.setMinimumSize(minWidth, coolSize.y);
     coolItem.setPreferredSize(coolSize);