|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.resources.WorkspaceLock
public class WorkspaceLock
A lock used to control write access to the resources in a workspace. Clients may subclass.
IWorkspace.setWorkspaceLock(WorkspaceLock)
Constructor Summary | |
---|---|
WorkspaceLock(IWorkspace workspace)
Deprecated. Returns a new workspace lock. |
Method Summary | |
---|---|
boolean |
acquire()
Deprecated. Attempts to acquire this lock. |
void |
release()
Deprecated. Releases this lock allowing others to acquire it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkspaceLock(IWorkspace workspace) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
- if fails.Method Detail |
---|
public boolean acquire() throws java.lang.InterruptedException
Clients may extend this method but should not otherwise call it.
java.lang.InterruptedException
- if fails while acquiring the lock.release()
public void release()
Clients may extend this method but should not otherwise call it.
acquire()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |