return new ClosePlaceEvent( new SnapshotPlace( moduleName, snapInfo.getName() ) );
}
private Button getCopyButton(final String snapshotName,
final String packageName) {
final PackageServiceAsync serv = RepositoryServiceFactory.getPackageService();
Button btn = new Button( constants.Copy() );
btn.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
serv.listSnapshots( packageName,
createGenericCallback( snapshotName,
packageName,
serv ) );
}
} );