Package org.drools.guvnor.client.explorer

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


                RepositoryServiceFactory.getAssetService().renameAsset( asset.getUuid(),
                        box.getText(),
                        new GenericCallback<java.lang.String>() {
                            public void onSuccess(String data) {
                                Window.alert( constants.ItemHasBeenRenamed() );
                                eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getPackageUUID() ) );
                                closeAndReopen( data );
                                pop.hide();
                            }

                            @Override
View Full Code Here


                        public void onSuccess(Void data) {
                            Window.alert( constants.Promoted() );

                            flushSuggestionCompletionCache(asset.getMetaData().getPackageName());
                            flushSuggestionCompletionCache("globalArea");
                            eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getPackageUUID() ) );
                            closeAndReopen( asset.getUuid() );
                        }

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

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

        eventBus.fireEvent(new RefreshModuleEditorEvent(asset.getMetaData().getPackageUUID()));
        lastSaved = System.currentTimeMillis();
        resetDirty();
    }
View Full Code Here

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

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

                RepositoryServiceFactory.getAssetService().renameAsset( asset.getUuid(),
                        box.getText(),
                        new GenericCallback<java.lang.String>() {
                            public void onSuccess(String data) {
                                Window.alert( constants.ItemHasBeenRenamed() );
                                eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getPackageUUID() ) );
                                eventBus.fireEvent(new RefreshAssetEditorEvent(asset.getUuid()));
                                pop.hide();
                            }

                            @Override
View Full Code Here

                        public void onSuccess(Void data) {
                            Window.alert( constants.Promoted() );

                            flushSuggestionCompletionCache(asset.getMetaData().getPackageName());
                            flushSuggestionCompletionCache("globalArea");
                            eventBus.fireEvent( new RefreshModuleEditorEvent( asset.getMetaData().getPackageUUID() ) );
                            eventBus.fireEvent(new RefreshAssetEditorEvent(asset.getUuid()));
                        }

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

            public void onSubmitComplete(SubmitCompleteEvent event) {
                LoadingPopup.close();

                if (asset.getFormat().equals(AssetFormats.MODEL)) {
                    eventBus.fireEvent(new RefreshModuleEditorEvent(asset.getUuid()));
                }

                if (event.getResults().indexOf("OK") > -1) {
                    viewer.showInfoMessage(constants.FileWasUploadedSuccessfully());
                } else {
View Full Code Here

    performCheckIn(comment, closeAfter, asset);
    if (editor instanceof SaveEventListener) {
      ((SaveEventListener) editor).onAfterSave();
    }

    eventBus.fireEvent(new RefreshModuleEditorEvent(asset.getMetaData()
        .getPackageUUID()));
    // lastSaved = System.currentTimeMillis();
    // resetDirty();
  }
View Full Code Here

            public void onSubmitComplete(SubmitCompleteEvent event) {
                LoadingPopup.close();

                if (asset.getFormat().equals(AssetFormats.MODEL)) {
                    eventBus.fireEvent(new RefreshModuleEditorEvent(asset.getUuid()));
                }

                if (event.getResults().indexOf("OK") > -1) {
                    viewer.showInfoMessage(constants.FileWasUploadedSuccessfully());
                } else {
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.explorer.RefreshModuleEditorEvent

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.