且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

eclipse 4 RCP应用程序启动屏幕上的进度条

更新时间:2023-01-25 21:57:46

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



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



您也可以使用OSGi服务的生命周期扩展。有关更多信息,请查看此错误报告以及附加的示例代码


I want to add a progress bar to my eclipse 4 RCP splash screen. I have tried the following code and settings but still unable to get the progress bar....

org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = true in plugin_customization.ini file

i have set the plugin name in which splash.bmp file exist..

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>

plugin.xml

To solve your demand you need to create a lifecycle hook and custom splashscreen handler. Lars Vogel wrote an excellent tutorial about this topic:

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

You can also use an OSGi service instead of the lifecycle extension. For more information please check this bug report as well as the example code attached to it.