diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.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/Snippet212.d	Sun Mar 22 15:17:04 2009 +0100
+++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.d	Sun Mar 22 19:55:00 2009 +0100
@@ -92,8 +92,8 @@
     Display display = new Display();
     Shell shell = new Shell(display);
     shell.setLayout(new GridLayout());
-    styledText = new StyledText(shell, SWT.WRAP | DWT.BORDER);
-    styledText.setLayoutData(new GridData(SWT.FILL, DWT.FILL, true, true));
+    styledText = new StyledText(shell, SWT.WRAP | SWT.BORDER);
+    styledText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
     styledText.setText(text);
     images = [
         display.getSystemImage(SWT.ICON_QUESTION),
@@ -154,7 +154,7 @@
     
     Button button = new Button (shell, SWT.PUSH);
     button.setText("Add Image");
-    button.setLayoutData(new GridData(SWT.CENTER, DWT.CENTER, false, false));
+    button.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));
     
     void onSelection(Event e) {
        FileDialog dialog = new FileDialog(shell);