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

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

Introduction

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

Prototype

public String getModuleName() 

Source Link

Document

Get the module name.

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 ww  . j  a v a 2 s . c  om*/
 * 
 * @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);
}

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

License:Open Source License

/**
 * Unload the specified module./*from w  ww.  j a v  a2  s  . c o m*/
 * 
 * @param moduleSpace
 *            a ModuleSpace instance to unload.
 */
protected void unloadModule(ModuleSpace moduleSpace) {
    String moduleName = moduleSpace.getModuleName();
    moduleSpace.dispose();
    m_logger.log(TreeLogger.SPAM, "Unloading module " + moduleName, null);
}