mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mention method name in edit contract intention text
This commit is contained in:
@@ -61,7 +61,7 @@ public class EditContractIntention extends BaseIntentionAction {
|
||||
final PsiMethod method = getTargetMethod(project, editor, file);
|
||||
if (method != null) {
|
||||
boolean hasContract = ControlFlowAnalyzer.findContractAnnotation(method) != null;
|
||||
setText(hasContract ? "Edit method contract" : "Add method contract");
|
||||
setText(hasContract ? "Edit method contract of '" + method.getName() + "'" : "Add method contract to '" + method.getName() + "'");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user