This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Eliminate manditory dependency on HttpServer$Impl | ||
---|---|---|---|
Product: | xml | Reporter: | _ briansmith <briansmith> |
Component: | XSL | Assignee: | issues@xml <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 28009 |
Description
_ briansmith
2002-09-27 20:07:07 UTC
What about following implementation: private static boolean isServletEngineProvided() { Collection instances = Lookup.lookup( new Lookup.Template(ModuleInfo.class)).allInstances(); Iterator it = instances.iterator(); ModuleInfo next; while (it.hasNext()) { next = it.next(); String provides[] = next.getProvides(); for (int i = 0; i<provides.length; i++) { if ("org.openide.util.HttpServer$Impl".equals(provides[i])) { return true; } } } return false; } then you can construct UI dynamically (removing preview option if necessary). Petr, that kind of change seems only helpful if the intention is to disable the preview feature when no HTTP server is found. But, without the preview feature the XSL module is much less useful (since the user has to use another tool to do the preview). I can look into re-implementing the preview feature to generate a temporary file and sending file:// URLs to the web browser. |