Package org.rstudio.core.client.widget

Examples of org.rstudio.core.client.widget.ProgressOperation


            "Clearing the Knitr cache will discard previously cached " +
            "output and re-run all of the R code chunks within the " +
            "presentation.\n\n" +
            "Are you sure you want to clear the cache now?",
            false,
            new ProgressOperation() {

               @Override
               public void execute(final ProgressIndicator indicator)
               {
                  indicator.onProgress("Clearing Knitr Cache...");
                  server_.clearPresentationCache(
                        new ServerRequestCallback<Void>() {
                           @Override
                           public void onResponseReceived(Void response)
                           {
                              indicator.onCompleted();
                              refreshPresentation();
                           }

                           @Override
                           public void onError(ServerError error)
                           {
                              indicator.onCompleted();
                              globalDisplay_.showErrorMessage(
                                                "Error Clearing Cache",
                                                 getErrorMessage(error));
                           }
                        });
               }
              
            },
            new ProgressOperation() {

               @Override
               public void execute(ProgressIndicator indicator)
               {
                  indicator.onCompleted();
View Full Code Here


           
         "Clear Viewer",
        
         "Are you sure you want to clear all of the items in the history?",
 
         new ProgressOperation() {
            public void execute(final ProgressIndicator indicator)
            {
               indicator.onProgress("Clearing viewer...");
               stop(false, true, indicator);
            }
View Full Code Here

            GlobalDisplay.MSG_QUESTION,
            "Confirm Remove Entries",
            "Are you sure you want to remove the selected entries from " +
            "the history?",
    
            new ProgressOperation() {
               public void execute(final ProgressIndicator indicator)
               {
                  indicator.onProgress("Removing items...");
                 
                  // for each selected row index we need to calculate
View Full Code Here

      globalDisplay_.showYesNoMessage(
         GlobalDisplay.MSG_WARNING,
         "Confirm Clear History",
         "Are you sure you want to clear all history entries?",
 
         new ProgressOperation() {
            public void execute(final ProgressIndicator indicator)
            {
               indicator.onProgress("Clearing history...");
               server_.clearHistory(
                     new VoidServerRequestCallback(indicator));
View Full Code Here

           
         "Remove Plot",
        
         "Are you sure you want to remove the current plot?",
 
         new ProgressOperation() {
            public void execute(final ProgressIndicator indicator)
            {
               indicator.onProgress("Removing plot...");
               server_.removePlot(new VoidServerRequestCallback(indicator));
            }
View Full Code Here

           
         "Clear Plots",
        
         "Are you sure you want to clear all of the plots in the history?",
 
         new ProgressOperation() {
            public void execute(final ProgressIndicator indicator)
            {
               indicator.onProgress("Clearing plots...");
               server_.clearPlots(new VoidServerRequestCallback(indicator));
            }
View Full Code Here

           "Confirm Load RData",

           "Do you want to load the R data file \"" + dataFilePath + "\" " +
           "into the global environment?",

           new ProgressOperation() {
              public void execute(ProgressIndicator indicator)
              {
                 consoleDispatcher_.executeCommand(
                         "load",
                         FileSystemItem.createFile(dataFilePath));
View Full Code Here

      globalDisplay_.showYesNoMessage(
            MessageDialog.WARNING,
            "Terminate R",
            message,
            false,
            new ProgressOperation() {
               @Override
               public void execute(ProgressIndicator indicator)
               {
                  setPendinqQuit(DesktopFrame.PENDING_QUIT_RESTART_AND_RELOAD);
                       
                  // determine the next session project
                  String nextProj = pWorkbenchContext_.get()
                                                      .getActiveProjectFile();
                  if (nextProj == null)
                     nextProj = Projects.NONE;
                 
                  // force the abort
                  server_.abort(nextProj,
                                new VoidServerRequestCallback(indicator) {
                     @Override
                     protected void onSuccess()
                     {
                        if (!Desktop.isDesktop())
                           eventBus_.fireEvent(new ReloadEvent());
                     }
                     @Override
                     protected void onFailure()
                     {
                        setPendinqQuit(DesktopFrame.PENDING_QUIT_NONE);
                     }
                  });
               }
            },
            new ProgressOperation() {

               @Override
               public void execute(ProgressIndicator indicator)
               {
                  indicator.onCompleted();   
View Full Code Here

                  "R Markdown Render Completed",
                  "R Markdown has finished rendering " +
                  result.getTargetFile() + " to " +
                  result.getOutputFile() + ".",
                  false,
                  new ProgressOperation()
                  {
                     @Override
                     public void execute(ProgressIndicator indicator)
                     {
                        globalDisplay_.showWordDoc(result.getOutputFile());
View Full Code Here

TOP

Related Classes of org.rstudio.core.client.widget.ProgressOperation

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.