|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.resources.WorkspaceLock
A lock used to control write access to the resources in a workspace. Clients may subclass.
IWorkspace.setWorkspaceLock(org.eclipse.core.resources.WorkspaceLock)
Constructor Summary | |
WorkspaceLock(IWorkspace workspace)
Returns a new workspace lock. |
Method Summary | |
boolean |
acquire()
Attempts to acquire this lock. |
protected Thread |
getCurrentOperationThread()
Returns the thread that currently owns the workspace lock. |
protected boolean |
isTreeLocked()
Returns whether the workspace tree is locked for resource changes. |
void |
release()
Releases this lock allowing others to acquire it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkspaceLock(IWorkspace workspace) throws CoreException
Method Detail |
public boolean acquire() throws InterruptedException
Clients may extend this method but should not otherwise call it.
InterruptedException
release()
protected Thread getCurrentOperationThread()
public void release()
Clients may extend this method but should not otherwise call it.
acquire()
protected boolean isTreeLocked()
true
if the tree is locked, otherwise
false
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |