1
5
看一看 SubMonitor .
这具有以下效果:
这样做更好,因为完成的速度比用户预期的要快,而且看起来不会被长时间卡住。 对于加分,如果/当检测到潜在的长子任务已经足够快地完成时,仍然增加大量的进度。这样可以避免从50%跳到完成。 |
2
0
有一个 eclipse.org article 关于进度监视器的使用,可能对您有帮助。AFAIK没有办法调整监视器中记号的数量,因此除非你做一个初始过程来猜测任务的相对大小,并将记号分配给每个部分,否则你将得到跳跃。
|
3
0
听起来像“回归监视器”对我来说:-) 假设你显示了50%的进度,你发现你实际上只有25%,你打算怎么办?回去? 也许您可以实现自己的IProgressMonitor来实现这一点,但我不确定它对您的用户有何附加价值 |
4
0
我想你会发现这个问题比你想象的要抽象一些。你问的问题其实是“我有一个工作,我不知道要花多长时间,我什么时候才能说我完成了一半?”答案是:你不能。进度条是用来显示进度占总进度的百分比。如果你不知道总数或百分比,那么进度条是没有乐趣的。 |
5
0
将IProgressMonitor转换为子监视器,然后可以调用SubMonitor.setwork剩余随时重新分配剩余的滴答数。
|
Paul H · 如何将OSGI捆绑包添加到Eclipse RCP项目 6 年前 |
Majid Hojati · Eclipse RCP用户友好GUI组件 6 年前 |
John Doe · 取消eclipse插件作业 6 年前 |
positron · 正在配置中设置自定义属性。ini公司 6 年前 |
Spronghi · Eclipse RCP:找不到所需的插件 6 年前 |
John Doe · 返回在runSync方法中创建的对象的值 6 年前 |
2c00L · 在Eclipse打开透视菜单中添加自定义透视子菜单 6 年前 |