Index: web/project/src/org/netbeans/modules/web/project/WebProjectModule.java =================================================================== RCS file: /cvs/web/project/src/org/netbeans/modules/web/project/WebProjectModule.java,v retrieving revision 1.6 diff -u -r1.6 WebProjectModule.java --- web/project/src/org/netbeans/modules/web/project/WebProjectModule.java 13 Sep 2004 09:29:15 -0000 1.6 +++ web/project/src/org/netbeans/modules/web/project/WebProjectModule.java 30 Sep 2004 11:21:48 -0000 @@ -157,7 +157,6 @@ public ActionWrapper( Action action ) { this.action = action; - this.action.addPropertyChangeListener( this ); } public String getName() { @@ -183,7 +182,17 @@ public boolean isEnabled() { return action.isEnabled(); } + + protected void addNotify() { + this.action.addPropertyChangeListener( this ); + super.addNotify(); + } + protected void removeNotify() { + this.action.removePropertyChangeListener( this ); + super.removeNotify(); + } + public void performAction() { actionPerformed( new ActionEvent( this, 0, "" ) ); // NOI18N }