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