Merge commit 'origin/master'

This commit is contained in:
Eugene Kudelevsky
2011-04-25 18:07:06 +04:00
3 changed files with 4 additions and 4 deletions
@@ -35,14 +35,14 @@ class AnchorElementInfo extends SelfElementInfo {
private IStubElementType myStubElementType;
AnchorElementInfo(@NotNull PsiElement anchor, @NotNull PsiFile containingFile) {
super(containingFile.getProject(), anchor.getTextRange(), anchor.getClass(), containingFile, anchor.getLanguage());
super(containingFile.getProject(), anchor.getTextRange(), anchor.getClass(), containingFile, containingFile.getLanguage());
}
// will restore by stub index until file tree get loaded
AnchorElementInfo(@NotNull PsiElement anchor,
@NotNull PsiFileWithStubSupport containingFile,
int stubId,
@NotNull IStubElementType stubElementType) {
super(containingFile.getProject(), new TextRange(0,0), anchor.getClass(), containingFile, anchor.getLanguage());
super(containingFile.getProject(), new TextRange(0,0), anchor.getClass(), containingFile, containingFile.getLanguage());
this.stubId = stubId;
myStubElementType = stubElementType;
IElementType contentElementType = ((PsiFileImpl)containingFile).getContentElementType();
@@ -49,7 +49,7 @@ public class SelfElementInfo implements SmartPointerElementInfo {
protected final Language myLanguage;
protected SelfElementInfo(@NotNull Project project, @NotNull PsiElement anchor) {
this(project, anchor.getTextRange(), anchor.getClass(), anchor.getContainingFile(), anchor.getLanguage());
this(project, anchor.getTextRange(), anchor.getClass(), anchor.getContainingFile(), anchor.getContainingFile().getLanguage());
}
public SelfElementInfo(@NotNull Project project,
@NotNull TextRange anchor,
@@ -179,7 +179,7 @@ class SmartPsiElementPointerImpl<E extends PsiElement> implements SmartPointerEx
if (isMultiRoot && !isElementInMainRoot) {
return new MultiRootSelfElementInfo(project, element.getTextRange(), element.getClass(), containingFile, containingFile.getLanguage());
}
return new SelfElementInfo(project, element.getTextRange(), element.getClass(), containingFile, element.getLanguage());
return new SelfElementInfo(project, element.getTextRange(), element.getClass(), containingFile, containingFile.getLanguage());
}
public void documentAndPsiInSync() {