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 26427 - Apply Patch acttion does'n refresh opened documents
Summary: Apply Patch acttion does'n refresh opened documents
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-09 16:43 UTC by Martin Schovanek
Modified: 2003-06-30 17:41 UTC (History)
1 user (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 Martin Schovanek 2002-08-09 16:43:57 UTC
Steps to reproduce:
-------------------
1) open XML, Java, ... document in the Source Editor
2) apply some patch on the document

The document's file is changed on the disc but old
version remains in the Source Editor. When you
edit the document and save it, patch's changes are
lost.
Comment 1 Martin Entlicher 2002-08-09 18:23:34 UTC
Scheduling for 4.0.
Please do not use the "current" version, it's a useless information
after some time.
Comment 2 Martin Entlicher 2002-09-12 12:00:10 UTC
Fixed in the main trunk.
It was necessary to properly close the streams after FileUtil.copy()
and also refresh the FileObject after successfull application of the
patch.

/cvs/diff/src/org/netbeans/modules/diff/PatchAction.java,v  <-- 
PatchAction.java
new revision: 1.6; previous revision: 1.5

/cvs/diff/src/org/netbeans/api/diff/StreamSource.java,v  <-- 
StreamSource.java
new revision: 1.3; previous revision: 1.2
Comment 3 Jiri Kovalsky 2002-11-13 16:03:34 UTC
Verified in development build #200211131011 of NetBeans 4.0.
Comment 4 Jaroslav Tulach 2002-12-03 09:54:14 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 5 Martin Entlicher 2002-12-06 13:20:17 UTC
Merged into release341 branch.

/cvs/diff/src/org/netbeans/api/diff/StreamSource.java,v  <-- 
StreamSource.java
new revision: 1.2.38.1; previous revision: 1.2
/cvs/diff/src/org/netbeans/modules/diff/PatchAction.java,v  <-- 
PatchAction.java
new revision: 1.5.28.1; previous revision: 1.5
Comment 6 Quality Engineering 2003-06-30 17:41:23 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.