Eclipse 简明教程

Eclipse - Task Management

Managing Tasks

程序员喜欢在代码中放置 TODO 标记,作为需要完成的任务的提醒。Java 代码中包含单词 TODO 的注释被识别为任务,并且会显示在标记栏和“任务”视图中。

Programmers like to place TODO markers in their code which serves as a reminder for tasks that need to be completed. Comments in the Java code that has the word TODO in them are recognized as task and shown on the marker bar and in the Tasks view.

managed tasks 1

Eclipse 编辑器可用于将任务与正在编辑的文件关联,方法是右键单击标记栏并选择“添加任务”。在弹出的对话框中,输入任务描述,并从优先级下拉列表中选择一个优先级,然后单击“确定”按钮。

An eclipse editor can be used to associate tasks with the file being edited by right clicking on the marker bar and selecting Add Task. In the dialog box that comes up enter the task description and select a priority from the priority drop down list and then click on the OK button.

managed tasks 2

要使用 Eclipse 编辑器删除任务,请右键单击标记栏中的任务图标,然后选择菜单项“删除任务”。

To remove a task using an Eclipse editor, right-click on the task icon in the marker bar and select the Remove Task menu item.

Opening the Tasks View

要打开“任务”视图−

To open the Tasks view −

  1. Click on the Window menu and select Show View → Other.

  2. In the filter text box enter Tasks.

  3. Under General, select Tasks.

managed tasks 3
  1. Click OK.

Using the Tasks View

“任务”视图可用于查看所有任务,并添加未与任何资源关联的任务。

The Tasks view can be used to view all the tasks and add tasks not associated with any resource.

managed tasks 4

它还可用于−

It can also be used to −

  1. Change the priority associated with a task.

  2. Mark a task as completed.

  3. Remove a task or all completed tasks.