Example usage for com.google.gwt.dev.shell ModuleSpace onLoad

List of usage examples for com.google.gwt.dev.shell ModuleSpace onLoad

Introduction

In this page you can find the example usage for com.google.gwt.dev.shell ModuleSpace onLoad.

Prototype

public final void onLoad(TreeLogger logger) throws UnableToCompleteException 

Source Link

Document

Runs the module's user startup code.

Usage

From source file:com.google.gdt.eclipse.designer.hosted.tdz.BrowserShell.java

License:Open Source License

/**
 * Initializes and attaches module space to this browser widget. Called by subclasses in response to calls
 * from JavaScript.//from w  w w  . ja  va  2  s .c o m
 * 
 * @param space
 *            ModuleSpace instance to initialize
 */
protected final void attachModuleSpace(ModuleSpace space) throws UnableToCompleteException {
    space.setDevClassLoader(m_host.getDevClassLoader());
    loadedModules.put(null, space);
    m_logger.log(TreeLogger.SPAM, "Loading module " + space.getModuleName(), null);
    // Let the space do its thing.
    //
    space.onLoad(m_logger);
}