ruslan-polutsygan / phpstorm-adder-remover-generator-plugin

PhpStorm plugin
https://plugins.jetbrains.com/plugin/8132
10 stars 7 forks source link

Track property renaming #13

Open Koc opened 6 years ago

Koc commented 6 years ago

For now it i possible to rename class property and getters/setters for them. It would be nice also rename adders/removers. But not sure, is it supported by PS API

// cc @artspb

ruslan-polutsygan commented 6 years ago

Will check soon. Thanks for reporting

artspb commented 6 years ago

Sorry, I'm out of a context. Please post more details what do you expect from the PS side?

Koc commented 6 years ago

@artspb This plugin about generating adders/removers for class properties. Does PS plugin API supports track property renaming and rewrite generated adders/removers for them?

artspb commented 6 years ago

The API you're looking for is com.intellij.refactoring.rename.naming.AutomaticRenamerFactory. The following class can serve as an example: com.jetbrains.php.refactoring.rename.automaticRenamers.FieldAccessorsRenamerFactory.