Examples of RefreshAssetEditorEvent


Examples of org.drools.guvnor.client.asseteditor.RefreshAssetEditorEvent

                        box.getText(),
                        new GenericCallback<java.lang.String>() {
                            public void onSuccess(String data) {
                                Window.alert( Constants.INSTANCE.ItemHasBeenRenamed() );
                                eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getModuleUUID() ) );
                                eventBus.fireEvent(new RefreshAssetEditorEvent(asset.getMetaData().getModuleName(), asset.getUuid()));
                                pop.hide();
                            }

                            @Override
                            public void onFailure(Throwable t) {
View Full Code Here

Examples of org.drools.guvnor.client.asseteditor.RefreshAssetEditorEvent

                            Window.alert( Constants.INSTANCE.Promoted() );

                            flushSuggestionCompletionCache(asset.getMetaData().getModuleName(), null);
                            flushSuggestionCompletionCache("globalArea", null);
                            eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getModuleUUID() ) );
                            eventBus.fireEvent(new RefreshAssetEditorEvent(asset.getMetaData().getModuleName(), asset.getUuid()));
                        }

                        @Override
                        public void onFailure(Throwable t) {
                            super.onFailure( t );
View Full Code Here

Examples of org.drools.guvnor.client.asseteditor.RefreshAssetEditorEvent

                                public void onClick( ClickEvent event ) {
                                    restore( (Widget) event.getSource(),
                                            versionUUID,
                                            new Command() {
                                                public void execute() {
                                                    eventBus.fireEvent( new RefreshAssetEditorEvent(uuid) );
                                                    pop.hide();
                                                }
                                            } );
                                }
                            } );
View Full Code Here

Examples of org.drools.guvnor.client.asseteditor.RefreshAssetEditorEvent

                RepositoryServiceFactory.getAssetService().changeAssetPackage(uuid,
                        sel.getSelectedPackage(),
                        constants.MovedFromPackage(pkg),
                        new GenericCallback<java.lang.Void>() {
                            public void onSuccess(Void v) {
                                eventBus.fireEvent(new RefreshAssetEditorEvent(uuid));
                                pop.hide();
                            }

                        });
View Full Code Here

Examples of org.drools.guvnor.client.ruleeditor.RefreshAssetEditorEvent

                                                              MessageType.INFO ) );

                    //Reload asset as the upload operation commits the asset's content. If we don't
                    //reload the asset we receive a optimistic lock error appearing as "Unable to save
                    //this asset, as it has been recently updated" message to users
                    eventBus.fireEvent( new RefreshAssetEditorEvent(asset.getMetaData().getPackageName(),  asset.getUuid() ) );
                } else {
                    ErrorPopup.showMessage( constants.UnableToUploadTheFile() );
                }
            }
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.