Package org.rstudio.studio.client.common.filetypes

Examples of org.rstudio.studio.client.common.filetypes.FileType


      fileIcon_.setResource(fileTypeRegistry.getIconForFile(fsItem));
    
      headerLabel_.setText(filename1);
    
      // if the file is text file then show a view link for it
      FileType fileType = fileTypeRegistry.getTypeForFile(fsItem);
      boolean showLink = !suppressViewLink
                         && fileType != null
                         && fileType instanceof TextFileType;
      if (showLink)
      {
View Full Code Here


  
   private boolean isMarkdownFile(String file)
   {
      FileSystemItem fsi = FileSystemItem.createFile(file);
      FileTypeRegistry ftReg = RStudioGinjector.INSTANCE.getFileTypeRegistry();
      FileType fileType = ftReg.getTypeForFile(fsi);
      return (fileType != null) &&
             (fileType.equals(FileTypeRegistry.MARKDOWN) ||
              fileType.equals(FileTypeRegistry.RMARKDOWN));
   }
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.common.filetypes.FileType

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.