JAL-3187 fix for JAL-3533 on CDS/Protein tabbed feature settings
[jalview.git] / src / jalview / gui / FeatureSettings.java
index 4b0a0bc..2fbbdf2 100644 (file)
@@ -1123,8 +1123,25 @@ public class FeatureSettings extends JPanel
     table.repaint();
   }
 
+  /**
+   * close ourselves but leave any existing UI handlers (e.g a CDS/Protein tabbed
+   * feature settings dialog) intact
+   */
+  public void closeOldSettings()
+  {
+    closeDialog(false);
+  }
+
+  /**
+   * close the feature settings dialog (and any containing frame)
+   */
   public void close()
   {
+    closeDialog(true);
+  }
+
+  private void closeDialog(boolean closeContainingFrame)
+  {
     try
     {
       if (frame != null)