diff --git a/uk/ac/sanger/artemis/components/ValidateViewer.java b/uk/ac/sanger/artemis/components/ValidateViewer.java index b6dc142d6cb651ae72848c833ab3c7644bf175ea..96906e1e8a2d1a9365a6ff690bc9f96e7fa7c9c7 100644 --- a/uk/ac/sanger/artemis/components/ValidateViewer.java +++ b/uk/ac/sanger/artemis/components/ValidateViewer.java @@ -57,29 +57,18 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen private FeatureVector selectedFeatures; private JCheckBox showFailedFeatures = new JCheckBox("Show only failed features", true); private boolean inAutoFix = false; - private String seqName; - public ValidateViewer(final EntryGroup entryGrp, - final FeatureVector selectedFeatures) - { - this(entryGrp, selectedFeatures, null); - } - /** * Viewer to display validation results * @param entryGrp * @param features */ public ValidateViewer(final EntryGroup entryGrp, - final FeatureVector selectedFeatures, - final String seqName) + final FeatureVector selectedFeatures) { - super("Validation Report :: "+ (seqName!=null? seqName:""), false, false, true); + super("Validation Report :: ", false, false, true); this.entryGrp = entryGrp; this.selectedFeatures = selectedFeatures; - this.seqName = seqName; - - //final boolean allFeatures = (selectedFeatures == null); update(); setVisible(true); @@ -219,9 +208,7 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen this, showFailedFeatures.isSelected())) nfail++; - setTitle("Validation Report :: "+ - (seqName!=null&&!seqName.equals("")? - seqName+" :: " : "")+features.size()+ + setTitle("Validation Report :: "+ features.size()+ " feature(s) Pass: "+(features.size()-nfail)+" Failed: "+nfail); } @@ -264,7 +251,6 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen if(gene != null && !gene.getGene().isReadOnly() && GeneUtils.isBoundaryOK(gene) > 0) { //updatedFeatures.add(feature); - GeneUtils.checkGeneBoundary(gene, false); } } @@ -274,4 +260,4 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen entryGrp.removeEntryGroupChangeListener(ValidateViewer.this); dispose(); } -} \ No newline at end of file +}