Java Code Examples for org.eclipse.swt.widgets.Display.addListener()

The following are Jave code examples for showing how to use addListener() of the org.eclipse.swt.widgets.Display class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: RxSWT   File:   View Source Code Vote up 5 votes
public static Observable<Event> displayListener(Display display, int eventType) {
	checkNotNull(display, "display == null");
	return new DisplayObservable(display, eventType) {

		protected void addlistener(Listener listener) {
			display.addListener(eventType, listener);