From b4ab0712b5c3b47e9b394169d523d13c0612a44a Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Wed, 7 Nov 2012 09:44:36 -0500 Subject: revert bad changes in Snippet1 --- .../src/org/eclipse/swt/snippets/Snippet1.java | 55 ---------------------- 1 file changed, 55 deletions(-) diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java index ac58a725c2..7ba0b1ce28 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java @@ -10,9 +10,6 @@ *******************************************************************************/ package org.eclipse.swt.snippets; -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.*; -import org.eclipse.swt.layout.*; /* * example snippet: Hello World * @@ -26,58 +23,6 @@ public class Snippet1 { public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell(display); - -//// Cursor cursor = display.getSystemCursor(SWT.CURSOR_APPSTARTING); -//// ImageData s = new ImageData(32, 32, 1, new PaletteData(new RGB[]{new RGB(0, 0, 0), new RGB(255, 255, 255)})); -//// ImageData m = new ImageData(32, 32, 1, new PaletteData(new RGB[]{new RGB(0, 0, 0), new RGB(255, 255, 255)})); -//// for (int i=0; iSilenio now"); -// link.setSize(300, 30); - - shell.setLayout(new GridLayout(1, false)); - -// Button b = new Button(shell, SWT.PUSH); -// b.setText("Button"); -// Text text = new Text(shell, SWT.SINGLE | SWT.BORDER); -// text.setMessage("Hello wolrd"); - - shell.setBackgroundImage(new Image(display, "/home/test/icons/oil-logo-v1.0.png")); - shell.setBackgroundMode(SWT.INHERIT_FORCE); - - Table table = new Table(shell, SWT.MULTI); - for (int i=0; i<4; i++) { - - } - table.addListener(SWT.Paint, new Listener() { - public void handleEvent(Event event) { - event.gc.drawLine(0, 0, 100, 100); - } - }); - - shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); -- cgit