JAL-3060 more extensive extract method refactoring of FeatureEditor
[jalview.git] / src / jalview / gui / SeqPanel.java
index eff4985..875743b 100644 (file)
@@ -1676,19 +1676,10 @@ public class SeqPanel extends JPanel
         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();
       }
     }
   }