Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to show a splash image by launching RCP in the console?
How to show a splash image by launching RCP in the console? [message #451157] Thu, 15 June 2006 22:36 Go to next message
Jason is currently offline Jason
Messages: 45
Registered: July 2009
Member
Hi there,

Clicking on the .exe file, a splash image shows up during RCP startup.
Is it possible to show the splash image if I launch it in the console?
somthing like: java -cp startup.jar org.eclipse.core.launcher.Main
-application com.my.rcp.ui.base.DashBoard

Thanks,
Jason
Re: How to show a splash image by launching RCP in the console? [message #451160 is a reply to message #451157] Fri, 16 June 2006 02:04 Go to previous messageGo to next message
Nicole Schumacher is currently offline Nicole Schumacher
Messages: 40
Registered: July 2009
Member
Hi,

The splash screen should appears if you start the exe file from the
command line. If that is not what you want, perhaps this link will help:
http://www.java-tips.org/java-se-tips/javax.swing/splash-scr eens-and-mustang.html

nicole


Jason wrote:
> Hi there,
>
> Clicking on the .exe file, a splash image shows up during RCP startup.
> Is it possible to show the splash image if I launch it in the console?
> somthing like: java -cp startup.jar org.eclipse.core.launcher.Main
> -application com.my.rcp.ui.base.DashBoard
>
> Thanks,
> Jason
>
Re: How to show a splash image by launching RCP in the console? [message #451165 is a reply to message #451157] Fri, 16 June 2006 07:15 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jason wrote:
> Hi there,
>
> Clicking on the .exe file, a splash image shows up during RCP startup.
> Is it possible to show the splash image if I launch it in the console?
> somthing like: java -cp startup.jar org.eclipse.core.launcher.Main
> -application com.my.rcp.ui.base.DashBoard
>
> Thanks,
> Jason
>

Other command line options that the java command line takes are at
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html

-showSplash is one of them.

Also, if you self-host an eclipse application and run it, you can check
out the Debug View. The Properties of the process will give you the
command line eclipse used to start up eclipse.

Later,
PW


Re: How to show a splash image by launching RCP in the console? [message #451220 is a reply to message #451165] Sun, 18 June 2006 22:19 Go to previous messageGo to next message
Jason is currently offline Jason
Messages: 45
Registered: July 2009
Member
Paul Webster wrote:

> Jason wrote:
>> Hi there,
>>
>> Clicking on the .exe file, a splash image shows up during RCP startup.
>> Is it possible to show the splash image if I launch it in the console?
>> somthing like: java -cp startup.jar org.eclipse.core.launcher.Main
>> -application com.my.rcp.ui.base.DashBoard
>>
>> Thanks,
>> Jason
>>

> Other command line options that the java command line takes are at
>
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html

> -showSplash is one of them.

> Also, if you self-host an eclipse application and run it, you can check
> out the Debug View. The Properties of the process will give you the
> command line eclipse used to start up eclipse.

> Later,
> PW

Thanks for the tip.
If I use it in this way, it does not work.
java -cp startup.jar org.eclipse.core.launcher.Main -showSplash -product
"com.my.rcp.ui.base.CM product"

What exactly does <command> stand for? Looks like it is a required
parameters.

-showSplash <command> (Main)
specifies the command to use to show the splash screen. Typically
supplied by the Eclipse executable.
Re: How to show a splash image by launching RCP in the console? [message #451234 is a reply to message #451220] Mon, 19 June 2006 08:50 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jason wrote:
>
>> Also, if you self-host an eclipse application and run it, you can
>> check out the Debug View. The Properties of the process will give you
>> the command line eclipse used to start up eclipse.
>
>
>
> What exactly does <command> stand for? Looks like it is a required
> parameters.
>


Dunno, but if you selfhost and check the properties, it looks like the
command line has -showSplash 600

Later,
PW


Re: How to show a splash image by launching RCP in the console? [message #451266 is a reply to message #451234] Tue, 20 June 2006 01:55 Go to previous messageGo to next message
Jason is currently offline Jason
Messages: 45
Registered: July 2009
Member
Paul Webster wrote:

> Jason wrote:
>>
>>> Also, if you self-host an eclipse application and run it, you can
>>> check out the Debug View. The Properties of the process will give you
>>> the command line eclipse used to start up eclipse.
>>
>>
>>
>> What exactly does <command> stand for? Looks like it is a required
>> parameters.
>>


> Dunno, but if you selfhost and check the properties, it looks like the
> command line has -showSplash 600

> Later,
> PW

If I append -debug in the properties of the executable shortcut like
"C:\rcp\myrcp.exe" -debug
I can see the splash is shown and the debug info in the console as well:
runCommand:
<C:\rcp\myrcp.exe><-name><myrcp><-showsplash><600><c:\rcp\plugins\com.my.rcp.ui.base_1.0.2\splash.bmp >

And I run it in cmd line liek
java -cp startup.jar org.eclipse.core.launcher.Main -application
"com.my.rcp.ui.base.DashBoard" -showSplash 600 -dubug
The splash is not shown and the debug info in the console looks like:
runCommand:
<none><-name><none><-showsplash><600><c:\rcp\plugins\com.my.rcp.ui.base_1.0.2\splash.bmp >
It does not work even I specify -name.

So I followed the code in org.eclipse.core.launcher.Main; in its
runCommand and handleSplash method, there is some comment that looks like
only executable launcher is supported for splash.

and also I searched in the website, and found a post
https://bugs.eclipse.org/bugs/show_bug.cgi?id=81463 for the splash issue,
but it seems to have been resolved.

/*
* Handle splash screen.
* We support 2 startup scenarios:
*
* (1) the executable launcher put up the splash screen. In that
* scenario we are invoked with -endsplash command which is
* fully formed to take down the splash screen
*
* (2) the executable launcher did not put up the splash screen,
* but invokes Eclipse with partially formed -showsplash command.
* In this scenario we determine which splash to display (based on
* feature information) and then call -showsplash command.
*
* In both scenarios we pass a handler (Runnable) to the platform.
* The handler is called as a result of the launched application
calling
* Platform.endSplash(). In the first scenario this results in the
* -endsplash command being executed. In the second scenario this
* results in the process created as a result of the -showsplash
command
* being destroyed.
*
* @param defaultPath search path for the boot plugin
*/
private void handleSplash(URL[] defaultPath) {
Re: How to show a splash image by launching RCP in the console? [message #451350 is a reply to message #451266] Tue, 20 June 2006 09:55 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jason wrote:
>
>
> If I append -debug in the properties of the executable shortcut like
> "C:\rcp\myrcp.exe" -debug
> I can see the splash is shown and the debug info in the console as well:
> runCommand:
> <C:\rcp\myrcp.exe><-name><myrcp><-showsplash><600><c:\rcp\plugins\com.my.rcp.ui.base_1.0.2\splash.bmp >
>
>
> And I run it in cmd line liek
> java -cp startup.jar org.eclipse.core.launcher.Main -application
> "com.my.rcp.ui.base.DashBoard" -showSplash 600 -dubug
> The splash is not shown and the debug info in the console looks like:
> runCommand:
> <none><-name><none><-showsplash><600><c:\rcp\plugins\com.my.rcp.ui.base_1.0.2\splash.bmp >


it needs the launcher to show the splash screen (I didn't know that).

On linux, I needed to add "-launcher eclipse"

yours would probably be "-launcher c:\rcp\myrcp.exe"

Later,
PW


Re: How to show a splash image by launching RCP in the console? [message #451476 is a reply to message #451350] Wed, 21 June 2006 02:00 Go to previous message
Jason is currently offline Jason
Messages: 45
Registered: July 2009
Member
Paul Webster wrote:

> Jason wrote:
>>
>>
>> If I append -debug in the properties of the executable shortcut like
>> "C:rcpmyrcp.exe" -debug
>> I can see the splash is shown and the debug info in the console as well:
>> runCommand:
>>
<C:rcpmyrcp.exe><-name><myrcp><-showsplash><600><c:rcppluginscom.my.rcp.ui.base_1.0.2splash.bmp >
>>
>>
>> And I run it in cmd line liek
>> java -cp startup.jar org.eclipse.core.launcher.Main -application
>> "com.my.rcp.ui.base.DashBoard" -showSplash 600 -dubug
>> The splash is not shown and the debug info in the console looks like:
>> runCommand:
>>
<none><-name><none><-showsplash><600><c:rcppluginscom.my.rcp.ui.base_1.0.2splash.bmp >


> it needs the launcher to show the splash screen (I didn't know that).

> On linux, I needed to add "-launcher eclipse"

> yours would probably be "-launcher c:rcpmyrcp.exe"

That is true, but the problem is I do not want the executable file
myrcp.exe.
So I guess there is no way to show splash without the launcher unless I
write one.-_-

> Later,
> PW
Previous Topic:ListViewer in a CTabFolder
Next Topic:How to disable actions in an context menu?
Goto Forum:
  


Current Time: Fri Jul 25 05:06:27 EDT 2014

Powered by FUDForum. Page generated in 0.03095 seconds