Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Custom splash screen for installed product
Custom splash screen for installed product [message #1827764] Fri, 22 May 2020 19:30 Go to next message
Sina MadaniFriend
Messages: 160
Registered: November 2015
Location: York, UK
Senior Member
Once the user has installed our product, how can we go about customising the splash screen (i.e. the one that shows when launching eclipse.exe)? We don't have an RCP product or anything of the sort. I was thinking maybe a resource copy and some Text Modify of eclipse.ini might do the trick, but surely there must be an "easy" way to do this? Thanks.
Re: Custom splash screen for installed product [message #1827768 is a reply to message #1827764] Sat, 23 May 2020 00:36 Go to previous messageGo to next message
Sina MadaniFriend
Messages: 160
Registered: November 2015
Location: York, UK
Senior Member
There is a hacky workaround. Text Modify the eclipse.ini, at the top appending this:
-showsplash
org.eclipse.myproject.splash

and then putting the splash.bmp under plugins/org.eclipse.myproject.splash_0.0.0

Only question now is how to get that splash.bmp into that directory (and create the directory) during Oomph setup...
Re: Custom splash screen for installed product [message #1827769 is a reply to message #1827768] Sat, 23 May 2020 04:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
It looks like Eike did something similar (and simpler) here:

https://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.explorer.ui/CDOExplorer.setup

I.e., I think the argument can point at a *.bmp directly.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Custom splash screen for installed product [message #1827779 is a reply to message #1827769] Sat, 23 May 2020 13:57 Go to previous messageGo to next message
Sina MadaniFriend
Messages: 160
Registered: November 2015
Location: York, UK
Senior Member
Thanks, that seems like a good solution! I tried this but for some reason I can't get the resource copy to work - it doesn't create the file, at least on Windows. Here is the task:
    <setupTask
        xsi:type="setup:ResourceCopyTask"
        id="splash"
        sourceURL="http://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/plugins/org.eclipse.epsilon.common.dt/splash.bmp"
        targetURL="${eclipse.folder|uri}/splash.bmp">
      <description>Creates the custom splash image.</description>
    </setupTask>


I have tried with both https and http, but still nothing. However the .ini property is written correctly so when I manually paste the image it works. Are there some implicit constraints on what can be copied?
Re: Custom splash screen for installed product [message #1827819 is a reply to message #1827779] Mon, 25 May 2020 05:29 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
The problem is that the host git.eclipse.org is explicitly blocked from direct access. Such URI's only work if the URI is in the setups.zip.

Could you put it somewhere else? Another possibility is to use a Resource Creation task similar to this:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCreationTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    excludedTriggers="BOOTSTRAP"
    content="UEsDBAoAAAAAAHtelUw05vp1HAAAABwAAAAFAHAAZW1wdHlTRFsApAAAAAAIAL/UyvdjZGBpEGFg&#xA;YDBggAAfIGZkBTNZRYFE6N2P9V9WLa2a1nDozktm3HKMTAwMTAwRDMxgaRGG/4zyDIyMELVCYEoC&#xA;IsYEEVMAEgpgtgpEHI+dAFVUDQAHuQnbWrkJ21q5CdtaU2luZ2xlIGVudHJ5IGZvciBlbXB0eSBq&#xA;YXIuClBLAQIXCwoAAAAAAHtelUw05vp1HAAAABwAAAAFABEAAAAAAAEAIAC2gQAAAABlbXB0eVNE&#xA;BACkAAAAVVQFAAe5CdtaUEsFBgAAAAABAAEARAAAAK8AAAAAAA=="
    targetURL="${git.clone.equinox.p2.location|uri}/bundles/org.eclipse.equinox.p2.repository.tools/lib/repository-tools-ant.jar"
    encoding="base64">
  <description>Create an empty jar as a placeholder for the jar that will eventually be created.  This ensures that PDE will add the jar to the classpath of projects needing the ant jar.</description>
</setup:ResourceCreationTask>
I.e., use base64 encoding and represent the image data in base64 which you can create on a bash command line as "base64 --wrap=0 splash.bmp". Then all the data is in the setup file. Note that the excludedTriggers above is just because I only want this task to run in a workspace, but in your case you want it to run during BOOTSTRAMP, so don't copy that part.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Custom splash screen for installed product [message #1827846 is a reply to message #1827819] Mon, 25 May 2020 13:39 Go to previous message
Sina MadaniFriend
Messages: 160
Registered: November 2015
Location: York, UK
Senior Member
Thanks! Putting it somewhere else solved the problem.
Previous Topic:Auto update with setup task when p2 site changes
Next Topic:Eclipse Not visible to other users on Machine
Goto Forum:
  


Current Time: Wed Dec 04 16:49:10 GMT 2024

Powered by FUDForum. Page generated in 0.07988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top