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 - Document property Document.TitleProperty not updated when DO is renamed/moved
Summary: Document property Document.TitleProperty not updated when DO is renamed/moved
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 13:49 UTC by mslama
Modified: 2009-02-19 22:53 UTC (History)
2 users (show)

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 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.