public class WorkspaceLock extends Object
Constructor and Description |
---|
WorkspaceLock(IWorkspace workspace)
Deprecated.
Returns a new workspace lock.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acquire()
Deprecated.
Attempts to acquire this lock.
|
protected Thread |
getCurrentOperationThread()
Deprecated.
Returns the thread that currently owns the workspace lock.
|
protected boolean |
isTreeLocked()
Deprecated.
Returns whether the workspace tree is locked
for resource changes.
|
void |
release()
Deprecated.
Releases this lock allowing others to acquire it.
|
public WorkspaceLock(IWorkspace workspace) throws CoreException
CoreException
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
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.