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.

Bug 148436 - Add org.netbeans.modules.web.client.tools.impl as friend to org.netbeans.modules.html.editor
Summary: Add org.netbeans.modules.web.client.tools.impl as friend to org.netbeans.modu...
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks: 146531
  Show dependency tree
 
Reported: 2008-09-25 23:47 UTC by Sonali Kochar
Modified: 2009-05-18 10:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sonali Kochar 2008-09-25 23:47:20 UTC
Need to add org.netbeans.modules.web.client.tools.impl as friend to org.netbeans.modules.html.editor so that we can use
the HTMLKit class

The HTTP client-side monitor uses the JEditorPane to display HTTP response body. When the content type is "text/html",
the JEditor used the swing HTMLEditorKit and tries to render the html. We are interested in the source code and not the
rendering. Also, if the html has embedded php or javascript, the JEditorPane shows the response body as empty as its
unable to render. Setting the JEditorPane' editor kit to HTMLKit for content type = "text/html" shows the source code
for html as well as html with embedded stuff.
Comment 1 Marek Fukala 2008-09-26 06:52:49 UTC
You can get the right editor kit instance by 

EditorKit editorKit = MimeLookup.getLookup(mimeType).lookup(EditorKit.class); 

without needing explicit dependency to html editor.