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

validation function fixes

parent 3a3482c2
Branches
Tags
No related merge requests found
......@@ -224,7 +224,8 @@ public class DatabaseJPanel extends JPanel
(DatabaseTreeNode)path.getLastPathComponent();
final String userName = doc.getUserName();
String id = node.getFeatureId();
final FileViewer fv = new FileViewer((String) node.getUserObject(), false, false, true);
final FileViewer fv = new FileViewer(
(String) node.getUserObject(), false, false, true);
int nfail = 0;
if(id != null)
......@@ -236,7 +237,7 @@ public class DatabaseJPanel extends JPanel
for(int i=0; i<node.getChildCount(); i++)
{
DatabaseTreeNode child = (DatabaseTreeNode)node.getChildAt(i);
id = node.getFeatureId();
id = child.getFeatureId();
if(id == null)
{
......@@ -249,7 +250,7 @@ public class DatabaseJPanel extends JPanel
}
}
else
nfail = openValidatePanel(fv, entrySrc, id, userName, node, nfail);
nfail = openValidatePanel(fv, entrySrc, id, userName, child, nfail);
}
}
......@@ -281,6 +282,13 @@ public class DatabaseJPanel extends JPanel
{
try
{
stream_progress_listener.progressMade("Validating... "+(String)node.getUserObject());
boolean isMitochondrial = false;
if(((String)node.getPreviousNode().getUserObject()).startsWith("mitochondrial_"))
isMitochondrial = true;
DatabaseTreeNode.setOrganismProps(
node.getOrganism().getOrganismProps(), isMitochondrial);
final Entry entry = entrySrc.getEntry(srcFeatureId, userName,
stream_progress_listener, null);
((DatabaseDocumentEntry)entry.getEMBLEntry()).setReadOnly(true);
......@@ -290,7 +298,6 @@ public class DatabaseJPanel extends JPanel
final ValidateFeature gffTest = new ValidateFeature(entryGrp);
uk.ac.sanger.artemis.io.FeatureVector features = entry.getEMBLEntry().getAllFeatures();
for(int i=0; i<features.size(); i++)
{
if(!gffTest.featureValidate(features.featureAt(i),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment