if (currentRuntime != null) {
URL rootURL = currentRuntime.getRootURL();
if (rootURL != null) {
IWebBrowser browser = WGADesignerPlugin.getDefault().createBrowser(BROWSER_ID);
URL url = WGADesignStructureHelper.generateHttpURL(rootURL, contentStore, module);
browser.openURL(url);
}
}
} catch (Exception e) {
WorkbenchUtils.showErrorDialog(WGADesignerPlugin.getDefault(), Display.getCurrent().getActiveShell(), "Unable to open tml module", "Unable to open tml module '" + module.getLocation() + "' in browser.", e);
}