git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9462b7
)
Add check if sequence already exists
author
amwaterhouse
<Andrew Waterhouse>
Fri, 24 Mar 2006 15:31:42 +0000
(15:31 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 24 Mar 2006 15:31:42 +0000
(15:31 +0000)
src/jalview/datamodel/Sequence.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Sequence.java
b/src/jalview/datamodel/Sequence.java
index
87a9306
..
f593226
100755
(executable)
--- a/
src/jalview/datamodel/Sequence.java
+++ b/
src/jalview/datamodel/Sequence.java
@@
-153,6
+153,14
@@
public class Sequence implements SequenceI
sequenceFeatures = new SequenceFeature[0];
\r
}
\r
\r
+ for(int i=0; i<sequenceFeatures.length; i++)
\r
+ {
\r
+ if(sequenceFeatures[i].equals(sf))
\r
+ {
\r
+ return;
\r
+ }
\r
+ }
\r
+
\r
SequenceFeature [] temp = new SequenceFeature[sequenceFeatures.length+1];
\r
System.arraycopy(sequenceFeatures, 0, temp, 0, sequenceFeatures.length);
\r
temp[sequenceFeatures.length] = sf;
\r