package com.mars.helios.heliosweb.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.mars.helios.heliosweb.client.screen.debug.CubeGridDisplay;
import com.smartgwt.client.widgets.Canvas;
import java.util.logging.Logger;

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

    private Logger logger = Logger.getLogger(HeliosWeb.class.getName());
    private final HeliosGinjector injector = GWT.create(HeliosGinjector.class);

    /**
     * This is the entry point method.
     */
    @Override
    public void onModuleLoad() {
     //   GWT.setUncaughtExceptionHandler(new HeliosUncaughtExceptionHandler());
        logger.fine("Starting application");
        Canvas canvasMain = (new CubeGridDisplay()).buildForm();
                
              //  = injector.getRootCanvas();
        logger.fine("Displaying canvas " + canvasMain);
        canvasMain.draw();
    }
}
