Examples of RmdChosenTemplate


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

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

      state_ = STATE_POPULATING;
   }
  
   public RmdChosenTemplate getChosenTemplate()
   {
      return new RmdChosenTemplate(getSelectedTemplatePath(),
                                   getFileName(),
                                   getDirectory(),
                                   createDirectory());
   }
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.