mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
rename: override instead of implement for non-abstract methods
This commit is contained in:
+5
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -79,7 +79,10 @@ public class ImplementAbstractMethodAction extends BaseIntentionAction {
|
||||
}
|
||||
|
||||
protected String getIntentionName(final PsiMethod method) {
|
||||
return CodeInsightBundle.message("intention.implement.abstract.method.text", method.getName());
|
||||
return method.hasModifierProperty(PsiModifier.ABSTRACT) ?
|
||||
CodeInsightBundle.message("intention.implement.abstract.method.text", method.getName()) :
|
||||
CodeInsightBundle.message("intention.override.method.text", method.getName())
|
||||
;
|
||||
}
|
||||
|
||||
static class MyElementProcessor implements PsiElementProcessor {
|
||||
|
||||
Reference in New Issue
Block a user