summaryrefslogtreecommitdiffstats
path: root/scripting/java/org/openoffice/netbeans/modules/office/wizard
diff options
context:
space:
mode:
authorTomas O'Connor <toconnor@openoffice.org>2003-03-04 16:42:27 +0000
committerTomas O'Connor <toconnor@openoffice.org>2003-03-04 16:42:27 +0000
commit7a37854a706a26733ed95d4ec870f5b45eedde82 (patch)
tree199f4e2e39e1038a91d519ee988c18b38f0412b7 /scripting/java/org/openoffice/netbeans/modules/office/wizard
parentFixed bug with conflict between local variable & member variable. (diff)
downloadcore-7a37854a706a26733ed95d4ec870f5b45eedde82.tar.gz
core-7a37854a706a26733ed95d4ec870f5b45eedde82.zip
IssueZilla 11986 - rename Java FileObject so that the JavaNode is synchronized
Diffstat (limited to 'scripting/java/org/openoffice/netbeans/modules/office/wizard')
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java
index 83bef3f23300..233228ef0447 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ParcelContentsIterator.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: toconnor $ $Date: 2003-01-28 20:52:35 $
+ * last change: $Author: toconnor $ $Date: 2003-03-04 17:42:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -204,6 +204,10 @@ public class ParcelContentsIterator implements TemplateWizard.Iterator {
if (fo.getExt().equals("java")) {
try {
PackageRemover.removeDeclaration(FileUtil.toFile(fo));
+
+ // IssueZilla 11986 - rename the FileObject
+ // so the JavaNode is resynchronized
+ fo.rename(fo.lock(), fo.getName(), fo.getExt());
}
catch (IOException ioe) {
NotifyDescriptor d = new NotifyDescriptor.Message(