package org.eclipse.swt.examples.controlexample;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

import com.google.gwt.core.client.EntryPoint;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Main implements EntryPoint {

  	/**
  	 * This is GWT's entry point method.
  	 */
	public void onModuleLoad () {
		String[] args = null;
		_onModuleLoad(args);
	}

	/**
  	 * This is the call of the SWT's main method.
  	 */
	native void _onModuleLoad (String[] args) /*-{	
		$wnd.dojo.addOnLoad(function(){			
			@org.eclipse.swt.examples.controlexample.ControlExample::main([Ljava/lang/String;)(args);
		})
	}-*/;
}