summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe>2011-01-28 15:34:56 +0000
committerBogdan Gheorghe <gheorghe>2011-01-28 15:34:56 +0000
commitdcc0e2e76a96518f2bd60f127e49f8a4bd5ba452 (patch)
tree55ed9d2a5a54955cf1062b1e154c6b0c654dac30
parent0ad3bcf517ecb7e60b867240a0e4bb5a7a2f15e3 (diff)
downloadeclipse.platform.swt-dcc0e2e76a96518f2bd60f127e49f8a4bd5ba452.tar.gz
eclipse.platform.swt-dcc0e2e76a96518f2bd60f127e49f8a4bd5ba452.tar.xz
eclipse.platform.swt-dcc0e2e76a96518f2bd60f127e49f8a4bd5ba452.zip
Touch + Gesture snippets
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet352.java33
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet353.java33
2 files changed, 66 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet352.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet352.java
new file mode 100644
index 0000000000..e393cfadd5
--- /dev/null
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet352.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2010 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.snippets;
+
+/*
+ * Touch example
+ *
+ * For a list of all SWT example snippets see
+ * http://www.eclipse.org/swt/snippets/
+ *
+ * @since 3.7
+ */
+import org.eclipse.swt.widgets.*;
+
+public class Snippet352 {
+
+ public static void main(String [] args) {
+ Display display = new Display();
+ Shell shell = new Shell(display);
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) display.sleep();
+ }
+ display.dispose();
+ }
+} \ No newline at end of file
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet353.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet353.java
new file mode 100644
index 0000000000..f44d19ee5a
--- /dev/null
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet353.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2010 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.snippets;
+
+/*
+ * Gesture example
+ *
+ * For a list of all SWT example snippets see
+ * http://www.eclipse.org/swt/snippets/
+ *
+ * @since 3.7
+ */
+import org.eclipse.swt.widgets.*;
+
+public class Snippet353 {
+
+ public static void main(String [] args) {
+ Display display = new Display();
+ Shell shell = new Shell(display);
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) display.sleep();
+ }
+ display.dispose();
+ }
+} \ No newline at end of file