use of com.intellij.refactoring.lang.ElementsHandler in project intellij-community by JetBrains.
the class BasePlatformRefactoringAction method isEnabledOnElements.
@Override
protected boolean isEnabledOnElements(@NotNull PsiElement[] elements) {
if (elements.length > 0) {
Language language = elements[0].getLanguage();
RefactoringActionHandler handler = getHandler(language, elements[0]);
return handler instanceof ElementsHandler && ((ElementsHandler) handler).isEnabledOnElements(elements);
}
return false;
}
Aggregations