获得Eclipse的进度视图(Getting Eclipse's Progress View)

编程入门 行业动态 更新时间:2024-10-19 23:47:56
获得Eclipse的进度视图(Getting Eclipse's Progress View)

有没有办法捕获Eclipse的Progress View? 我想知道Progress View是否显示No operations to display at this time. 或者如果有进展的话。

谢谢。

Is there a way to capture Eclipse's Progress View? I want to know if the Progress View displays No operations to display at this time. or if there is a running progress.

Thanks.

最满意答案

进度视图id是org.eclipse.ui.views.ProgressView ,它由org.eclipse.ui.internal.progress.ProgressView实现。 由于这是一个内部类,它不是Eclipse API的一部分,您不应该尝试使用它。 在任何情况下,它都不能提供查看当前显示内容的方法。

您可以通过以下方式了解作业经理目前是否处于空闲状态:

boolean idle = Job.getJobManager().isIdle();

The progress view id is org.eclipse.ui.views.ProgressView and it is implemented by org.eclipse.ui.internal.progress.ProgressView. Since this is an internal class it is not part of the Eclipse API and you should not attempt to use it. In any case it does not provide a way to see what is currently being displayed.

You can find out if the job manager is currently idle using:

boolean idle = Job.getJobManager().isIdle();

                    
                     
          

更多推荐

本文发布于:2023-07-31 02:39:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340513.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视图   进度   Eclipse   Progress   View

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!