Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to detect a workspace being opened twice(How to detect a workspace being opened twice)
How to detect a workspace being opened twice [message #651046] Thu, 27 January 2011 09:57
Eclipse UserFriend
Hi,

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();
location.lock();

which seems to do what we want except we have no control over the dialog that is displayed.

Thanks
Andy
Previous Topic:Testing RCP applications
Next Topic:Building RCP application bundle jdk instead of jre
Goto Forum:
  


Current Time: Thu Jul 10 08:16:28 EDT 2025

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

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

Back to the top