Package org.rstudio.core.client.Barrier

Examples of org.rstudio.core.client.Barrier.Token.release()


      {
         eventBus_.fireEvent(new LastChanceSaveEvent(barrier));
      }
      finally
      {
         token.release();
     
   }
  
  
   private void init(PresentationState state)
View Full Code Here


                     }
                    
                     public void clearProgress()
                     {
                        // alternate way to signal completion. safe to quit
                        token.release();
                     }

                     public void onCompleted()
                     {
                        // We saved successfully. We're safe to quit now.
View Full Code Here

                     }

                     public void onCompleted()
                     {
                        // We saved successfully. We're safe to quit now.
                        token.release();
                     }

                     public void onError(String message)
                     {
                        // The save didn't succeed. Oh well. Nothing we can
View Full Code Here

                     public void onError(String message)
                     {
                        // The save didn't succeed. Oh well. Nothing we can
                        // do but quit.
                        token.release();
                     }
                  });

                  if (!saving)
                  {
View Full Code Here

                  if (!saving)
                  {
                     // No save was performed (not needed). We're safe to quit
                     // now, no need to wait for server requests to complete.
                     token.release();
                  }
               }
            });
   }
View Full Code Here

      {
         events_.fireEvent(new LastChanceSaveEvent(barrier));
      }
      finally
      {
         token.release();
      }
   }
  
   @Handler
   public void onShowToolbar()
View Full Code Here

         {
            eventBus_.fireEvent(new LastChanceSaveEvent(barrier));
         }
         finally
         {
            token.release();
         }
      }

      private final boolean saveChanges_;
      private final String switchToProject_;
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.