blob: 2abc1448845355442f8f5d3b186b403e1fcbde18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.intellij.schema;
import com.intellij.lang.refactoring.RefactoringSupportProvider;
import com.intellij.psi.PsiElement;
import ai.vespa.intellij.schema.psi.SdIdentifier;
/**
* This class is used for the extension (in plugin.xml), to enable refactoring.
*
* @author Shahar Ariel
*/
public class SdRefactoringSupportProvider extends RefactoringSupportProvider {
@Override
public boolean isMemberInplaceRenameAvailable(PsiElement elementToRename, PsiElement context) {
return (elementToRename instanceof SdIdentifier);
}
}
|