Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Workspace check
Workspace check [message #512161] Thu, 04 February 2010 04:22 Go to next message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
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 18:00 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
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 26 06:21:01 GMT 2024

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

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

Back to the top