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 226201 - Incorrect rendering of any HTML content when SwingboxJavahelpViewer plugin is installed
Summary: Incorrect rendering of any HTML content when SwingboxJavahelpViewer plugin is...
Status: CLOSED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: František Mantlík
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 20:07 UTC by ent38
Modified: 2013-03-02 17:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A view of the Plugins Manager (81.76 KB, image/png)
2013-02-15 20:10 UTC, ent38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2013-02-15 20:07:20 UTC
Significantly changing the UI of some NB dialogs

http://plugins.netbeans.org/plugin/45693
Comment 1 ent38 2013-02-15 20:10:17 UTC
Created attachment 131436 [details]
A view of the Plugins Manager
Comment 2 ent38 2013-02-15 20:10:40 UTC
Some NetBeans dialogs are unusable.

Since it is designed to be embedded with RCP applications : maybe you could distribute it has a simple library, and do not affect the NetBeans IDE ?

Thx.
Comment 3 ent38 2013-02-15 20:12:52 UTC
Significantly changing the UI of some NB dialogs
Comment 4 František Mantlík 2013-02-15 20:58:23 UTC
Any idea where could the source of the problem come from?
Comment 5 ent38 2013-02-16 18:24:24 UTC
The affected dialogs seems to use HTML texts.
Does your plugin affects the rendering of every HTML content (in JLabel objects, etc.) ?
Comment 6 František Mantlík 2013-02-16 19:09:45 UTC
The plugin modifies help content viewer with the use of JHelp's getContentViewer().setUI(new SwingboxContentViewerUI()).

It seems to me, that JHelpContentViewer.setUI() affects not only Javahelp viewer, but all components rendering HTML content.
Comment 7 František Mantlík 2013-03-02 17:02:57 UTC
Problem detected in BrowserPane. The registerEditorKit method registered SwingBoxEditorKit for each type handled by BrowserPane. This is incorrect because other JEditorPane components should use default editor kit for HTML content handling.

Solution: Instead of registering SwingBoxEditorKit, getEditorKitForContentType method is overridden serving custom SwingBoxEditorKit for supported MIME types. This way, no other components are influenced by the custom editor kit.

Fixed upstream http://code.google.com/p/swingbox-javahelp-viewer/issues/detail?id=7.

Reported to CSSBox development team: http://sourceforge.net/p/cssbox/bugs/13/

New binary will be uploaded to Plugin Portal for verification.
Comment 8 ent38 2013-03-02 17:50:42 UTC
New version works fine. Thx!