Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-06-15 23:58:34 +0000
committerspingel2009-06-15 23:58:34 +0000
commit08fce7a6a09fad8c775f439ad528f1923a3eda2b (patch)
tree831f75e071cc816d6966d8f897526cd592b69c07
parent34b2daded98019aceb0ce7161a44ebc195f86c9f (diff)
downloadorg.eclipse.mylyn.tasks-08fce7a6a09fad8c775f439ad528f1923a3eda2b.tar.gz
org.eclipse.mylyn.tasks-08fce7a6a09fad8c775f439ad528f1923a3eda2b.tar.xz
org.eclipse.mylyn.tasks-08fce7a6a09fad8c775f439ad528f1923a3eda2b.zip
NEW - bug 264583: improve the Task List presentation switcher
https://bugs.eclipse.org/bugs/show_bug.cgi?id=264583
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java
index 071911242..dcd185adb 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java
@@ -81,7 +81,7 @@ public class TasksUiUtilTest extends TestCase {
assertEquals(1, activePage.getEditorReferences().length);
IEditorPart editor = activePage.getEditorReferences()[0].getEditor(true);
assertNotNull(editor);
- assertEquals(TaskEditor.class, editor);
+ assertEquals(TaskEditor.class, editor.getClass());
TasksUiUtil.openTask(cat1task2);
assertEquals(2, activePage.getEditorReferences().length);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
index 9bc7a080c..090764334 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
@@ -540,7 +540,7 @@ public class TaskListView extends ViewPart implements IPropertyChangeListener, I
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
for (TaskContainerDelta taskContainerDelta : deltas) {
- if (ScheduledPresentation.ID.equals(getCurrentPresentation().getId())) {
+ if (isScheduledPresentation()) {
// TODO: implement refresh policy for scheduled presentation
refreshJob.refresh();
} else {

Back to the top