eclipse可以在任务完成运行时通知我吗? [英] Can eclipse notify me when a task has finished running?
问题描述
编辑:我尝试适应下面提供的插件模板,它添加了一个监听器 JobManager
。仅当作业更改事件的名称包含构建工作区时,我尝试实现 done()
才能发出蜂鸣声,因为这是通常在我的设置中需要最长的任务。令人厌烦的是,构建工作区的任务永远不会发送一个 done()
调用,只是 scheduled()
和 aboutToRun()
调用。任何其他想法?
目前还没有任何偏好。
JobManager
有必要的API来支持此功能...
编辑:我已经构造并附加了一个非常简单的插件,对于每个终止的工作都会发出蜂鸣声。原来是相当频繁的:-)。您可以修改它以过滤所有的假阳性,例如通过 getPriority()
和 getName()
。另外你可以让听众播放一个音乐,弹出消息(不要!)或任何...
请参阅 jobnotifier.zip 。
UPDATED p>
I am often stuck twiddling my thumbs for a couple minutes while eclipse cleans, builds, or loads my projects. It would be nice if eclipse could notify me with a beep when the last task in the Progress view has finished running, so I can stop reading the internet and get back to work. Is there a setting or plugin that does this?
Edit: I tried adapting the plugin template that nonty provided below, which adds a listener to the JobManager
. I tried implementing done()
to beep only when the job change event's name contains "Building workspace," as that is the task that usually takes the longest in my setup. Exasperatingly, the task that builds the workspace never sends a done()
call, just scheduled()
and aboutToRun()
calls. Any other ideas?
There are no preference for this - yet.
The JobManager
have the needed API to support this functionality...
EDIT: I have constructed and attached a very simple plug-in that will beep for every job that terminates. That turns out to be rather often :-) . You can modify it to filter out all the false positives, e.g. by getPriority()
and getName()
. Also you can make the listener play a tune, popup a message (don't!) or whatever...
See jobnotifier.zip.
UPDATED the link above again
这篇关于eclipse可以在任务完成运行时通知我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!