Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org')
-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 51804d8de..b9659b8ab 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 d60bef7bf..02dd0cacf 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 000000000..192e174ab
--- /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);
+
+}

Back to the top