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 86879 - Error dialog on File Rename refactoring when schema is dirty
Summary: Error dialog on File Rename refactoring when schema is dirty
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 17:44 UTC by Nam Nguyen
Modified: 2006-10-23 19:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fix (2.41 KB, patch)
2006-10-10 18:12 UTC, Nam Nguyen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2006-10-10 17:44:44 UTC
- Create sample PO schema
- Make some change in the schema view or source view and do not save.
- In the project explorer do file rename or refactor file rename.
Will see a error or information dialog during execution of the file rename
refactoring.
Comment 1 Nam Nguyen 2006-10-10 17:46:54 UTC
The cause is file is lock when editor buffer is dirty.

The fix is to do a save of the target data object before do file rename.

Comment 2 Nam Nguyen 2006-10-10 18:07:45 UTC
Fix checked in release55_dev.


/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/spi/Attic/SharedUtils.java,v
 <--  SharedUtils.java
new revision: 1.1.2.7.2.2; previous revision: 1.1.2.7.2.1
/cvs/xml/refactoring/src/org/netbeans/modules/xml/refactoring/impl/Attic/RefactoringUtil.java,v
 <--  RefactoringUtil.java
new revision: 1.1.2.13.2.3; previous revision: 1.1.2.13.2.2
/cvs/xml/schema/core/test/unit/src/org/netbeans/modules/xml/schema/core/Attic/SchemaRefactoringTest.java,v
 <--  SchemaRefactoringTest.java
new revision: 1.1.2.15.2.5; previous revision: 1.1.2.15.2.4
Comment 3 Nam Nguyen 2006-10-10 18:12:17 UTC
Created attachment 35088 [details]
fix
Comment 4 Nam Nguyen 2006-10-10 22:57:47 UTC
Fix committed to release55.
Comment 5 htt 2006-10-23 19:20:32 UTC
Verified in RC4 (061020).