Package com.intellij.openapi.fileTypes.ex

Examples of com.intellij.openapi.fileTypes.ex.FileTypeManagerEx


  }

  private static void associateFileTypeAndNavigate(Project project, VirtualFile virtualFile) {
    String extension = virtualFile.getExtension();
    FileTypeManagerEx fileTypeManagerEx = FileTypeManagerEx.getInstanceEx();
    if (extension != null && fileTypeManagerEx.getFileTypeByExtension(extension) == FileTypes.UNKNOWN) {
      fileTypeManagerEx.associateExtension(StdFileTypes.PLAIN_TEXT, "flex");
    }
    FileEditorManager.getInstance(project).openFile(virtualFile, false, true);
    //new OpenFileDescriptor(project, virtualFile).navigate(false);
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.fileTypes.ex.FileTypeManagerEx

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.