【问题标题】:Progress bar on splash screen in eclipse 4 RCP applicationeclipse 4 RCP应用程序中启动屏幕上的进度条
【发布时间】:2014-06-19 11:36:52
【问题描述】:

我想在我的 eclipse 4 RCP 闪屏中添加一个进度条。我已经尝试了以下代码和设置,但仍然无法获取进度条....

org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = true 在 plugin_customization.ini 文件中

我已经设置了splash.bmp文件所在的插件名称..

enter code here
<plugin>

<extension
     id="product"
     point="org.eclipse.core.runtime.products">
  <product
        name="com.example.e4.wizard"
        application="org.eclipse.e4.ui.workbench.swt.E4Application">
      <property name="preferenceCustomization" value="plugin_customization.ini"/>
      <property name="startupForegroundColor" value="FFFF80"/>
      <property name="startupMessageRect" value="250,44,250,20"/>
      <property name="startupProgressRect" value="250,64,501,15"/>
      <property
           name="appName"
           value="com.example.e4.wizard">
     </property>
  </product>
 </extension>

插件.xml

【问题讨论】:

  • 问题中的配置对我有用。我不需要使用接受的答案中描述的自定义启动屏幕处理程序。

标签: eclipse


【解决方案1】:

为了满足您的需求,您需要创建一个生命周期挂钩和自定义闪屏处理程序。 Lars Vogel 写了一篇关于这个主题的优秀教程:

http://www.vogella.com/tutorials/Eclipse4LifeCycle/article.html#lifecycle_overview

您还可以使用 OSGi 服务而不是生命周期扩展。如需更多信息,请查看this bug report 以及随附的示例代码。

【讨论】:

    猜你喜欢
    • 2010-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-30
    • 2023-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多