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 199990 - DataObject.setModified(false) doesn't reset modified status of file opened in editor
Summary: DataObject.setModified(false) doesn't reset modified status of file opened in...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2011-07-08 14:16 UTC by Jiri Skrivanek
Modified: 2011-08-02 11:29 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 Jiri Skrivanek 2011-07-08 14:16:52 UTC
Calling of Data.setModified(false) from tests doesn't reset state of file opened in editor. Probably it stopped to work with usage of multiview editor for all files. To reproduce:

- open main/jellytools project
- open org.netbeans.jellytools.EditorOperatorTest.java
- run the test (Ctrl+F6)
- the last test case testCloseDiscard should pass. It calls TopComponentOperator.setUnmodified(false) which uses Data.setModified(false). Then when editor tab is closed, it should not ask whether you want to save or discard changes. Previous test cases may fail because of bug 199872.

Product Version: NetBeans Platform Dev (Build 20110707-6f8222a1862b)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US
Comment 1 Jaroslav Tulach 2011-07-11 16:49:22 UTC
ergonomics#3a05fe400690
Comment 2 Quality Engineering 2011-07-12 14:17:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3a05fe400690
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #199990: DataObject.setModified(false) discards the Savable cookie, in case of default data editor support
Comment 3 Jiri Skrivanek 2011-08-02 11:29:48 UTC
Verified in build 201107310600.