What's the relationship between `isMemberInplaceRenameAvailable` and `isInplaceIntroduceAvailable`?

I tried overriding both of them by simply returning `true`, and rename action pops a window up, and if I change `isInplaceIntroduceAvailable` to `false`, the rename action becomes inplace.

But I still cannot understand the relationship between these two methods -- can anyone explain?

 

0

There are two inplace renamers - one for local stuff (VariableInplaceRenamer) and one for global stuff (MemberInplaceRenamer). If you return both true, then local renamer is preferred and as further it fails to rename anything with global scope, you get a dialog.

Java accept member renamer for members (methods, classes, fields) or for java modules and for local variables, parameters, etc it accept only variable renamer.

Hope it helps,

Anna 

2

请先登录再写评论。