mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-86337 Disable actions in 'Generate...' popup which can't be applied. Fixed.
This commit is contained in:
+1
-4
@@ -53,10 +53,7 @@ public class BaseGenerateAction extends CodeInsightAction {
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments();
|
||||
|
||||
PsiClass targetClass = getTargetClass(editor, file);
|
||||
if (targetClass == null) return false;
|
||||
if (!isValidForClass(targetClass)) return false; //?
|
||||
|
||||
return true;
|
||||
return targetClass != null && isValidForClass(targetClass);
|
||||
}
|
||||
|
||||
protected boolean isValidForClass(final PsiClass targetClass) {
|
||||
|
||||
Reference in New Issue
Block a user