new method to test if a particular file is or is related to the target of a lock
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / NativeLock.java
index f980f45..ccaa407 100644 (file)
@@ -172,4 +172,10 @@ public class NativeLock extends Lock {
     return null;
   }
 
+  public boolean isTargetLockFile(File afile) {
+    if (isLocked() && target.equals(afile))
+      return true;
+    return false;
+  }
+
 }