Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Workspace check
Workspace check [message #512161] Wed, 03 February 2010 23:22 Go to next message
Dirk Hoffmann is currently offline Dirk Hoffmann
Messages: 163
Registered: July 2009
Senior Member
Hi,

you all know that "Workspace cannot be locked" message appearing if you
attempt to start Eclipse twice with the same workspace.

Astonishingly I didn't notice this behaviour with my brand new RCP-based
product. I found out that the check is implemented by a set of !private!
methods in IDEApplication. checkInstanceLocation() is the method at the
top of them.

So the questions are:

Do I really need to protect the workspace?

If yes, is it the right way to just copy&paste the private methods from
IDEApplication to my own application class or is there a cleaner way?

Thanks and regards,
Dirk
Re: Workspace check [message #518384 is a reply to message #512161] Wed, 03 March 2010 13:00 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Dirk,

Do you need to protect the workspace?

--

Best Regards,
Wim Jongman
-- Smash forehead on keyboard to continue.....
(Eclipse Old Skool Quote Service)
> Hi,
>
> you all know that "Workspace cannot be locked" message appearing if you
> attempt to start Eclipse twice with the same workspace.
>
> Astonishingly I didn't notice this behaviour with my brand new RCP-based
> product. I found out that the check is implemented by a set of !private!
> methods in IDEApplication. checkInstanceLocation() is the method at the
> top of them.
>
> So the questions are:
>
> Do I really need to protect the workspace?
>
> If yes, is it the right way to just copy&paste the private methods from
> IDEApplication to my own application class or is there a cleaner way?
>
> Thanks and regards,
> Dirk
Previous Topic:Context menu for a MultipageEditorPart
Next Topic:Getting Tab File Location
Goto Forum:
  


Current Time: Fri Apr 18 19:20:53 EDT 2014

Powered by FUDForum. Page generated in 0.14077 seconds