Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 564133

Summary: Feature request: Add splash screen to MAT
Product: [Tools] MAT Reporter: Kevin Grigorenko <kevin.grigorenko>
Component: GUIAssignee: Kevin Grigorenko <kevin.grigorenko>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.10   
Target Milestone: 1.13.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/c/mat/org.eclipse.mat/+/192987
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=09ebfe5f40e454c04a51c00781fa4c4a7f9af651
Whiteboard:
Attachments:
Description Flags
MAT splash screen
kevin.grigorenko: iplog+, kevin.grigorenko: review+
MAT splash screen GIMP source file
none
New splash image
none
New splash image
none
MAT splash screen GIMP source file none

Description Kevin Grigorenko CLA 2020-06-09 12:15:35 EDT
On some internal Citrix environments, it can take a while for MAT to get all of the resources it needs to launch. It would be nice if MAT showed a splash screen. In some cases on our Citrix environment, when it's slow, this can take minutes and some people believe there is a problem with MAT.

I did a simple test on a Linux box and confirmed that it might take 5 seconds or so to launch on a machine with a lot of resources and during that time, there is no splash screen.

If it is preferred not to change the current behavior, perhaps this could be an option in the ini file to allow the splash screen?
Comment 1 Kevin Grigorenko CLA 2020-06-09 12:30:51 EDT
A workaround appears to be to change osgi.splashPath in configuration/conig.ini to the following to use the Eclipse splash screen:

osgi.splashPath=platform\:/base/plugins/org.eclipse.platform

The existing line specifies:

osgi.splashPath=platform\:/base/plugins/org.eclipse.mat.ui.rcp

However, there is no splash.bmp in org.eclipse.mat.ui.rcp:

https://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/plugins/org.eclipse.mat.ui.rcp
Comment 2 Andrew Johnson CLA 2020-06-09 15:38:44 EDT
We would need a nice image.
This might give some hints as to get a Tycho/Maven build to add the splash screen option.
https://github.com/jsievers/tycho-demo/tree/master/exercises/Exercise_05_Solution
Comment 3 Kevin Grigorenko CLA 2020-06-10 11:45:48 EDT
Created attachment 283220 [details]
MAT splash screen

I'm not very good with graphics, but attached is one attempt I made in GIMP.
Comment 4 Kevin Grigorenko CLA 2020-06-10 11:46:40 EDT
Created attachment 283221 [details]
MAT splash screen GIMP source file
Comment 5 Andrew Johnson CLA 2020-06-15 05:50:23 EDT
The splash screen image looks okay.
Check the instructions that the Eclipse platform uses for building the image for some oddities about the bmp format.
https://wiki.eclipse.org/Platform-releng/Updating_Branding

The Eclipse logo seems to change regularly - see https://www.eclipse.org/artwork/ and the rules are here https://www.eclipse.org/legal/logo_guidelines.php
MAT is an Eclipse project and so long as you haven't modified the Eclipse logo I think that's okay.
It might not be the most modern image, but currently MAT is built on top of Photon, which is back level.

FYI, we just use an (old) Eclipse logo in the 'about' window: org.eclipse.mat.ui.rcp/icons/eclipse_lg.gif
Comment 6 Andrew Johnson CLA 2020-06-15 06:09:50 EDT
You could also consider whether org.eclipse.mat.ui.rcp/plugin_customization.ini should to be changed to have
# show progress on startup
org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP=true
but that might not have any effect as we are based on Eclipse 4.
Comment 7 Kevin Grigorenko CLA 2020-06-22 14:45:19 EDT
(In reply to Andrew Johnson from comment #5)
> The splash screen image looks okay.
> Check the instructions that the Eclipse platform uses for building the image
> for some oddities about the bmp format.
> https://wiki.eclipse.org/Platform-releng/Updating_Branding
> 
> The Eclipse logo seems to change regularly - see
> https://www.eclipse.org/artwork/ and the rules are here
> https://www.eclipse.org/legal/logo_guidelines.php
> MAT is an Eclipse project and so long as you haven't modified the Eclipse
> logo I think that's okay.
> It might not be the most modern image, but currently MAT is built on top of
> Photon, which is back level.
> 
> FYI, we just use an (old) Eclipse logo in the 'about' window:
> org.eclipse.mat.ui.rcp/icons/eclipse_lg.gif

I took the logo image from https://eclipse.org/mat/ so I presume that's okay.

Are you comfortable with this new splash screen? Should I put it up for a vote on the mailing list?
Comment 8 Andrew Johnson CLA 2020-12-17 13:50:08 EST
This change didn't make it to 1.11.0 - so we will need to set a new target release.
Comment 9 Kevin Grigorenko CLA 2021-06-21 15:39:47 EDT
Created attachment 286648 [details]
New splash image
Comment 10 Kevin Grigorenko CLA 2021-06-21 15:41:33 EDT
We use the splash image on an internal fork build of MAT and I recently fixed some color issues it had based on https://wiki.eclipse.org/Platform-releng/Updating_Branding#Splash_screen

From GIMP, the BMP needs to be saved in 24-bit format and without color space information.

New version of the image attached to the bug.
Comment 11 Andrew Johnson CLA 2022-04-28 10:38:40 EDT
One minor point - if you look at the attachment 286648 [details] on a white background it has a black border on the top, left, bottom, but not the right hand side. 
That might look a bit odd on MAT start-up on a system with a light desktop background.
Comment 12 Kevin Grigorenko CLA 2022-04-28 11:07:12 EDT
Created attachment 288487 [details]
New splash image
Comment 13 Kevin Grigorenko CLA 2022-04-28 11:07:41 EDT
Created attachment 288488 [details]
MAT splash screen GIMP source file
Comment 14 Kevin Grigorenko CLA 2022-04-28 11:08:13 EDT
(In reply to Andrew Johnson from comment #11)
> One minor point - if you look at the attachment 286648 [details] on a white
> background it has a black border on the top, left, bottom, but not the right
> hand side. 
> That might look a bit odd on MAT start-up on a system with a light desktop
> background.

Uploaded new attempt in attachment 288487 [details]
Comment 15 Andrew Johnson CLA 2022-04-28 15:12:19 EDT
Looks good - would you like to deliver this? Do go ahead.
Comment 16 Kevin Grigorenko CLA 2022-04-28 15:21:27 EDT
I'm out of the office until Monday so if you need it sooner for the 1.13 release, feel free to do it; otherwise, I'll do it next week.
Comment 17 Eclipse Genie CLA 2022-04-28 15:39:17 EDT
New Gerrit change created: https://git.eclipse.org/r/c/mat/org.eclipse.mat/+/192987
Comment 19 Andrew Johnson CLA 2022-04-28 16:20:00 EDT
I've delivered your changes - it works for me, so I hope it's good for you too.