Package org.rstudio.studio.client.common.rpubs

Examples of org.rstudio.studio.client.common.rpubs.RPubsHtmlGenerator


         public void execute()
         {
            RPubsUploadDialog dlg = new RPubsUploadDialog(
               "Viewer",
               "",
               new RPubsHtmlGenerator() {

                  @Override
                  public void generateRPubsHtml(
                        String title,
                        String comment,
View Full Code Here


            
             // show the dialog
             RPubsUploadDialog dlg = new RPubsUploadDialog(
                "Plots",
                "",
                new RPubsHtmlGenerator() {

                   @Override
                   public void generateRPubsHtml(
                         String title,
                         String comment,
View Full Code Here

         }
      }));
     
      // synthesize html generator if necessary
      RPubsHtmlGenerator htmlGenerator = htmlGenerator_;
      if (htmlGenerator == null)
      {
         htmlGenerator = new RPubsHtmlGenerator() {

            @Override
            public void generateRPubsHtml(String title,
                                          String comment,
                                          CommandWithArg<String> onCompleted)
            {
               onCompleted.execute(htmlFile_);
            }
         };
      }
     
      // generate html and initiate the upload
      final String title = getTitleText();
      htmlGenerator.generateRPubsHtml(
          title, getCommentText(), new CommandWithArg<String>() {

         @Override
         public void execute(String htmlFile)
         {
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.common.rpubs.RPubsHtmlGenerator

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.