Can eclipse notify me when a task has finished running?(当任务完成运行时,eclipse可以通知我吗?)
问题描述
在 eclipse 清理、构建或加载我的项目时,我经常会花上几分钟的时间来玩弄我的拇指.如果 Eclipse 可以在进度"视图中的最后一个任务完成运行时发出哔声通知我,那就太好了,这样我就可以停止阅读互联网并重新开始工作.有这样的设置或插件吗?
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?
我尝试调整下面提供的插件模板,它为 JobManager
添加了一个监听器.我尝试实现 done()
仅当作业更改事件的名称包含构建工作区"时才发出哔哔声,因为这通常是我设置中花费时间最长的任务.令人恼火的是,构建工作空间的任务从不发送 done()
调用,只发送 scheduled()
和 aboutToRun()
调用.还有其他想法吗?
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?
推荐答案
目前还没有偏好.
JobManager
具有支持此功能所需的 API...
The JobManager
have the needed API to support this functionality...
编辑:我已经构建并附加了一个非常简单的插件,它会在每个作业终止时发出蜂鸣声.事实证明这是相当频繁的:-).您可以对其进行修改以过滤掉所有误报,例如通过 getPriority()
和 getName()
.你也可以让听众演奏一首曲子,弹出一条消息(不要!)或其他任何东西......
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...
请参阅 jobnotifier.zip.
更新上面的链接再次
这篇关于当任务完成运行时,eclipse可以通知我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:当任务完成运行时,eclipse可以通知我吗?
基础教程推荐
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 降序排序:Java Map 2022-01-01