Examples of RefreshModuleEditorEvent


Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

            public void onSuccess(String uuid) {
                LoadingPopup.close();
                if ( uuid.startsWith( "DUPLICATE" ) ) { // NON-NLS
                    Window.alert( Constants.INSTANCE.AssetNameAlreadyExistsPickAnother() );
                } else {
                    eventBus.fireEvent( new RefreshModuleEditorEvent( packageSelector.getSelectedPackageUUID() ) );
                    openEditor( uuid );
                    hide();
                }
            }
        };
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

            public void onSuccess(String uuid) {
                if ( uuid.startsWith( "DUPLICATE" ) ) { // NON-NLS
                    LoadingPopup.close();
                    Window.alert( Constants.INSTANCE.AssetNameAlreadyExistsPickAnother() );
                } else {
                    eventBus.fireEvent( new RefreshModuleEditorEvent( importedPackageSelector.getSelectedPackageUUID() ) );
                    flushSuggestionCompletionCache();
                    openEditor( uuid );
                    hide();
                }
            }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

    //Handle post-conversion operations.
    private void postConversion(final ConversionResult result) {
        LoadingPopup.close();

        //Refresh the Module editor to show new assets
        eventBus.fireEvent( new RefreshModuleEditorEvent( asset.metaData.moduleUUID ) );

        if ( result.getMessages().size() > 0 ) {

            //Show messages to user
            PopupListWidget popup = new PopupListWidget( 600,
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

        readOnly = true; // set to not cause the extra confirm popup
        RepositoryServiceAsync repositoryService = GWT.create(RepositoryService.class);
        repositoryService.deleteUncheckedRule( this.asset.getUuid(),
                new GenericCallback<Void>() {
                    public void onSuccess(Void o) {
                        eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getModuleUUID() ) );
                        close();
                    }
                } );
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

    private void doArchive() {
        assetService.archiveAsset( asset.getUuid(),
                new GenericCallback<Void>() {
                    public void onSuccess(Void o) {
                        eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getModuleUUID() ) );
                        close();
                    }
                } );
    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

                        if ( editor instanceof SaveEventListener ) {
                            ((SaveEventListener) editor).onAfterSave();
                        }

                        eventBus.fireEvent(new RefreshModuleEditorEvent(asset.getMetaData().getModuleUUID()));

                        if ( afterCheckinEvent != null ) {
                            afterCheckinEvent.execute();
                        }
                    }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

                assetService.copyAsset( asset.getUuid(),
                        sel.getSelectedPackage(),
                        name,
                        new GenericCallback<String>() {
                            public void onSuccess(String data) {
                                eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getModuleUUID() ) );
                                flushSuggestionCompletionCache(sel.getSelectedPackage(), null);
                                completedCopying( newName.getText(),
                                        sel.getSelectedPackage(),
                                        data );
                                form.hide();
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

                assetService.renameAsset( asset.getUuid(),
                        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
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

                        public void onSuccess(Void data) {
                            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) {
View Full Code Here

Examples of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

            public void onSuccess(String uuid) {
                LoadingPopup.close();
                if ( uuid.startsWith( "DUPLICATE" ) ) { // NON-NLS
                    Window.alert( constants.AssetNameAlreadyExistsPickAnother() );
                } else {
                    eventBus.fireEvent( new RefreshModuleEditorEvent( packageSelector.getSelectedPackageUUID() ) );
                    openEditor( uuid );
                    hide();
                }
            }
        };
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.