message = Constants.INSTANCE.ConfirmModuleDeletion( moduleRow.getName() );
} else if ( model.isOrphanProjects() ) {
message = Constants.INSTANCE.ConfirmProjectDeletion( moduleRow.getName() );
}
YesNoCancelPopup yesNoCancelPopup = YesNoCancelPopup.newYesNoCancelPopup( CommonConstants.INSTANCE.Information(),
message,
new Command() {
@Override
public void execute() {
deleteSelectedModule( project );
}
},
CommonConstants.INSTANCE.YES(),
ButtonType.DANGER,
IconType.MINUS_SIGN,
new Command() {
@Override public void execute() {
//do nothing
}
},
null,
ButtonType.DEFAULT,
null,
new Command() {
@Override public void execute() {
//do nothing.
}
},
null,
ButtonType.DEFAULT,
null
);
yesNoCancelPopup.setCloseVisible( false );
yesNoCancelPopup.show();
}
}