|
|
|
[
Permlink
| « Hide
]
Yann Cébron - 22 Sep 06 11:13
will this be fixed for Demetra? this makes DOM-Model not very useful for everything besides standalone single XML files
Seems that I've understood the problem. IntelliJ IDEA gives you the file copy for the completion. What if you try to use PsiFile#getOriginalFile() in your getFilesToMerge() implementation whenever possible as a workaround?
then even reference/completion within the same file is broken (because xmlFile.getOriginalFile() returns null?)
If it returns null, use the file you have, otherwise change it:
PsiFile originalFile = file.getOriginalFile(); if (originalFile != null) file = originalFile; I understand that this is not very nice, I'll do the same thing in MergingFileDescription in 6.0.1, if, of course, it proves to be the problem source Strange. As usual, everything works for me. The problem still must be connected with original/non-original files. Is the getFilesToMerge() called at the completion? Is there a right physical DomElement passed?
yes, getFilesToMerge() is called at completion and I get DomElements passed in
I will mail you the sources in private |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||