Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-04-28 12:33:03 -0400
committerMichael Valenta2004-04-28 12:33:03 -0400
commitbb10ff6747e85fbcb2f76f825c3305568a005eec (patch)
tree06e64a8858fae818bc4ecf599dfaa15fb7ca3104
parent4fee9a3d4d7ad31555c8468af5dddc246c2dbf5b (diff)
downloadeclipse.platform.team-bb10ff6747e85fbcb2f76f825c3305568a005eec.tar.gz
eclipse.platform.team-bb10ff6747e85fbcb2f76f825c3305568a005eec.tar.xz
eclipse.platform.team-bb10ff6747e85fbcb2f76f825c3305568a005eec.zip
Use get method on sync manager
-rw-r--r--tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestDiffNodePresentationModel.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestDiffNodePresentationModel.java b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestDiffNodePresentationModel.java
index 795738887..178c28596 100644
--- a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestDiffNodePresentationModel.java
+++ b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/synchronize/TestDiffNodePresentationModel.java
@@ -64,12 +64,9 @@ public class TestDiffNodePresentationModel extends TeamTest {
*
*/
private ISynchronizeParticipant getParticipant(String id) throws TeamException {
- ISynchronizeParticipantReference[] refs = TeamUI.getSynchronizeManager().getSynchronizeParticipants();
- for (int i = 0; i < refs.length; i++) {
- ISynchronizeParticipantReference reference = refs[i];
- if (reference.getId().equals(id)) {
- return reference.getParticipant();
- }
+ ISynchronizeParticipantReference reference = TeamUI.getSynchronizeManager().get(id, null);
+ if (reference != null) {
+ return reference.getParticipant();
}
return null;
}

Back to the top