diff options
author | Michael Valenta | 2004-12-10 16:07:28 +0000 |
---|---|---|
committer | Michael Valenta | 2004-12-10 16:07:28 +0000 |
commit | 136ba00362ad6e0e3edcd46ec681d66f4440b45d (patch) | |
tree | 3c47e4e13a4557f06e1575769dd08b6cabc1ba5e | |
parent | abfa4da0922a13bad208e2cde7e4958ba9332472 (diff) | |
download | eclipse.platform.team-136ba00362ad6e0e3edcd46ec681d66f4440b45d.tar.gz eclipse.platform.team-136ba00362ad6e0e3edcd46ec681d66f4440b45d.tar.xz eclipse.platform.team-136ba00362ad6e0e3edcd46ec681d66f4440b45d.zip |
Bug 80380 Branching content assist should show tags from all repositories
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/LocalProjectTagSource.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/LocalProjectTagSource.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/LocalProjectTagSource.java index 1ffa1c7f1..73f91d081 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/LocalProjectTagSource.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/LocalProjectTagSource.java @@ -26,14 +26,13 @@ import org.eclipse.team.internal.ccvs.ui.Policy; /** * Tag source that gets its tags from the projects exist in the workspace - * and are mapped to the same repository as the seed project */ public class LocalProjectTagSource extends TagSource { public static TagSource create(IProject seedProject) { try { ICVSRemoteFolder seedFolder = ((ICVSRemoteFolder)CVSWorkspaceRoot.getRemoteResourceFor(seedProject)); - ICVSRemoteFolder[] remoteFolders = getProjectRemoteFolders(seedFolder.getRepository()); + ICVSRemoteFolder[] remoteFolders = getProjectRemoteFolders(); if (remoteFolders.length == 1) { // There are no other projects to get tags from so return null return null; @@ -57,7 +56,7 @@ public class LocalProjectTagSource extends TagSource { /* * Return the list of remote folders for the projects in the workspace mapped to the given repository */ - private static ICVSRemoteFolder[] getProjectRemoteFolders(ICVSRepositoryLocation repository) { + private static ICVSRemoteFolder[] getProjectRemoteFolders() { IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); List result = new ArrayList(); for (int i = 0; i < projects.length; i++) { @@ -65,7 +64,7 @@ public class LocalProjectTagSource extends TagSource { try { if (project.isAccessible() && RepositoryProvider.isShared(project)) { ICVSRemoteFolder remote = (ICVSRemoteFolder)CVSWorkspaceRoot.getRemoteResourceFor(project); - if (remote != null && remote.getRepository().equals(repository)) { + if (remote != null) { result.add(remote); } } |