mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
type migration: disable refactoring on inappropriate contexts
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ public class ChangeTypeSignatureAction extends BaseRefactoringAction {
|
||||
if (referenceParameterList != null) {
|
||||
return referenceParameterList.getTypeArguments().length > 0;
|
||||
}
|
||||
return true;
|
||||
return PsiTreeUtil.getParentOfType(psiElement, PsiTypeElement.class) != null;
|
||||
}
|
||||
|
||||
public RefactoringActionHandler getHandler(DataContext dataContext) {
|
||||
|
||||
Reference in New Issue
Block a user