Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Reentrancy in WorkspaceRunnable
Reentrancy in WorkspaceRunnable [message #523720] Sun, 28 March 2010 21:11
Eclipse UserFriend
Hi, I have a problem with workspace resource locks.

My plugin defines a custom classpath container. During the call to IClasspathContainer.getClasspathEntries(), I have to call some third party code which fiddles with the file system using the java.io.File API. Fortunately I know exactly which files it changes, so I would like to call IFile.refreshLocal() to make the workspace aware of those changes.

Unfortunately, the getClasspathEntries() method is called in the context of a lock on the Project. Calling refreshLocal also tries to lock the Project, but even though I am on the same thread the lock is not reentrant, so my code hangs indefinitely waiting for itself to finish!

Is there any way to perform the refresh without obtaining a new lock?

Many thanks,
Neil
Previous Topic:Dynamic web project option is not showing in File->New->other
Next Topic:How do I stop Eclipse from worrying about everything?
Goto Forum:
  


Current Time: Tue Jul 15 06:57:41 EDT 2025

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

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

Back to the top