this.dataSource = dataSource;
}
@Override
public void executeAction(ListGridRecord[] selection, Object actionValue) {
final BundleWithLatestVersionComposite object = dataSource.copyValues(selection[0]);
BundleCriteria bc = new BundleCriteria();
bc.addFilterId(object.getBundleId());
BundleGWTServiceAsync bundleManager = GWTServiceLookup.getBundleService();
bundleManager.findBundlesByCriteria(bc, new AsyncCallback<PageList<Bundle>>() {
@Override
public void onFailure(Throwable caught) {
getErrorHandler().handleError(MSG.view_bundle_list_loadFailure(object.getBundleName()), caught);
}
@Override
public void onSuccess(PageList<Bundle> result) {
if (result == null || result.size() != 1) {
String message = MSG.view_bundle_list_singleLoadFailure(object.getBundleName());
getMessageCenter().notify(new Message(message, Severity.Error));
return;
}
new BundleDeployWizard(result.get(0)).startWizard();
// we can refresh the table buttons immediately since the wizard is a dialog, the