Java 类org.eclipse.core.runtime.jobs.ILock 实例源码

项目:google-cloud-eclipse    文件:AppEngineStandardFacet.java   
/**
 * Obtain the project lock.
 */
private static ILock acquireLock(IProject project) throws CoreException {
  try {
    ILock lock = installationLocks.get(project);
    lock.acquire();
    return lock;
  } catch (ExecutionException ex) {
    throw new CoreException(
        StatusUtil.error(AppEngineStandardFacet.class, "Unable to acquire project lock", ex));
  }
}
项目:google-cloud-eclipse    文件:AppEngineStandardFacet.java   
@Override
public ILock load(IProject project) throws Exception {
  return Job.getJobManager().newLock();
}
项目:che    文件:WorkManager.java   
/** Returns the work manager's lock */
ILock getLock() {
  return lock;
}