Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2014-03-25 10:18:03 -0400
committerSteffen Pingel2014-03-26 03:45:13 -0400
commit604234eb263e3bf3981a715500d36e5d7be293be (patch)
tree1cd0e7e2dfe10db6ea497f23cfad2dbe5c515a3d /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parentfe57c91b477700aa2c10ae658d31aefb703accbf (diff)
downloadorg.eclipse.mylyn.tasks-604234eb263e3bf3981a715500d36e5d7be293be.tar.gz
org.eclipse.mylyn.tasks-604234eb263e3bf3981a715500d36e5d7be293be.tar.xz
org.eclipse.mylyn.tasks-604234eb263e3bf3981a715500d36e5d7be293be.zip
316253: move loading of task activity extension into core
Change-Id: I3cc373119f7a19f69a2b4391f94ffc0b64d56935 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=316253
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/TasksCoreExtensionReader.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/TasksCoreExtensionReader.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/TasksCoreExtensionReader.java
index 164109059..503cb7799 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/TasksCoreExtensionReader.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/util/TasksCoreExtensionReader.java
@@ -13,7 +13,9 @@ package org.eclipse.mylyn.internal.tasks.core.util;
import org.eclipse.mylyn.commons.core.ExtensionPointReader;
import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
+import org.eclipse.mylyn.internal.tasks.core.activity.DefaultTaskActivityMonitor;
import org.eclipse.mylyn.internal.tasks.core.context.DefaultTaskContextStore;
+import org.eclipse.mylyn.tasks.core.activity.AbstractTaskActivityMonitor;
import org.eclipse.mylyn.tasks.core.context.AbstractTaskContextStore;
public class TasksCoreExtensionReader {
@@ -29,4 +31,15 @@ public class TasksCoreExtensionReader {
return new DefaultTaskContextStore();
}
+ public static AbstractTaskActivityMonitor loadTaskActivityMonitor() {
+ ExtensionPointReader<AbstractTaskActivityMonitor> reader = new ExtensionPointReader<AbstractTaskActivityMonitor>(
+ ITasksCoreConstants.ID_PLUGIN, "activityMonitor", "activityMonitor", AbstractTaskActivityMonitor.class); //$NON-NLS-1$ //$NON-NLS-2$
+ reader.read();
+ AbstractTaskActivityMonitor activityMonitor = reader.getItem();
+ if (activityMonitor != null) {
+ return activityMonitor;
+ }
+ return new DefaultTaskActivityMonitor();
+ }
+
}

Back to the top