One of the things I needed to support in my RCP is the ability to prevent multiple copies (instances) of the application from running at the same time.
The solution is surprisingly easy … although, as with many things, not especially well documented.
In your Application class (that implements IApplication) you need to create a lock file in the application’s instance location.
At work I’m the process of building a new GUI application using the Eclipse RCP framework.
I’ve encountered a number of stumbling blocks, frustrations, and seridipidous moments … so I decided to blog about it.
You can find the blog at http://eclipse.geekyramblings.net.