Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-24 13:43:10 +0000
committerMichael Valenta2005-05-24 13:43:10 +0000
commite31c42d8324160bb59f3f3049c79f2c1618da4b2 (patch)
treea16a636322eb05ee90d50cafceba5d6450b03eb4
parentfcc09e6801648ffbbf59addd59121a51d35b265d (diff)
downloadeclipse.platform.team-e31c42d8324160bb59f3f3049c79f2c1618da4b2.tar.gz
eclipse.platform.team-e31c42d8324160bb59f3f3049c79f2c1618da4b2.tar.xz
eclipse.platform.team-e31c42d8324160bb59f3f3049c79f2c1618da4b2.zip
Bug 96202 Removing a file does not work in package explorer
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CommitAction.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CommitAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CommitAction.java
index 179ca49a3..4e5f43ab3 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CommitAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CommitAction.java
@@ -15,7 +15,6 @@ import java.util.*;
import org.eclipse.core.internal.resources.mapping.ResourceMapping;
import org.eclipse.core.internal.resources.mapping.ResourceTraversal;
-import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -85,7 +84,7 @@ public class CommitAction extends WorkspaceTraversalAction {
for (int k = 0; k < resources.length; k++) {
IResource resource = resources[k];
if (resource.getType() != IResource.FILE) {
- collectShallowFiles(((IContainer)resource).members(), roots);
+ collectShallowFiles(members(resource), roots);
}
}
}
@@ -94,6 +93,10 @@ public class CommitAction extends WorkspaceTraversalAction {
return (IResource[]) roots.toArray(new IResource[roots.size()]);
}
+ private IResource[] members(IResource resource) throws CoreException {
+ return CVSProviderPlugin.getPlugin().getCVSWorkspaceSubscriber().members(resource);
+ }
+
private void collectShallowFiles(IResource[] resources, List roots) {
for (int k = 0; k < resources.length; k++) {
IResource resource = resources[k];

Back to the top