/******************************************************************************* * Copyright (c) 2010 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; /** * Provides details about a task migration. * * @see AbstractRepositoryConnector#migrateTask(TaskMigrationEvent) * @author Steffen Pingel * @since 3.4 */ public class TaskMigrationEvent { private final ITask sourceTask; private final ITask targetTask; public TaskMigrationEvent(ITask sourceTask, ITask targetTask) { this.sourceTask = sourceTask; this.targetTask = targetTask; } /** * Returns the source task of the migration. * * @see #getTargetTask() */ public ITask getSourceTask() { return sourceTask; } /** * Returns the target task of the migration. * * @see #getSourceTask() */ public ITask getTargetTask() { return targetTask; } }