diff options
author | spingel | 2011-03-02 03:43:05 +0000 |
---|---|---|
committer | spingel | 2011-03-02 03:43:05 +0000 |
commit | fcfc44dd93046f0b81d6300a0836ffca9e664c8b (patch) | |
tree | cf4764a3842f289b907058ccd3f842ceba457c44 /org.eclipse.mylyn.tasks.tests | |
parent | d51e695c7bf4a837cdf31005773858c478fc2768 (diff) | |
download | org.eclipse.mylyn.tasks-fcfc44dd93046f0b81d6300a0836ffca9e664c8b.tar.gz org.eclipse.mylyn.tasks-fcfc44dd93046f0b81d6300a0836ffca9e664c8b.tar.xz org.eclipse.mylyn.tasks-fcfc44dd93046f0b81d6300a0836ffca9e664c8b.zip |
NEW - bug 286963: [api] add support for ignoring incoming notification on specified fields
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286963
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r-- | org.eclipse.mylyn.tasks.tests/plugin.xml | 4 | ||||
-rw-r--r-- | org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/support/MockSynchronizationParticipant.java | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/plugin.xml b/org.eclipse.mylyn.tasks.tests/plugin.xml index 107c5a801..05e2d8021 100644 --- a/org.eclipse.mylyn.tasks.tests/plugin.xml +++ b/org.eclipse.mylyn.tasks.tests/plugin.xml @@ -82,6 +82,10 @@ class="org.eclipse.mylyn.tasks.tests.support.MockSynchronizationParticipant" id="org.eclipse.mylyn.tasks.tests.participant"> </participant> + <suppressIncoming + attributeId="version" + connectorKind="trac"> + </suppressIncoming> </extension> </plugin> diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/support/MockSynchronizationParticipant.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/support/MockSynchronizationParticipant.java index bc6ff9fe7..15f3dc660 100644 --- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/support/MockSynchronizationParticipant.java +++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/support/MockSynchronizationParticipant.java @@ -12,7 +12,6 @@ package org.eclipse.mylyn.tasks.tests.support; import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.mylyn.tasks.core.data.ITaskAttributeDiff; import org.eclipse.mylyn.tasks.core.data.ITaskDataDiff; import org.eclipse.mylyn.tasks.core.sync.SynchronizationParticipant; @@ -26,12 +25,7 @@ public class MockSynchronizationParticipant extends SynchronizationParticipant { @Override public void processUpdate(ITaskDataDiff diff, IProgressMonitor monitor) { - if (diff.getChangedAttributes().size() == 1) { - ITaskAttributeDiff attributeDiff = diff.getChangedAttributes().iterator().next(); - if ("version".equals(attributeDiff.getAttributeId())) { - diff.setHasChanged(false); - } - } + //System.err.println(diff.getChangedAttributes()); } } |