*/
public void execute() {
if ( this.toMove ) {
if ( this.okButtonListener == null ) {
MailFolderWindow dialog = WindowRegistry.MOVE_MESSAGES_WINDOW.get( MailFolderWindow.class );
this.okButtonListener = new OKButtonListener( dialog );
dialog.addOKButtonListener( this.okButtonListener );
}
WindowRegistry.MOVE_MESSAGES_WINDOW.open();
}
else {
if ( this.okButtonListener == null ) {
MailFolderWindow dialog = WindowRegistry.COPY_MESSAGES_WINDOW.get( MailFolderWindow.class );
this.okButtonListener = new OKButtonListener( dialog );
dialog.addOKButtonListener( this.okButtonListener );
}
WindowRegistry.COPY_MESSAGES_WINDOW.open();
}
}