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.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor
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.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java2
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java10
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java
index 6cbd23d44..885940cdd 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java
@@ -8,6 +8,7 @@
package org.eclipse.mylyn.internal.trac.ui.editor;
+import org.eclipse.mylyn.internal.tasks.core.AbstractRepositoryQuery;
import org.eclipse.mylyn.internal.tasks.core.deprecated.AbstractDuplicateDetector;
import org.eclipse.mylyn.internal.tasks.core.deprecated.RepositoryTaskData;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
@@ -15,7 +16,6 @@ import org.eclipse.mylyn.internal.trac.core.TracRepositoryQuery;
import org.eclipse.mylyn.internal.trac.core.model.TracSearch;
import org.eclipse.mylyn.internal.trac.core.model.TracSearchFilter;
import org.eclipse.mylyn.internal.trac.core.model.TracSearchFilter.CompareOperator;
-import org.eclipse.mylyn.tasks.core.AbstractRepositoryQuery;
import org.eclipse.mylyn.tasks.core.TaskRepository;
public class TracDuplicateDetector extends AbstractDuplicateDetector {
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java
index b643bc88b..7ad7b910f 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditorFactory.java
@@ -14,7 +14,7 @@ import org.eclipse.mylyn.internal.tasks.ui.deprecated.RepositoryTaskEditorInput;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryConnector;
import org.eclipse.mylyn.internal.trac.core.TracTask;
-import org.eclipse.mylyn.tasks.core.AbstractTask;
+import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorFactory;
@@ -32,7 +32,7 @@ public class TracTaskEditorFactory extends AbstractTaskEditorFactory {
private static final String TITLE = "Browser";
@Override
- public boolean canCreateEditorFor(AbstractTask task) {
+ public boolean canCreateEditorFor(ITask task) {
return (task instanceof TracTask);
}
@@ -60,8 +60,8 @@ public class TracTaskEditorFactory extends AbstractTaskEditorFactory {
return new TracTaskEditor(parentEditor);
}
} else if (editorInput instanceof TaskEditorInput) {
- TaskRepository repository = TasksUi.getRepositoryManager().getRepository(
- TracCorePlugin.REPOSITORY_KIND, ((TaskEditorInput) editorInput).getTask().getRepositoryUrl());
+ TaskRepository repository = TasksUi.getRepositoryManager().getRepository(TracCorePlugin.REPOSITORY_KIND,
+ ((TaskEditorInput) editorInput).getTask().getRepositoryUrl());
if (TracRepositoryConnector.hasRichEditor(repository)) {
// the editor is actually initialized with a RepositoryTaskEditorInput, see bug 193430
return new TracTaskEditor(parentEditor);
@@ -73,7 +73,7 @@ public class TracTaskEditorFactory extends AbstractTaskEditorFactory {
}
@Override
- public IEditorInput createEditorInput(AbstractTask task) {
+ public IEditorInput createEditorInput(ITask task) {
TracTask tracTask = (TracTask) task;
TaskRepository repository = TasksUi.getRepositoryManager().getRepository(TracCorePlugin.REPOSITORY_KIND,
tracTask.getRepositoryUrl());

Back to the top