Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-02-26 19:37:59 -0500
committerspingel2009-02-26 19:37:59 -0500
commita5c317d14a9ae587acc122a662ecfe52358bb3e2 (patch)
tree8d4a21a9d78681e0e79565fd1a35defd52a29275
parent472ac97c709a154893f320dcb0484c8ec59d6b07 (diff)
downloadorg.eclipse.mylyn.tasks-a5c317d14a9ae587acc122a662ecfe52358bb3e2.tar.gz
org.eclipse.mylyn.tasks-a5c317d14a9ae587acc122a662ecfe52358bb3e2.tar.xz
org.eclipse.mylyn.tasks-a5c317d14a9ae587acc122a662ecfe52358bb3e2.zip
RESOLVED - bug 220006: Keep a newly opened (incoming) bug in the task list or make it easier to return to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220006
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskEditorScheduleAction.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskEditorScheduleAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskEditorScheduleAction.java
index fc718b1b9..77fa4ac3a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskEditorScheduleAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskEditorScheduleAction.java
@@ -33,14 +33,13 @@ public class TaskEditorScheduleAction extends Action implements IMenuCreator {
private final ITask task;
- private MenuManager menuManager = null;
+ private MenuManager menuManager;
private final ScheduleTaskMenuContributor scheduleMenuContributor = new ScheduleTaskMenuContributor();
public TaskEditorScheduleAction(ITask task) {
this.task = task;
this.setImageDescriptor(CommonImages.SCHEDULE_DAY);
-
setMenuCreator(this);
}
@@ -61,14 +60,15 @@ public class TaskEditorScheduleAction extends Action implements IMenuCreator {
public Menu getMenu(Menu parent) {
if (menuManager != null) {
- menuManager.dispose();
+ return menuManager.getMenu();
}
- menuManager = scheduleMenuContributor.getSubMenuManager(Collections.singletonList((IRepositoryElement) task));
- return menuManager.getMenu();
+ return null;
}
public void dispose() {
- menuManager.dispose();
+ if (menuManager != null) {
+ menuManager.dispose();
+ }
}
} \ No newline at end of file

Back to the top