git://source.jalview.org
/
vamsas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/src/uk/ac/vamsas/client/simpleclient/NativeLock.java
b/src/uk/ac/vamsas/client/simpleclient/NativeLock.java
index
f980f45
..
ccaa407
100644
(file)
--- a/
src/uk/ac/vamsas/client/simpleclient/NativeLock.java
+++ b/
src/uk/ac/vamsas/client/simpleclient/NativeLock.java
@@
-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;
+ }
+
}