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
- if fails.public boolean acquire() throws InterruptedException
Clients may extend this method but should not otherwise call it.
InterruptedException
- if fails while acquiring the lock.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
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.