diff --git a/org.eclipse.wb.swing/src/swingintegration/example/EmbeddedSwingComposite2.java b/org.eclipse.wb.swing/src/swingintegration/example/EmbeddedSwingComposite2.java index f693404e6..ba64a5e7c 100644 --- a/org.eclipse.wb.swing/src/swingintegration/example/EmbeddedSwingComposite2.java +++ b/org.eclipse.wb.swing/src/swingintegration/example/EmbeddedSwingComposite2.java @@ -2,11 +2,12 @@ * Copyright (c) 2007 SAS Institute. 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: SAS Institute - initial API and implementation *******************************************************************************/ package swingintegration.example; +import org.eclipse.wb.internal.core.EnvironmentUtils; import org.eclipse.wb.internal.swing.utils.SwingImageUtils; import org.eclipse.swt.SWT; @@ -48,7 +49,7 @@ *

* This is an abstract that is normally used by extending it and implementing the * {@link #createSwingComponent()} method. For example, - * + * *

  *        embeddedComposite = new EmbeddedSwingComposite(parent, SWT.NONE) {
  *            protected JComponent createSwingComponent() {
@@ -57,10 +58,10 @@
  *                scrollPane.setViewportView(table);
  *                return scrollPane;
  *            }
- *        }; 
+ *        };
  *        embeddedComposite.populate();
  * 
- * + * *

* The Swing component is created inside a standard Swing containment hierarchy, rooted in a * {@link javax.swing.RootPaneContainer}. The root pane container is placed inside an AWT frame, as @@ -87,7 +88,7 @@ *

  • {@link org.eclipse.swt.widgets.Display#asyncExec(Runnable)} *
  • {@link org.eclipse.swt.widgets.Display#syncExec(Runnable)} * - * + * * Of course, as in single-toolkit environments, long-running tasks should be offloaded from either * UI thread to a background thread. The Eclipse jobs API can be used for this purpose. */ @@ -140,12 +141,12 @@ public void handleEvent(Event event) { *

    * The styles SWT.EMBEDDED and SWT.NO_BACKGROUND will be added to the specified style. Usually, no * other style bits are needed. - * + * * @param parent * a widget which will be the parent of the new instance (cannot be null) * @param style * the style of widget to construct - * + * * @exception IllegalArgumentException *