ErrorPopup.showMessage("Error listing snapshots information!");
}
public void onSuccess(SnapshotInfo[] result) {
for (int j = 0; j < result.length; j++) {
final SnapshotInfo snapshotInfo = result[j];
RepositoryServiceFactory.getPackageService().loadModule(snapshotInfo.getUuid(),
new AsyncCallback<Module>() {
public void onFailure(Throwable caught) {
ErrorPopup.showMessage("Error listing snapshots information!");
}
public void onSuccess(Module result) {
packageItem.addItem(createTreeItem(snapshotInfo.getName(), packageConfigData.getName(), PackageBuilderWidget.getDownloadLink(result)));
}
});
}
}