};
this.newRepoCommand = new Command() {
@Override
public void execute() {
final CreateRepositoryForm newRepositoryWizard = iocManager.lookupBean( CreateRepositoryForm.class ).getInstance();
//When pop-up is closed destroy bean to avoid memory leak
newRepositoryWizard.addCloseHandler( new CloseHandler<CreateRepositoryForm>() {
@Override
public void onClose( CloseEvent<CreateRepositoryForm> event ) {
iocManager.destroyBean( newRepositoryWizard );
}
} );
newRepositoryWizard.show();
}
};
}