Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-01-25 13:02:47 +0000
committerMichael Valenta2006-01-25 13:02:47 +0000
commit1e45725e91fbbe6507e47d878f86881c29568e74 (patch)
tree0ae4e69f5a7193987ebbbf748ddd2ed7b37f8c45
parent4f40bc34159ea5e56330d153a6e2a14d14822c55 (diff)
downloadeclipse.platform.team-1e45725e91fbbe6507e47d878f86881c29568e74.tar.gz
eclipse.platform.team-1e45725e91fbbe6507e47d878f86881c29568e74.tar.xz
eclipse.platform.team-1e45725e91fbbe6507e47d878f86881c29568e74.zip
Bug 50965 API Request: Allow setting team-private on resource creation
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java
index 1e258fd4a..4b1414bca 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java
@@ -410,9 +410,12 @@ public class SyncFileWriter {
public void run(IProgressMonitor monitor) throws CoreException {
// Recheck existance in case this method was called without a resource rule
if (! cvsSubDir.exists()) {
- cvsSubDir.create(false /*don't force*/, true /*make local*/, null);
+ cvsSubDir.create(IResource.TEAM_PRIVATE, true /*make local*/, null);
+ } else {
+ if (!cvsSubDir.isTeamPrivateMember()) {
+ cvsSubDir.setTeamPrivateMember(true);
+ }
}
- cvsSubDir.setTeamPrivateMember(true);
}
}, folder, 0, null);
}

Back to the top