|How to detect a workspace being opened twice [message #651046]
||Thu, 27 January 2011 14:57
| Andy Coleman
Registered: September 2009
We have an RCP application built around eclipse 3.5. If a user tries to start a second client using the same workspace the second client seems to quietly fail to open the workspace and we end up with no open perspectives.
We would like to detect that the user has tried to run a second instance on the workspace and pop up a friendly message. How is this done?
We have tried doing the following in the application start method:
Location location = Platform.getInstanceLocation();
which seems to do what we want except we have no control over the dialog that is displayed.
Powered by FUDForum
. Page generated in 0.02263 seconds