Examples of ConsoleProgressDialog


Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

                                 if (view_.getCommitIsAmend().getValue())
                                    view_.getCommitIsAmend().setValue(false);
                              }
                           }
                        });
                        new ConsoleProgressDialog(proc, server_).showModal();
                     }

                     @Override
                     public void onError(ServerError error)
                     {
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

                     });

                     // create the console progress dialog and then subscribe
                     // to its onClose event to figure out whether we need
                     // to re-appear or fully close
                     ConsoleProgressDialog dialog = new ConsoleProgressDialog(
                           cp,
                           server_);
                     dialog.addCloseHandler(new CloseHandler<PopupPanel>() {
                        @Override
                        public void onClose(CloseEvent<PopupPanel> event)
                        {
                           if (exitCode_== 0)
                              closeDialog();
                           else
                              SVNCommitDialog.this.setVisible(true);
                        }
                     });
                
                     // show the dialog
                     dialog.showModal();
                  }
               });
      }
   }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

      server_.svnUpdate(new SimpleRequestCallback<ConsoleProcess>()
         {
            @Override
            public void onResponseReceived(ConsoleProcess response)
            {
               new ConsoleProgressDialog(response, server_).showModal();
            }
         });
   }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

      server_.gitPull(new SimpleRequestCallback<ConsoleProcess>()
      {
         @Override
         public void onResponseReceived(ConsoleProcess proc)
         {
            new ConsoleProgressDialog(proc, server_).showModal();
         }
      });
   }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

      server_.gitPush(new SimpleRequestCallback<ConsoleProcess>()
      {
         @Override
         public void onResponseReceived(ConsoleProcess proc)
         {
            new ConsoleProgressDialog(proc, server_).showModal();
         }
      });
   }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

                  new SimpleRequestCallback<ConsoleProcess>()
                  {
                     @Override
                     public void onResponseReceived(ConsoleProcess proc)
                     {
                        new ConsoleProgressDialog(proc,
                                                  server).showModal();
                     }
                  });
           
         }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

                     cloneOptions,
                     new ServerRequestCallback<ConsoleProcess>() {
                        @Override
                        public void onResponseReceived(ConsoleProcess proc)
                        {
                           final ConsoleProgressDialog consoleProgressDialog =
                                 new ConsoleProgressDialog(proc, gitServer_);
                           consoleProgressDialog.showModal();
          
                           proc.addProcessExitHandler(new ProcessExitEvent.Handler()
                           {
                              @Override
                              public void onProcessExit(ProcessExitEvent event)
                              {
                                 if (event.getExitCode() == 0)
                                 {
                                    consoleProgressDialog.hide();
                                    continuation.execute();
                                 }
                                 else
                                 {
                                    indicator.onCompleted();
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

                                 }
                                 
                                 // take indicated actions
                                 if (createDialog)
                                 {
                                    ConsoleProgressDialog dlg = new ConsoleProgressDialog(
                                       proc.getCaption(),
                                       cproc,
                                       proc.getBufferedOutput(),
                                       proc.getExitCode(),
                                       cryptoServer);
                                   
                                    if (showDialog)
                                       dlg.showModal();
                                    else
                                       dlg.showOnOutput();
                                 }
                              }
                              else
                              {
                                 cproc.addProcessExitHandler(new ProcessExitEvent.Handler()
                                 {
                                    @Override
                                    public void onProcessExit(ProcessExitEvent event)
                                    {
                                       cproc.reap(new VoidServerRequestCallback());
                                    }
                                 });
                              }
                           }

                           @Override
                           public void onError(ServerError error)
                           {
                              Debug.logError(error);
                           }
                        });
               }
            }
         });
        
         eventBus_.addHandler(
               ConsoleProcessCreatedEvent.TYPE,
               new ConsoleProcessCreatedEvent.Handler()
               {
                  private boolean handleEvent(String targetWindow)
                  {
                     // calculate the current window name
                     String window = StringUtil.notNull(
                                          satellite.getSatelliteName());
                    
                     // handle it if the target is us
                     if (window.equals(targetWindow))
                        return true;
                    
                     // also handle if we are the main window and the specified
                     // satellite doesn't exist
                     if (!satellite.isCurrentWindowSatellite() &&
                         !satelliteManager.satelliteWindowExists(targetWindow))
                        return true;
                    
                     // othewise don't handle
                     else
                        return false;
                  }
                 
                 
                  @Override
                  public void onConsoleProcessCreated(
                                    ConsoleProcessCreatedEvent event)
                  {
                     if (!handleEvent(event.getTargetWindow()))
                        return;
                    
                     ConsoleProcessInfo procInfo = event.getProcessInfo();
                     ConsoleProcess proc = new ConsoleProcess(server_,
                                                              eventBus_,
                                                              procInfo);
                    
                     ConsoleProgressDialog dlg = new ConsoleProgressDialog(
                                               procInfo.getCaption(),
                                               proc,
                                               procInfo.getBufferedOutput(),
                                               procInfo.getExitCode(),
                                               cryptoServer);
                    
                     if (procInfo.getShowOnOutput())
                        dlg.showOnOutput();
                     else
                        dlg.showModal();
                  }
               });
      }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

      {
         ConsoleProcess proc = new ConsoleProcess(server_,
                                                  eventBus_,
                                                  procInfo);

         ConsoleProgressDialog dlg = new ConsoleProgressDialog(
               procInfo.getCaption(),
               proc,
               procInfo.getBufferedOutput(),
               procInfo.getExitCode(),
               cryptoServer_);

         if (procInfo.getShowOnOutput())
            dlg.showOnOutput();
         else
            dlg.showModal();
        
         return dlg;
      }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.ConsoleProgressDialog

            @Override
            public void onResponseReceived(ConsoleProcess proc)
            {
               indicator.onCompleted();
               new ConsoleProgressDialog(proc, server_).showModal();
            }
           
            @Override
            public void onError(ServerError error)
            {
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.