diff options
author | Tomas O'Connor <toconnor@openoffice.org> | 2003-03-04 16:42:27 +0000 |
---|---|---|
committer | Tomas O'Connor <toconnor@openoffice.org> | 2003-03-04 16:42:27 +0000 |
commit | 7a37854a706a26733ed95d4ec870f5b45eedde82 (patch) | |
tree | 199f4e2e39e1038a91d519ee988c18b38f0412b7 /scripting/java/org/openoffice/netbeans/modules/office/wizard | |
parent | Fixed bug with conflict between local variable & member variable. (diff) | |
download | core-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.java | 8 |
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( |