|
Eclipse Platform Release 3.2 |
|||||||||
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. |
protected java.lang.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. |
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
CoreException
Method Detail |
---|
public boolean acquire() throws java.lang.InterruptedException
Clients may extend this method but should not otherwise call it.
java.lang.InterruptedException
release()
protected java.lang.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 Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.