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 16427 - deinstallation of BaseKit is not propagated to JEditorPane
Summary: deinstallation of BaseKit is not propagated to JEditorPane
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 14:19 UTC by David Konecny
Modified: 2007-11-05 13:44 UTC (History)
0 users

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 David Konecny 2001-10-10 14:19:51 UTC
Try to open the document -> BaseKit.install() is called
Close the document -> BaseKit.deinstall is called, but JEditorPane.setUI(null) is not done,
what causes that most of the UI is not uninstalled. This problem was discovered, because
the editor's document is still referenced after closing and so was not garbage collected.
The incorrect deinstallation caused that EditorUI.uninstallUI() did not fire COMPONENT_PROPERTY
on which a lot of classes listen.
Comment 1 David Konecny 2001-10-10 14:26:40 UTC
The problem with incorrect deinstallation was fixed what now may have 
impact on other editors based on editor core module. I tested as many 
of them as possible (jsp, html, java, txt, cpp, fotran, makefile) and 
everything seems to be OK. Please reopen if you find some problem. It 
make case some NPE, because deinstallation is now handled better than 
before.

Fixed in files:
Checking in libsrc/org/netbeans/editor/BaseKit.java;
new revision: 1.77; previous revision: 1.76
Checking in libsrc/org/netbeans/editor/BaseTextUI.java;
new revision: 1.51; previous revision: 1.50
Checking in libsrc/org/netbeans/editor/ext/ToolTipSupport.java;
new revision: 1.8; previous revision: 1.7
Comment 2 David Konecny 2001-10-10 14:30:33 UTC
btw. the issue for 'referencing of document' is issue 16072
Comment 3 Quality Engineering 2003-06-30 18:03:11 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-06-30 18:13:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.