Package org.rstudio.core.client.widget

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


      context_.messageDisplay().showYesNoMessage(
            MessageDisplay.MSG_WARNING,
            "Confirm Overwrite",
            "This file already exists. Do you want to replace it?",
            false,
            new Operation()
            {
               public void execute()
               {
                  accept();
               }
View Full Code Here


   }
  
   @Override
   public void onRenderRmd(final RenderRmdEvent event)
   {
      final Operation renderOperation = new Operation() {
         @Override
         public void execute()
         {
            server_.renderRmd(event.getSourceFile(),
                              event.getSourceLine(),
View Full Code Here

   }
  
   @Override
   public void onRenderRmdSource(final RenderRmdSourceEvent event)
   {
      performRenderOperation(new Operation() {
         @Override
         public void execute()
         {
            server_.renderRmdSource(event.getSource(),
                                    new SimpleRequestCallback<Boolean>());
View Full Code Here

      globalDisplay_.showYesNoMessage(
            MessageDialog.QUESTION,
            "Clear All Breakpoints",
            "Are you sure you want to remove all the breakpoints in this " +
            "project?",
            new Operation() {
               @Override
               public void execute()
               {
                  clearAllBreakpoints();
               }
View Full Code Here

   {
      display_.showYesNoMessage(GlobalDisplay.MSG_QUESTION,
            "Confirm Terminate Application",
            "Terminate the application '" + target.getName() + "' running " +
            "at " + target.getUrl() + "?",
            new Operation() {
               @Override
               public void execute()
               {
                  terminateShinyApp(accountName, target.getName());
               }
View Full Code Here

        "publicly visible.</strong> You should " +
        "only publish documents that you wish to share publicly.");
      warningLabel.addStyleName(styles.warningLabel());
      verticalPanel.add(warningLabel);
       
      ThemedButton cancelButton = createCancelButton(new Operation() {
         @Override
         public void execute()
         {
            // if an upload is in progress then terminate it
            if (uploadInProgress_)
View Full Code Here

                     !template.getPath().equals(
                           discovery_.getRmdPreferredTemplatePath()));
               templates_.add(template);
            }
         },
         new Operation()
         {
            @Override
            public void execute()
            {
               state_ = STATE_POPULATED;
View Full Code Here

         frame_ = event.getFrame();
         if (params.isShinyDocument())
         {
            shinyFrame_.initialize(
               StringUtil.makeAbsoluteUrl(params.getOutputUrl()),
               new Operation() {
                  @Override
                  public void execute()
                  {
                     shinyFrame_.setScrollPosition(
                           params.getScrollPosition());
View Full Code Here

                  "You changed the global option for " + valueName  + " to " +
                  pref.getGlobalValue() + ", however the current project is " +
                  "still configured to use " + pref.getValue() + ".\n\n" +
                  "Do you want to edit the options for the current " +
                  "project as well?",
                  new Operation() {
                     @Override
                     public void execute()
                     {
                        commands_.projectSweaveOptions().execute();
                     }
View Full Code Here

         final OperationWithInput<Result> saveOperation,
         final Command onCancelled)
   {
      super(title,
            saveOperation,
            onCancelled != null ? new Operation() {
                                    @Override
                                    public void execute()
                                    {
                                       onCancelled.execute();
                                    }} :
View Full Code Here

TOP

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

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.