summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLily Guo2013-06-27 16:54:06 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-06-27 20:07:34 (EDT)
commit97b3af427feb039f8e55d273ab09852effaff025 (patch)
tree8e0d1322a5a86e322ccbb0e54049d0171df1bc7b
parentf9bd82cef09919ab772b6d96377bced1e8ffb1ae (diff)
downloadorg.eclipse.mylyn.tasks-97b3af427feb039f8e55d273ab09852effaff025.zip
org.eclipse.mylyn.tasks-97b3af427feb039f8e55d273ab09852effaff025.tar.gz
org.eclipse.mylyn.tasks-97b3af427feb039f8e55d273ab09852effaff025.tar.bz2
409758: [api] [fix] allow clients to determine the first and lastrefs/changes/28/14128/3
activity dates of a task Change-Id: Ia2846e83c386b6de1f6ad9ddcee4219e9564fdeb Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=409758
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java4
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager.java13
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager2.java38
3 files changed, 40 insertions, 15 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
index 51804d8..b9659b8 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
@@ -40,7 +40,7 @@ import org.eclipse.mylyn.internal.tasks.core.TaskContainerDelta.Kind;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskActivationListener;
import org.eclipse.mylyn.tasks.core.ITaskActivityListener;
-import org.eclipse.mylyn.tasks.core.ITaskActivityManager;
+import org.eclipse.mylyn.tasks.core.ITaskActivityManager2;
import org.eclipse.osgi.util.NLS;
/**
@@ -49,7 +49,7 @@ import org.eclipse.osgi.util.NLS;
* @since 2.1
* @author Rob Elves
*/
-public class TaskActivityManager implements ITaskActivityManager {
+public class TaskActivityManager implements ITaskActivityManager2 {
private final TaskActivationHistory taskActivationHistory = new TaskActivationHistory();
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager.java
index d60bef7..02dd0ca 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager.java
@@ -12,7 +12,6 @@
package org.eclipse.mylyn.tasks.core;
import java.util.Calendar;
-import java.util.Date;
import java.util.Set;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
@@ -69,18 +68,6 @@ public interface ITaskActivityManager {
*/
public abstract long getElapsedTime(ITask task, Calendar start, Calendar end);
- /**
- * @return the date of the first activity of the given task
- * @since 3.10
- */
- public abstract Date getFirstActivity(ITask task);
-
- /**
- * @return the date of the last activity of the given task
- * @since 3.10
- */
- public abstract Date getLastActivity(ITask task);
-
public abstract void addActivityListener(ITaskActivityListener listener);
public abstract void removeActivityListener(ITaskActivityListener listener);
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager2.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager2.java
new file mode 100644
index 0000000..192e174
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskActivityManager2.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2013 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;
+
+import java.util.Date;
+
+/**
+ * Adds additional behaviour to ITaskActivityManager
+ *
+ * @since 3.10
+ * @author Lily Guo
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface ITaskActivityManager2 extends ITaskActivityManager {
+
+ /**
+ * @return the date of the first activity of the given task
+ * @since 3.10
+ */
+ public abstract Date getFirstActivity(ITask task);
+
+ /**
+ * @return the date of the last activity of the given task
+ * @since 3.10
+ */
+ public abstract Date getLastActivity(ITask task);
+
+}