Set the file as modified after rename. BLD200202250923
authormentlicher@netbeans.org
Fri, 22 Feb 2002 19:18:16 +0000
changeset 2049658f0d403a7a
parent 2048 33c5e1b885e2
child 2050 c32ff88f94c3
Set the file as modified after rename.
This is an additional fix of issue #20776.
vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java
     1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java	Fri Feb 22 17:43:33 2002 +0000
     1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java	Fri Feb 22 19:18:16 2002 +0000
     1.3 @@ -3157,6 +3157,12 @@
     1.4              };
     1.5          }
     1.6          if (cache != null) cache.rename(oldName, newName);
     1.7 +        if (statusProvider != null) {
     1.8 +            String newStatus = statusProvider.getFileStatus(newName);
     1.9 +            if (!notModifiableStatuses.contains(newStatus)) {
    1.10 +                statusProvider.setFileModified(newName);
    1.11 +            }
    1.12 +        }
    1.13          addParentToRefresher(oldName);
    1.14      }
    1.15