diff options
author | Leo Ufimtsev | 2016-12-06 18:49:26 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-12-09 12:43:46 +0000 |
commit | b8cd88227f46b8bb52f00a7a0fa0240fe0edecd0 (patch) | |
tree | b25c8de76374be71d11e8f9368b34ef70649dd4c /examples | |
parent | c522b03e3a4f934d453256d7bba55fbc4c375f6d (diff) | |
download | eclipse.platform.swt-b8cd88227f46b8bb52f00a7a0fa0240fe0edecd0.tar.gz eclipse.platform.swt-b8cd88227f46b8bb52f00a7a0fa0240fe0edecd0.tar.xz eclipse.platform.swt-b8cd88227f46b8bb52f00a7a0fa0240fe0edecd0.zip |
Bug 508768 - Remove pocketPC snippets
Remove unused snippets
Change-Id: I245661fe61fe889b3a2f1bfbd438c19f1fa12ae7
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Diffstat (limited to 'examples')
3 files changed, 0 insertions, 133 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet85.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet85.java deleted file mode 100644 index 142256d636..0000000000 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet85.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2005 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; - -/* - * PocketPC example snippet: Hello World - * - * For a list of all SWT example snippets see - * http://www.eclipse.org/swt/snippets/ - */ -import org.eclipse.swt.*; -import org.eclipse.swt.widgets.*; - -public class Snippet85 { - -public static void main(String[] args) { - Display display = new Display(); - - /* - * Create a Shell with the default style - * i.e. full screen, no decoration on PocketPC. - */ - Shell shell = new Shell(display); - - /* - * Set a text so that the top level Shell - * also appears in the PocketPC task list - */ - shell.setText("Main"); - - /* - * Set a menubar to follow UI guidelines - * on PocketPC - */ - Menu mb = new Menu(shell, SWT.BAR); - shell.setMenuBar(mb); - - shell.open(); - while (!shell.isDisposed()) { - if (!display.readAndDispatch()) - display.sleep(); - } - display.dispose(); -} -} diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet86.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet86.java deleted file mode 100644 index 6669e9b81f..0000000000 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet86.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2005 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; - -/* - * PocketPC Shell example snippet: 'Ok' button - * - * For a list of all SWT example snippets see - * http://www.eclipse.org/swt/snippets/ - */ -import org.eclipse.swt.*; -import org.eclipse.swt.widgets.*; - -public class Snippet86 { - -public static void main(String[] args) { - Display display = new Display(); - Shell shell = new Shell(display, SWT.CLOSE); - shell.setText("Main"); - Menu mb = new Menu(shell, SWT.BAR); - shell.setMenuBar(mb); - shell.open(); - while (!shell.isDisposed()) { - if (!display.readAndDispatch()) - display.sleep(); - } - display.dispose(); -} -} diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet87.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet87.java deleted file mode 100644 index 41529265c8..0000000000 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet87.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2005 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; - -/* - * PocketPC Shell example snippet: resize automatically as SIP is on or off - * - * For a list of all SWT example snippets see - * http://www.eclipse.org/swt/snippets/ - */ -import org.eclipse.swt.*; -import org.eclipse.swt.widgets.*; -import org.eclipse.swt.layout.*; - -public class Snippet87 { - -public static void main(String[] args) { - Display display = new Display(); - Shell shell = new Shell(display, SWT.RESIZE); - shell.setText("Main"); - Menu mb = new Menu(shell, SWT.BAR); - shell.setMenuBar(mb); - /* Add a button to make the resize more visual */ - FillLayout layout = new FillLayout(); - shell.setLayout(layout); - Button button = new Button(shell, SWT.PUSH); - button.setText("Main"); - shell.open(); - while (!shell.isDisposed()) { - if (!display.readAndDispatch()) - display.sleep(); - } - display.dispose(); -} -} |