/******************************************************************************* * 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.isLegal(this.id == null); this.id = id; } }