// Switch to a wait cursor.
//
Shell widgetShell = widget.getShell();
try {
Cursor waitCursor = display.getSystemCursor(SWT.CURSOR_WAIT);
widgetShell.setCursor(waitCursor);
// Try to find an existing loaded version of the module def.
//
ModuleDef moduleDef = loadModule(moduleName, logger);
assert (moduleDef != null);
// Create a sandbox for the module.
//
File shellDir = new File(outDir, GWT_SHELL_PATH + File.separator
+ moduleName);
TypeOracle typeOracle = moduleDef.getTypeOracle(logger);
ShellModuleSpaceHost host = doCreateShellModuleSpaceHost(logger,
typeOracle, moduleDef, genDir, shellDir);
return host;
} finally {
Cursor normalCursor = display.getSystemCursor(SWT.CURSOR_ARROW);
widgetShell.setCursor(normalCursor);
}
}