diff options
author | Sam Davis | 2012-02-15 17:23:32 +0000 |
---|---|---|
committer | Steffen Pingel | 2012-02-15 17:23:32 +0000 |
commit | 0bcb41110f882073ae9a96bb5a1ded863df48a01 (patch) | |
tree | bb17efa0e0f7aff146ffcb4c665195c30a186a9b /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskJobEvent.java | |
parent | 1ffa3ec748a3ae36d799a55787aac0ddbffbbf10 (diff) | |
download | org.eclipse.mylyn.tasks-0bcb41110f882073ae9a96bb5a1ded863df48a01.tar.gz org.eclipse.mylyn.tasks-0bcb41110f882073ae9a96bb5a1ded863df48a01.tar.xz org.eclipse.mylyn.tasks-0bcb41110f882073ae9a96bb5a1ded863df48a01.zip |
NEW - bug 333930: [api] provide ability to get notified of changes to
task data and submits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333930
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskJobEvent.java')
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskJobEvent.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskJobEvent.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskJobEvent.java new file mode 100644 index 000000000..27c1b147d --- /dev/null +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskJobEvent.java @@ -0,0 +1,44 @@ +/******************************************************************************* + * Copyright (c) 2012 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; + +/** + * @author Sam Davis + * @since 3.7 + */ +public class TaskJobEvent { + + private final ITask task; + + private final ITask originalTask; + + public TaskJobEvent(ITask originalTask, ITask task) { + this.originalTask = originalTask; + this.task = task; + } + + /** + * @return the original task that was submitted + */ + public ITask getOriginalTask() { + return originalTask; + } + + /** + * @return the task that exists after submission has completed; will be the same as originalTask unless originalTask + * was a new (previously unsubmitted) task and this is a submission complete event + */ + public ITask getTask() { + return task; + } + +} |