Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWorkspace check
https://www.eclipse.org/forums/index.php/mv/msg/162007/512161/#msg_512161
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]]>Dirk Hoffmann2010-02-04T04:22:12-00:00Re: Workspace check
https://www.eclipse.org/forums/index.php/mv/msg/162007/518384/#msg_518384
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]]>Wim Jongman2010-03-03T18:00:11-00:00