org.eclipse.core.resources
Class WorkspaceLock

java.lang.Object
  extended by org.eclipse.core.resources.WorkspaceLock

Deprecated. it is no longer possible to override the workspace lock behavior. This functionality is now provided in the platform API by implementing the org.eclipse.core.runtime.jobs.ILockListener interface.

public class WorkspaceLock
extends java.lang.Object

A lock used to control write access to the resources in a workspace. Clients may subclass.

See Also:
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

WorkspaceLock

public WorkspaceLock(IWorkspace workspace)
              throws org.eclipse.core.runtime.CoreException
Deprecated. 
Returns a new workspace lock.

Throws:
org.eclipse.core.runtime.CoreException - if fails.
Method Detail

acquire

public boolean acquire()
                throws java.lang.InterruptedException
Deprecated. 
Attempts to acquire this lock. Callers will block indefinitely until this lock comes available to them.

Clients may extend this method but should not otherwise call it.

Throws:
java.lang.InterruptedException - if fails while acquiring the lock.
See Also:
release()

release

public void release()
Deprecated. 
Releases this lock allowing others to acquire it.

Clients may extend this method but should not otherwise call it.

See Also:
acquire()