}
}
@UiHandler("btnAssetResource")
public void addNewAssetResource(final ClickEvent e) {
final AssetResourceExplorerWidget widget = new AssetResourceExplorerWidget(assetPackageUUID,
assetPackageName, clientFactory,
SERVICE_CONFIG_RESOURCE,
HIDE_NAME_AND_DESCRIPTION,
ALL_PACKAGES);
final InternalPopup popup = new InternalPopup(widget.asWidget(), Constants.INSTANCE.AddNewAsset());
popup.addOkButtonClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
try {
widget.processSelectedResources(new ResourceElementReadyCommand() {
public void onSuccess(String packageRef, Asset[] result, String name, String description) {
for (final Asset asset : result) {
final AssetReference reference = new AssetReference(packageRef,
asset.getName(),