Bug 315281 update copyrights for 3.6
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet035PostSelectionProvider.java
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
/**
 * Simple snippet which tries to illustrate the difference between normal
 * selection events and post selection events. You will see the difference as of
 * when the two types of selection events are fired by changing the selection in
 * the list either with the mouse (both selection events are fired immediately,
 * no difference) or with the keyboard (post selection events are delayed and
 * only fired when you stop navigating with the arrow keys).
 */
public class Snippet035PostSelectionProvider {
	private DataBindingContext dbc;
	private ListViewer listViewer;
	public static void main(String[] args) {
		Display display = new Display();
		Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() {
			public void run() {
				Shell shell = new Snippet035PostSelectionProvider()
						.createShell();
				Display display = Display.getCurrent();
				while (!shell.isDisposed()) {
					if (!display.readAndDispatch()) {
						display.sleep();
					}
				}
			}