@@ -0,0 +1,1038 @@
+import org.eclipse.swt.SWT;%0Aimport org.eclipse.swt.layout.GridData;%0Aimport org.eclipse.swt.layout.GridLayout;%0Aimport org.eclipse.swt.widgets.Button;%0Aimport org.eclipse.swt.widgets.Display;%0Aimport org.eclipse.swt.widgets.Shell;%0A%0Apublic class WidgetsButton %7B%0A%0A    public static void main(String %5B%5D args) %7B%0A        Display display = new Display();%0A%0A        // Make the window%0A        Shell shell = new Shell(display);%0A        shell.setLayout(new GridLayout(1, false));%0A%0A        shell.setText(%22Snippet SWT%22);%0A        shell.setMinimumSize(400, 350);%0A        shell.setSize(640, 480);%0A%0A        // Add a widget%0A        Button button = new Button(shell, SWT.NONE);%0A        button.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));%0A        button.setText(%22Hello World%22);%0A        button.pack();%0A%0A        // Render the window%0A        shell.pack();%0A        shell.open();%0A%0A        while(!shell.isDisposed()) %7B%0A            if(!display.readAndDispatch()) %7B%0A                display.sleep();%0A            %7D%0A        %7D%0A%0A        display.dispose();%0A    %7D%0A%7D%0A

Add a snippet.