Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show Splash screen on double clicking System tray icon
Show Splash screen on double clicking System tray icon [message #1777236] Mon, 27 November 2017 10:44 Go to next message
Kunal Harkare is currently offline Kunal HarkareFriend
Messages: 2
Registered: November 2017
Junior Member
I have created an RCP application which starts on system startup. My application has a login dialog which authenticates the user before creating workbench. I also have provided a splash image which displays as soon as the application starts.

By default, I am starting the application in system tray.
I want the splash screen to show as soon as the user double clicks on system tray icon.

Below is the code.(I have only posted the relevant code)

Display display = PlatformUI.createDisplay();

//Create and minimize application to tray

//Method to create system tray
private void minimizeToTrayIfAutoStart(Display display){
  Shell displayShell = new Shell(display);
//Create system tray and add double click listener
  item.addSelectionListener(new SelectionAdapter() {
    public void widgetDefaultSelected(SelectionEvent e) {
      startLogin();	 //Call login dialog			

  //Close current splash screen until user double clicks the tray
  //Event loop

I want to display the splash screen when the user double clicks tray icon.

Re: Show Splash screen on double clicking System tray icon [message #1780571 is a reply to message #1777236] Wed, 24 January 2018 00:16 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 466
Registered: July 2009
Senior Member

Hi kunal,

What is your exact question. Please post a full working snippet if you want some feedback on the code. The code you posted here makes no sense in an RCP application.

Best regards,

Previous Topic:Is it possible to simultaneously launch multiple instances of an RCP with different ini file?
Next Topic:visibleWhen : test the stereotype of the selected element
Goto Forum:

Current Time: Sat Oct 16 04:04:35 GMT 2021

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

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

Back to the top