コード例 #1
0
 @Nullable
 private PsiFile getFile() {
   final XmlElement element = getContextElement();
   if (element == null) {
     return null;
   }
   return element.getContainingFile().getOriginalFile();
 }
コード例 #2
0
 protected XsltContextProviderBase(XmlElement element) {
   final Project project = element.getProject();
   myFileAssociationsManager = FileAssociationsManager.getInstance(project);
   myContextElement =
       SmartPointerManager.getInstance(project).createSmartPsiElementPointer(element);
   attachTo(element);
 }