/*\r
* Jalview - A Sequence Alignment Editor and Viewer\r
-* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
*\r
* This program is free software; you can redistribute it and/or\r
* modify it under the terms of the GNU General Public License\r
\r
import java.awt.*;\r
import java.awt.event.*;\r
+import jalview.appletgui.FeatureSettings;\r
\r
\r
/**\r
\r
//The currentAlignFrame is static, it will change\r
//if and when the user selects a new window\r
- static AlignFrame currentAlignFrame;\r
+ public static AlignFrame currentAlignFrame;\r
\r
//This is the first frame to be displayed, and does not change\r
AlignFrame initialAlignFrame;\r
{\r
public void windowClosing(WindowEvent e)\r
{\r
+ if(frame instanceof AlignFrame)\r
+ ((AlignFrame)frame).closeMenuItem_actionPerformed();\r
if(currentAlignFrame == frame)\r
{\r
currentAlignFrame = null;\r
if(param !=null && param.equalsIgnoreCase("true"))\r
{\r
currentAlignFrame.viewport.showSequenceFeatures(true);\r
- currentAlignFrame.featureSettings_actionPerformed();\r
+ new FeatureSettings(currentAlignFrame.alignPanel);\r
}\r
\r
param = getParameter("annotations");\r