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 58479

Summary: Warning message dispalyed when form is deleted
Product: editor Reporter: _ lcincura <lcincura>
Component: -- Other --Assignee: issues@editor <issues>
Status: VERIFIED FIXED    
Severity: blocker Keywords: RANDOM
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ lcincura 2005-05-02 09:41:14 UTC
NetBeans IDE 4.1 RC2 [200504291131] on 1dk 1.5.0_03

1, Create any form file
2, Switch to source view
3, Select the file in Projects tab and delete it via its context menu => warning
message is dispalyed: "The document could not be loaded"
Comment 1 Jan Stola 2005-08-25 11:42:32 UTC
Seems to be caused by editor module => reassigning for evaluation.
The message is displayed because CloneableEditorSupport.prepareDocument()
is called on the deleted file. The invocation of this method has
its root in ToolTipSupport:

        at org.openide.text.CloneableEditorSupport.prepareDocument
(CloneableEditorSupport.java:470)
        at org.openide.text.CloneableEditorSupport.openDocumentImpl
(CloneableEditorSupport.java:654)
        at org.openide.text.CloneableEditorSupport.openDocumentCheckIOE
(CloneableEditorSupport.java:636)
        at org.openide.text.CloneableEditorSupport.openDocument
(CloneableEditorSupport.java:631)
        at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:198)
        at org.netbeans.modules.editor.NbToolTip.buildToolTip(NbToolTip.java:71)
        at 
org.netbeans.modules.editor.NbEditorKit$NbBuildToolTipAction.actionPerformed
(NbEditorKit.java:581)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:194)
        at org.netbeans.editor.ext.ToolTipSupport.updateToolTip
(ToolTipSupport.java:387)
        at org.netbeans.editor.ext.ToolTipSupport.setToolTipVisible
(ToolTipSupport.java:414)
        at org.netbeans.editor.ext.ToolTipSupport.actionPerformed
(ToolTipSupport.java:705)
        at org.netbeans.editor.WeakTimerListener.actionPerformed
(WeakTimerListener.java:57)
        at javax.swing.Timer.fireActionPerformed(Timer.java:271)
        at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
Comment 2 Martin Roskanin 2005-10-18 14:55:38 UTC
fixed in [maintrunk]

/cvs/editor/src/org/netbeans/modules/editor/NbToolTip.java,v  <--  NbToolTip.java
new revision: 1.16; previous revision: 1.15
Comment 3 _ lcincura 2005-12-20 13:08:33 UTC
Verified in 200512181900