Skip to content
Snippets Groups Projects
Commit f76cd2d8 authored by tcarver's avatar tcarver
Browse files

changes for IndexedGFFDocumentEntry

parent b2c6bdec
Branches
Tags
No related merge requests found
......@@ -25,6 +25,7 @@
package uk.ac.sanger.artemis;
import uk.ac.sanger.artemis.io.IndexedGFFDocumentEntry;
import uk.ac.sanger.artemis.util.FastVector;
import java.util.*;
......@@ -84,6 +85,9 @@ public class FeatureVector {
* Return true if this object contains the given Feature.
**/
public boolean contains (Feature feature) {
if(feature.getEntry().getEMBLEntry() instanceof IndexedGFFDocumentEntry)
return IndexedGFFDocumentEntry.contains(feature, this);
return vector.contains (feature);
}
......
......@@ -26,6 +26,7 @@
package uk.ac.sanger.artemis;
import uk.ac.sanger.artemis.sequence.*;
import uk.ac.sanger.artemis.io.IndexedGFFDocumentEntry;
import uk.ac.sanger.artemis.io.Range;
import uk.ac.sanger.artemis.io.StreamSequence;
import uk.ac.sanger.artemis.io.SimpleDocumentEntry;
......@@ -460,7 +461,6 @@ public class SimpleEntryGroup extends EntryVector
if(index < 0)
throw new Error("internal error - index out of range: " + index);
int feature_count_of_previous_entries = 0;
final int active_entries_size = active_entries.size();
for(int entry_index = 0; entry_index < active_entries_size;
......@@ -642,6 +642,9 @@ public class SimpleEntryGroup extends EntryVector
**/
public void add(final Entry entry)
{
if(entry.getEMBLEntry() instanceof IndexedGFFDocumentEntry)
((IndexedGFFDocumentEntry)entry.getEMBLEntry()).setEntryGroup(this);
addElement(entry);
}
......@@ -871,7 +874,7 @@ public class SimpleEntryGroup extends EntryVector
targets = (Vector)listeners.clone();
}
boolean seen_chado_manager = false;
//boolean seen_chado_manager = false;
final int targets_size = targets.size();
for(int i = 0; i < targets_size; ++i)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment