summaryrefslogtreecommitdiffstats
path: root/examples/org.eclipse.swt.snippets/src
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2011-04-28 18:51:59 +0000
committerCarolyn MacLeod <carolyn>2011-04-28 18:51:59 +0000
commitad19e3d04729deda334bc8fadfc8f2681fc820c3 (patch)
tree429a69578cdeced115fcb2366370d499236c9e1a /examples/org.eclipse.swt.snippets/src
parent43c3ac53534e21543d2adf230ed55fbab0a3c1e4 (diff)
downloadeclipse.platform.swt-ad19e3d04729deda334bc8fadfc8f2681fc820c3.tar.gz
eclipse.platform.swt-ad19e3d04729deda334bc8fadfc8f2681fc820c3.tar.xz
eclipse.platform.swt-ad19e3d04729deda334bc8fadfc8f2681fc820c3.zip
class header consistency for 10 most recent snippets:
copyright, package, space, comment, imports, space
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java15
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet346.java11
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java17
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet348.java2
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet349.java1
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet350.java13
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet354.java11
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java2
8 files changed, 22 insertions, 50 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java
index acfee652d2..64481ef682 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java
@@ -10,23 +10,16 @@
*******************************************************************************/
package org.eclipse.swt.snippets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.graphics.Rectangle;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Shell;
-
/*
* Wrappable button snippet: create a wrappable button for each button type.
*
* For a list of all SWT example snippets see
* http://www.eclipse.org/swt/snippets/
*/
+import org.eclipse.swt.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
+
public class Snippet345 {
public static void main (String[] args) {
final Display display = new Display ();
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet346.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet346.java
index cfe8b5c72a..95b0b2497b 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet346.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet346.java
@@ -1,4 +1,3 @@
-//
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
@@ -11,18 +10,16 @@
*******************************************************************************/
package org.eclipse.swt.snippets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-
/*
* Text snippet: set text in a secure manner.
*
* For a list of all SWT example snippets see
* http://www.eclipse.org/swt/snippets/
*/
+import org.eclipse.swt.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
+
public class Snippet346 {
public static void main(String[] args) {
Display display = new Display();
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java
index 1ea7a293a0..9d1857bcdf 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet347.java
@@ -1,4 +1,3 @@
-//
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
@@ -9,26 +8,18 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-
-
package org.eclipse.swt.snippets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.swt.widgets.Shell;
-
/*
* Display snippet: use the AppMenuBar when available.
*
* For a list of all SWT example snippets see
* http://www.eclipse.org/swt/snippets/
*/
+import org.eclipse.swt.*;
+import org.eclipse.swt.events.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
public class Snippet347 {
public static void main(String[] args) {
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet348.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet348.java
index 04d755ab8f..cbcc3d0b0c 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet348.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet348.java
@@ -17,12 +17,10 @@ package org.eclipse.swt.snippets;
* For a list of all SWT example snippets see
* http://www.eclipse.org/swt/snippets/
*/
-
import org.eclipse.swt.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.widgets.*;
-
public class Snippet348 {
static boolean createdScreenBar = false;
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet349.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet349.java
index f0e1c92539..958d4c09ae 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet349.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet349.java
@@ -21,7 +21,6 @@ package org.eclipse.swt.snippets;
*
* @since 3.2
*/
-
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.layout.*;
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet350.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet350.java
index 741b64bac2..d239b14651 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet350.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet350.java
@@ -1,4 +1,3 @@
-package org.eclipse.swt.snippets;
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
@@ -9,12 +8,7 @@ package org.eclipse.swt.snippets;
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-//package org.eclipse.swt.snippets;
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.accessibility.*;
+package org.eclipse.swt.snippets;
/*
* Accessibility example snippet: use accessible relations to provide
@@ -25,6 +19,11 @@ import org.eclipse.swt.accessibility.*;
*
* @since 3.6
*/
+import org.eclipse.swt.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.accessibility.*;
+
public class Snippet350 {
public static void main(String[] args) {
Display display = new Display();
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet354.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet354.java
index 4bd7a9d4bf..33b35fcc5c 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet354.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet354.java
@@ -8,21 +8,18 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-
-
package org.eclipse.swt.snippets;
-import org.eclipse.swt.*;
-import org.eclipse.swt.events.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.widgets.*;
-
/*
* Display snippet: use the application system menu when available.
*
* For a list of all SWT example snippets see
* http://www.eclipse.org/swt/snippets/
*/
+import org.eclipse.swt.*;
+import org.eclipse.swt.events.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
public class Snippet354 {
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java
index af32e721cd..cc22ffed3b 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java
@@ -8,8 +8,6 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-
-
package org.eclipse.swt.snippets;
/*