From 125a33430b29fd5885e87777f8b03d9d0d156c80 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 23 Aug 2005 16:06:20 +0000 Subject: [PATCH] Dont make new frame reference in Buildwebservicemenu --- src/jalview/gui/AlignFrame.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index c1d383e..541c9e1 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -97,11 +97,9 @@ public class AlignFrame /* Set up intrinsic listeners for dynamically generated GUI bits. */ private void addServiceListeners() { - - final AlignFrame thisFrame = this; final java.beans.PropertyChangeListener thisListener; // Do this once to get current state - thisFrame.BuildWebServiceMenu(); + BuildWebServiceMenu(); Desktop.discoverer.addPropertyChangeListener( thisListener = new java.beans.PropertyChangeListener() { @@ -111,7 +109,7 @@ public class AlignFrame if (evt.getPropertyName().equals("services")) { // System.out.println("Rebuilding web service menu"); - thisFrame.BuildWebServiceMenu(); + BuildWebServiceMenu(); } } }); @@ -123,6 +121,7 @@ public class AlignFrame { // System.out.println("deregistering discoverer listener"); Desktop.discoverer.removePropertyChangeListener(thisListener); + closeMenuItem_actionPerformed(null); } ; }); @@ -348,6 +347,7 @@ public class AlignFrame { try { + PaintRefresher.components.remove(viewport.alignment); this.setClosed(true); } catch (Exception ex) -- 1.7.10.2