seqCanvas.highlightSearchResults(highlight, true);
/*
- * open the Amend Features dialog; clear highlighting afterwards,
- * whether changes were made or not
+ * open the Amend Features dialog
*/
- List<SequenceI> seqs = Collections.singletonList(sequence);
- new FeatureEditor(ap).amendFeatures(seqs, features, new Runnable()
- {
- @Override
- public void run()
- {
- av.setSearchResults(null); // clear highlighting
- seqCanvas.repaint(); // draw new/amended features
- }
- });
+ new FeatureEditor(ap, Collections.singletonList(sequence), features,
+ false).showDialog();
}
}
}