Package org.drools.guvnor.client.asseteditor

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


                                public void onClick( ClickEvent event ) {
                                    restore( (Widget) event.getSource(),
                                            versionUUID,
                                            new Command() {
                                                public void execute() {
                                                    eventBus.fireEvent( new RefreshAssetEditorEvent(uuid) );
                                                    //fire after check-in event
                                                    eventBus.fireEvent(new AfterAssetEditorCheckInEvent(uuid, null));
                                                    pop.hide();
                                                }
                                            } );
View Full Code Here

                                public void onClick( ClickEvent event ) {
                                    restore( (Widget) event.getSource(),
                                            versionUUID,
                                            new Command() {
                                                public void execute() {
                                                    eventBus.fireEvent( new RefreshAssetEditorEvent(asset.getMetaData().getModuleName(), uuid) );
                                                    //fire after check-in event
                                                    eventBus.fireEvent(new AfterAssetEditorCheckInEvent(uuid, null));
                                                    pop.hide();
                                                }
                                            } );
View Full Code Here

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

                        });
View Full Code Here

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

                        });
View Full Code Here

                                public void onClick( ClickEvent event ) {
                                    restore( (Widget) event.getSource(),
                                            versionUUID,
                                            new Command() {
                                                public void execute() {
                                                    eventBus.fireEvent( new RefreshAssetEditorEvent(asset.getMetaData().getModuleName(), uuid) );
                                                    //fire after check-in event
                                                    eventBus.fireEvent(new AfterAssetEditorCheckInEvent(uuid, null));
                                                    pop.hide();
                                                }
                                            } );
View Full Code Here

                        public void execute() {
                            //Some assets depend on the SuggestionCompletionEngine. This event is to notify them that the
                            //SuggestionCompletionEngine has been changed, they need to refresh their UI to represent the changes.
                           
                            //set assetUUID to null means to refresh all asset editors contained by the specified package.
                            eventBus.fireEvent(new RefreshAssetEditorEvent(moduleName, null));
                            LoadingPopup.close();
                        }
                    } );
        } else {
            //No need to refresh other asset editors, refresh the current asset editor only.
            eventBus.fireEvent( new RefreshAssetEditorEvent(moduleName, uuid));
        }
    }
View Full Code Here

                        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

                            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

                        public void execute() {
                            //Some assets depend on the SuggestionCompletionEngine. This event is to notify them that the
                            //SuggestionCompletionEngine has been changed, they need to refresh their UI to represent the changes.
                           
                            //set assetUUID to null means to refresh all asset editors contained by the specified package.
                            eventBus.fireEvent(new RefreshAssetEditorEvent(moduleName, null));
                            LoadingPopup.close();
                        }
                    } );
        } else {
            //No need to refresh other asset editors, refresh the current asset editor only.
            eventBus.fireEvent( new RefreshAssetEditorEvent(moduleName, uuid));
        }
    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.asseteditor.RefreshAssetEditorEvent

Copyright © 2018 www.massapicom. 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.