Package com.intellij.psi

Examples of com.intellij.psi.PsiFile.copy()


  public XmlFile getSchema(@NotNull @NonNls String url, @Nullable Module module, @NotNull PsiFile baseFile) {
    final URL resource = NMMLSchemaProvider.class.getResource("/nmml.xsd");
    final VirtualFile fileByURL = VfsUtil.findFileByURL(resource);
    PsiFile result = baseFile.getManager().findFile(fileByURL);
    if (result instanceof XmlFile) {
      return (XmlFile)result.copy();
    }
    return null;
  }

  @Override
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.