Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationParticipant.java')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationParticipant.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationParticipant.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationParticipant.java
new file mode 100644
index 000000000..deece8a53
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationParticipant.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Tasktop Technologies and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.tasks.core.sync;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.mylyn.tasks.core.data.ITaskDataDiff;
+
+/**
+ * @author Steffen Pingel
+ * @since 3.5
+ */
+public abstract class SynchronizationParticipant {
+
+ private String id;
+
+ public SynchronizationParticipant() {
+ }
+
+ public final String getId() {
+ return id;
+ }
+
+ public abstract void processUpdate(ITaskDataDiff diff, IProgressMonitor monitor);
+
+ public final void setId(String id) {
+ Assert.isNotNull(id);
+ Assert.isNotNull(this.id);
+ this.id = id;
+ }
+
+}

Back to the top