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: | [41cat] Problem then try to close a tab | ||
---|---|---|---|
Product: | guibuilder | Reporter: | emargineanu <emargineanu> |
Component: | Code | Assignee: | Jan Stola <jstola> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | issues, mkleint |
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Uninstallation of JTextComponent before window is really closed |
Description
emargineanu
2005-03-03 08:47:02 UTC
I was able to reproduce. This does not qualify as P1 so lowering to P2 but it's ugly and must definitely be fixed in 4.1. It is caused by uninstalling JTextComponent from EditorUI. For stacktrace, look at the attachement. It is probably problem of MultiView or Form editor (or openide's editor) . Reassigning to MultiView for further evaluation. Created attachment 20739 [details]
Uninstallation of JTextComponent before window is really closed
the problem results from fix of issue #52286 FormEditorSupport.JavaEditorTopComponent.canCloseElement() calls CloneableEditor.canClose(), which will post a tast to remove the editorKit and document. However the overall CloseOperationHandler for form editor later shows a dialog asking user to confirm closing. If user cancels, the scheduled task is done anyway. I guess the canClose() should not be called from where it's called now, but from a place where it can react on user's cancel action. "Fixed" - CloneableEditor.canClose() is called from JavaEditorTopComponent.componentClosed(). It would be better to call it from CloseHandler.resolveCloseOperation(), but we don't have a reference to JavaEditorTopComponent there. Verified |