Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Prevent eclipse launcher from showing splash
Prevent eclipse launcher from showing splash [message #488488] Mon, 28 September 2009 21:07 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: September 2009
Junior Member
Hi,

I'm working on an application that the user can start in commandline and
GUI mode. The commandline mode is only a shortcut mode for doing the
standard use cases by providing some arguments without having to start
the GUI. Here its nothing more than configuring and sending a message.

My first stupid attempt results in:

public Object start(IApplicationContext context) {
Map<?, ?> arguments = context.getArguments();
if (arguments.containsKey("application.args")) {
String[] appargs = (String[]) arguments.get("application.args");

[... do something with the arguments ...]

return IApplication.EXIT_OK;
}

Display display = PlatformUI.createDisplay();
[... further common code omitted ...]

But although the user supplies any arguments the splash is always shown.
Ho do I avoid this behavior?

I don't want to provide the commandline-interface as separate jar or
executable because the user should use his well known application-exe.

Thanks in advance
Re: Prevent eclipse launcher from showing splash [message #488526 is a reply to message #488488] Tue, 29 September 2009 06:51 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
iossif wrote:
> Hi,
>
> I'm working on an application that the user can start in commandline
> and GUI mode. The commandline mode is only a shortcut mode for doing
> the standard use cases by providing some arguments without having to
> start the GUI. Here its nothing more than configuring and sending a
> message.
>
> My first stupid attempt results in:
>
> public Object start(IApplicationContext context) {
> Map<?, ?> arguments = context.getArguments();
> if (arguments.containsKey("application.args")) {
> String[] appargs = (String[]) arguments.get("application.args");
>
> [... do something with the arguments ...]
>
> return IApplication.EXIT_OK;
> }
>
> Display display = PlatformUI.createDisplay();
> [... further common code omitted ...]
>
> But although the user supplies any arguments the splash is always
> shown. Ho do I avoid this behavior?
Pass -nosplash to eclipse.exe.

Dani
>
> I don't want to provide the commandline-interface as separate jar or
> executable because the user should use his well known application-exe.
>
> Thanks in advance
Re: Prevent eclipse launcher from showing splash [message #489482 is a reply to message #488526] Sat, 03 October 2009 19:23 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: September 2009
Junior Member
Daniel Megert schrieb:
> iossif wrote:
>> Hi,
>>
>> I'm working on an application that the user can start in commandline
>> and GUI mode. The commandline mode is only a shortcut mode for doing
>> the standard use cases by providing some arguments without having to
>> start the GUI. Here its nothing more than configuring and sending a
>> message.
>>
>> My first stupid attempt results in:
>>
>> public Object start(IApplicationContext context) {
>> Map<?, ?> arguments = context.getArguments();
>> if (arguments.containsKey("application.args")) {
>> String[] appargs = (String[]) arguments.get("application.args");
>>
>> [... do something with the arguments ...]
>>
>> return IApplication.EXIT_OK;
>> }
>>
>> Display display = PlatformUI.createDisplay();
>> [... further common code omitted ...]
>>
>> But although the user supplies any arguments the splash is always
>> shown. Ho do I avoid this behavior?
> Pass -nosplash to eclipse.exe.

I think thats not what we need. -nosplash hides the splash completely.
But we want to show the splash in gui-mode and hide it, when the user
provides some options to start the commandline mode. Another point is,
that the user needs to know the nosplash option. I think thats not very
convenient for the user.
Previous Topic:Properties not displayed in property page
Next Topic:TableViewer in the tabbed properties view fails to scroll
Goto Forum:
  


Current Time: Sat Dec 20 13:07:44 GMT 2014

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

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