Package org.rstudio.studio.client.application.events

Examples of org.rstudio.studio.client.application.events.RestartStatusEvent


                                             200,
                                             "Restarting R...").getIndicator();
                                      
      // perform the suspend and restart
      eventBus_.fireEvent(
                  new RestartStatusEvent(RestartStatusEvent.RESTART_INITIATED));
      server_.suspendForRestart(event.getSuspendOptions(),
                                new VoidServerRequestCallback(progress) {
         @Override
         protected void onSuccess()
         {
            // send pings until the server restarts
            sendPing(event.getAfterRestartCommand(), 200, 25, new Command() {

               @Override
               public void execute()
               {
                  eventBus_.fireEvent(new RestartStatusEvent(
                                    RestartStatusEvent.RESTART_COMPLETED));
                 
               }
              
            });
         }
         @Override
         protected void onFailure()
         {
            eventBus_.fireEvent(
               new RestartStatusEvent(RestartStatusEvent.RESTART_COMPLETED));
           
            setPendinqQuit(DesktopFrame.PENDING_QUIT_NONE);
         }
      });   
     
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.application.events.RestartStatusEvent

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.