/** * 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)); } }
@Override public ILock load(IProject project) throws Exception { return Job.getJobManager().newLock(); }
/** Returns the work manager's lock */ ILock getLock() { return lock; }