提交 96626ab6 编写于 作者: S Serge Rider

#6883 Task view menu fix

上级 b154a936
......@@ -300,7 +300,7 @@ public class DatabaseTasksView extends ViewPart implements DBTTaskListener {
Control control = viewer.getControl();
control.setMenu(menuMgr.createContextMenu(control));
control.addDisposeListener(e -> menuMgr.dispose());
return menuMgr;
}
......@@ -310,7 +310,7 @@ public class DatabaseTasksView extends ViewPart implements DBTTaskListener {
menuMgr.addMenuListener(manager -> {
DBTTask task = getSelectedTask();
DBTTaskRun taskRun = getSelectedTaskRun();
if (task != null && taskRun != null && !taskRun.isRunSuccess()) {
if (task != null && taskRun != null) {
manager.add(new ViewRunLogAction());
}
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
......@@ -320,7 +320,7 @@ public class DatabaseTasksView extends ViewPart implements DBTTaskListener {
Control control = viewer.getControl();
control.setMenu(menuMgr.createContextMenu(control));
control.addDisposeListener(e -> menuMgr.dispose());
return menuMgr;
}
......
......@@ -81,8 +81,10 @@ class TaskConfigurationWizardPageTask extends ActiveWizardPage
this.task = (TaskImpl) task;
if (this.task != null) {
selectedTaskType = this.task.getType();
selectedCategory = selectedTaskType.getCategory();
this.taskName = this.task.getName();
this.taskDescription = this.task.getDescription();
this.selectedTaskType = this.task.getType();
this.selectedCategory = selectedTaskType.getCategory();
}
this.selectedProject = NavigatorUtils.getSelectedProject();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册