Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2008-05-05 16:41:33 +0000
committermkersten2008-05-05 16:41:33 +0000
commit8fa1e0aa11f522e2e5985650de8f6951f485cc1f (patch)
tree9ce7af16302f09db8e47ce6fab8e9791e4376943 /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java
parentf4fa65d32cf1c2fa102aa9e797c078c995d02406 (diff)
downloadorg.eclipse.mylyn.tasks-8fa1e0aa11f522e2e5985650de8f6951f485cc1f.tar.gz
org.eclipse.mylyn.tasks-8fa1e0aa11f522e2e5985650de8f6951f485cc1f.tar.xz
org.eclipse.mylyn.tasks-8fa1e0aa11f522e2e5985650de8f6951f485cc1f.zip
NEW - bug 229487: [api] manage task list structure internally
https://bugs.eclipse.org/bugs/show_bug.cgi?id=229487
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java
index 17961c65e..236d88c62 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/workingsets/TaskWorkingSetElementAdapter.java
@@ -13,7 +13,7 @@ import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.mylyn.tasks.core.AbstractTaskContainer;
+import org.eclipse.mylyn.tasks.core.ITaskElement;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.IWorkingSetElementAdapter;
@@ -25,7 +25,7 @@ public class TaskWorkingSetElementAdapter implements IWorkingSetElementAdapter {
public IAdaptable[] adaptElements(IWorkingSet workingSet, IAdaptable[] elements) {
for (IAdaptable adaptable : elements) {
- if (!(adaptable instanceof AbstractTaskContainer)) {
+ if (!(adaptable instanceof ITaskElement)) {
return selectContainers(elements);
}
}
@@ -35,7 +35,7 @@ public class TaskWorkingSetElementAdapter implements IWorkingSetElementAdapter {
private IAdaptable[] selectContainers(IAdaptable[] elements) {
List<IAdaptable> containers = new ArrayList<IAdaptable>(elements.length);
for (IAdaptable adaptable : elements) {
- if (adaptable instanceof AbstractTaskContainer) {
+ if (adaptable instanceof ITaskElement) {
containers.add(adaptable);
} else if (adaptable instanceof IProject) {
containers.add(adaptable);

Back to the top