Package org.drools.guvnor.client.rpc

Examples of org.drools.guvnor.client.rpc.AssetServiceAsync.loadRuleAsset()


    public void onRefreshAsset(RefreshAssetEditorEvent refreshAssetEditorEvent) {
        //AssetUUID == null means to refresh all asset editors contained by the specified module.
        if ((refreshAssetEditorEvent.getAssetUUID() == null && asset.getMetaData().getModuleName().equals(refreshAssetEditorEvent.getModuleName())) || asset.getUuid().equals( refreshAssetEditorEvent.getAssetUUID() ) ) {
            LoadingPopup.showMessage( constants.RefreshingItem() );
            AssetServiceAsync assetService = GWT.create(AssetService.class);
            assetService.loadRuleAsset( asset.getUuid(),
                                                                      new GenericCallback<Asset>() {
                                                                          public void onSuccess(Asset a) {
                                                                              asset = a;
                                                                              render();
                                                                              LoadingPopup.close();
View Full Code Here


                                addRuleViewInToSimplePanel(row,
                                        content,
                                        assets.get(row.getUuid()));
                            } else {
                                AssetServiceAsync assetService = GWT.create(AssetService.class);
                                assetService.loadRuleAsset(row.getUuid(),
                                        new GenericCallback<Asset>() {

                                            public void onSuccess(final Asset asset) {
                                                assets.put(asset.getUuid(),
                                                        asset);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.