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

Bug 139615

Summary: Splash screen doesn't appear on mac when launch from product editor
Product: [Eclipse Project] PDE Reporter: Curtis d'Entremont <curtispd>
Component: UIAssignee: Mike Pawlowski <mike.pawlowski>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andre_weinand, bokowski, Dominique.Buenzli, janek.lb, pascal, Silenio_Quarti, wassim.melhem
Version: 3.2   
Target Milestone: 3.3 M1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch #1 none

Description Curtis d'Entremont CLA 2006-05-01 17:27:35 EDT
3.2 RC2

I'm following the "Creating a Rich Client Application" cheat sheet, at the third task "Customize a product", step "Test the RCP Application product".

I launch the RCP app from the product editor, and it says I'm supposed to see a splash screen (which I just added), but I don't see one. I'm running on a mac.
Comment 1 Wassim Melhem CLA 2006-05-01 18:07:44 EDT
Andre, I keep forgetting to ask you this question.

When we launch a runtime workbench and we want to show the splash, we launch with -launcher <path_to_eclipse_install> -name Eclipse -showsplash 600

Do we need to do anything different/additional on Mac?
Comment 2 Andre Weinand CLA 2006-05-02 09:59:46 EDT
Since Silenio has worked in that area recently, 
I think he is more apt to answer this...
Comment 3 Wassim Melhem CLA 2006-05-02 12:41:21 EDT
Silenio, would you happen to know what's required here to make it work?
Comment 4 Silenio Quarti CLA 2006-05-02 13:45:44 EDT
I think the splash is actually showing, but it is behind other windows. This happens because you are running "<eclipse install>eclipse" instead of the bundle application "<eclipse install>Eclipse.app/Contents/Resources/Splash.app/Contents/MacOS/eclipse". The executable in the root of the eclipse install is just a link to other one, but it is marked as a background only app by the OS, because it is not inside off a UI app bundle.

I am not sure you have access, but when the launcher starts the VM by running org.eclipse.core.launcher.Main, it provides the right app to run in order to show the splash screen.
Comment 5 Wassim Melhem CLA 2006-05-02 14:44:22 EDT
Thanks for the info, Silenio.
Comment 6 Dominique Buenzli CLA 2006-05-09 04:46:11 EDT
Hello,
This is on Eclipse 3.2 RC3 with target made of RCP-SDK and Delta-Pack from the same version on Mac OS X 10.4.6 with java 1.5.0.

If I specify a progress bar in "Branding" section of "myapp.product file" and add "IWorkbenchPreferenceConstants.SHOW_PROGRESS_ON_STARTUP, true" in the ApplicationWorkbenchWindowAdivor , everything works well, splash screen is displayed with progress bar if I launch my RCP application directly from Eclipse.

However, if I export to a binary, the splash screen isn't displayed at all. This is true with a mac binary and a pc binary exported from a mac plateform.

If I remove the progress bar, splash screen is displayed again.
Comment 7 Silenio Quarti CLA 2006-05-09 10:15:42 EDT
Dominique, you may be hitting this problem bug#137008. Please check if your RCP app bundle has the following directory (replace Eclipse as appropriated):

Eclipse.app/Contents/Resources/Splash.app/Contents/MacOS

that dir should be a link like this

......./Contents/MacOS/MacOS -> ../../../MacOS
Comment 8 Dominique Buenzli CLA 2006-05-09 10:23:55 EDT
Thanks. Adding this "folder link" resolved the issue on the mac plateform. But what about the pcwindows export ?
Comment 9 Pascal Rapicault CLA 2006-05-09 10:47:25 EDT
This issue should be discussed on bug #137008.
Comment 10 Mike Pawlowski CLA 2006-05-16 21:05:33 EDT
Fixed using suggestion from Silenio Quarti (Comment #4).

See attached patch #1
Comment 11 Mike Pawlowski CLA 2006-05-16 21:06:26 EDT
Created attachment 41686 [details]
Patch #1
Comment 12 Dominique Buenzli CLA 2006-05-17 09:00:43 EDT
ello, I can confirm that the splash screen with progress bar is working well
with Eclipse 3.2 RC4 with an export made from a mac with RCP-SDK RC4 and delta
pack RC4 as a target.

The exports are working well on a mac and on a pc (windows xp).


Thanks for all the work.
Comment 13 Janek Lasocki-Biczysko CLA 2006-05-17 15:34:22 EDT
Thanks Mike, patch released to post32 branch
Comment 14 Pascal Rapicault CLA 2006-05-17 21:22:55 EDT
Dominique, thanks for taking the time to verify all the bugs where you
ve been involved.
Comment 15 Silenio Quarti CLA 2006-06-23 11:52:12 EDT
*** Bug 106547 has been marked as a duplicate of this bug. ***