mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-31374 resolve result of WebReference became SyntheticElement to forbid to invoke rename refactoring on links
(cherry picked from commit 823b7bb)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,6 +19,7 @@ import com.intellij.ide.BrowserUtil;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiReferenceBase;
|
||||
import com.intellij.psi.SyntheticElement;
|
||||
import com.intellij.psi.impl.FakePsiElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -62,7 +63,7 @@ public class WebReference extends PsiReferenceBase<PsiElement> {
|
||||
return EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
class MyFakePsiElement extends FakePsiElement {
|
||||
class MyFakePsiElement extends FakePsiElement implements SyntheticElement {
|
||||
@Override
|
||||
public PsiElement getParent() {
|
||||
return myElement;
|
||||
|
||||
Reference in New Issue
Block a user