eclipse可以在任务完成运行时通知我吗? [英] Can eclipse notify me when a task has finished running?

查看:89
本文介绍了eclipse可以在任务完成运行时通知我吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常被困在我的拇指几分钟,而eclipse清理,建造或加载我的项目。如果在进度视图中的最后一个任务完成运行之后,eclipse可能会发出哔声通知我,所以我可以停止阅读互联网并重新开始工作。有没有一个设置或插件这样做?



编辑:我尝试适应下面提供的插件模板,它添加了一个监听器 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆