Package org.rstudio.studio.client.rmarkdown.model

Examples of org.rstudio.studio.client.rmarkdown.model.RmdChosenTemplate


      );
   }
  
   private void newDocFromRmdTemplate(final NewRMarkdownDialog.Result result)
   {
      final RmdChosenTemplate template = result.getFromTemplate();
      if (template.createDir())
      {
         rmarkdown_.createDraftFromTemplate(template);
         return;
      }

      rmarkdown_.getTemplateContent(template,
         new OperationWithInput<String>() {
            @Override
            public void execute(final String content)
            {
               if (content.length() == 0)
                  globalDisplay_.showErrorMessage("Template Content Missing",
                        "The template at " + template.getTemplatePath() +
                        " is missing.");
               newDoc(FileTypeRegistry.RMARKDOWN, content, null);
            }
      });
   }
View Full Code Here


      state_ = STATE_POPULATING;
   }
  
   public RmdChosenTemplate getChosenTemplate()
   {
      return new RmdChosenTemplate(getSelectedTemplatePath(),
                                   getFileName(),
                                   getDirectory(),
                                   createDirectory());
   }
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.rmarkdown.model.RmdChosenTemplate

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.