python dude
python dude

Reputation: 8358

SWT on Mac OS X: Make program reappear when user clicks on dock icon

I have an SWT application running on Mac OS X. When the user clicks on the 'close' button of the shell, I ignore the close request and just hide the shell by calling Shell.setVisible(false).

Now, how do I make my program reappear when the user clicks on the dock icon? I've tried attaching various listeners to the shell, to no avail. Couldn't find anything helpful via Google either. Thanks in advance.

Upvotes: 3

Views: 275

Answers (1)

Spyder
Spyder

Reputation: 1902

Courtesy of one of the SmartGit developers (it's this message, but you need to join the group to see it) - they've logged a bug about this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=358376

Upvotes: 1

Related Questions