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 154095

Summary: Document property Document.TitleProperty not updated when DO is renamed/moved
Product: platform Reporter: mslama <mslama>
Component: Data SystemsAssignee: mslama <mslama>
Status: RESOLVED FIXED    
Severity: blocker CC: jskrivanek, jtulach
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description mslama 2008-11-28 13:49:45 UTC
Document property is used by CES in error messages to show file name. So it result in incorrect message in dialogs eg.
when document is changed externally and user want to save document modified in editor.
Comment 1 mslama 2008-11-28 13:53:00 UTC
core-main #d7a3a55ba8db
Comment 2 mslama 2008-12-01 16:13:43 UTC
core-main #a3a798829a7e

New fix EditorCookie ec = getDataObject().getCookie(EditorCookie.class); cannot be called from changeFile because some
people call changeFile from environment constructor like
org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$XmlEnv.<init>(XmlMultiViewEditorSupport.java:509)

Now getCookie is called from file event handlers directly (fileDeleted and fileRenamed.
Comment 3 Quality Engineering 2008-12-02 05:57:48 UTC
Integrated into 'main-golden', will be available in build *200812020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d7a3a55ba8db
User: Marek Slama <mslama@netbeans.org>
Log: #154095: Update document property Document.TitleProperty when dataobject is renamed/moved.