[英]Use Image from outside plugin for splash screen in eclipse RCP
Currently i am loading my splash screen image for my tool from the plugin.Is it possible to load splash screen image from outside plugin[From other hard drive path]?.My requirement is to give an option to the user to change the splash screen image from my product itself.If Possible please brief me with an example. 目前我正在从插件加载我的工具的启动画面图像。是否可以从外部插件[从其他硬盘路径]加载启动画面图像?我的要求是给用户一个选项来更改启动画面来自我产品本身的图片。如有可能,请举例说明。 Thanks in Advance!
提前致谢!
Try to create custom Splash screen, using following thread for example: Eclipse RCP application - custom splash screen . 尝试使用以下线程创建自定义Splash屏幕,例如: Eclipse RCP应用程序 - 自定义初始屏幕 。
Use following extention point to register your SplashHandler: 使用以下扩展点注册您的SplashHandler:
<extension point="org.eclipse.ui.splashHandlers">
<splashHandler
class="com.example.application.splash.SlideShowSplashHandler"
id="splash.slideshow">
</splashHandler>
<splashHandlerProductBinding
productId="com.example.application.product"
splashId="com.example.application.splash.slideshow">
</splashHandlerProductBinding>
</extension>
In the Splash handler create composite with an image, taken from the location, which was defined by user. 在Splash处理程序中,创建具有图像的复合,该图像取自用户定义的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.