permissions-dispatcher / permissions-dispatcher-plugin

IntelliJ plugin for supporting PermissionsDispatcher
https://plugins.jetbrains.com/plugin/8349
Apache License 2.0
706 stars 57 forks source link

Generate Runtime Permissions codes hope #46

Open kimukou opened 7 years ago

kimukou commented 7 years ago

i think better

select line on existed function on generete Runtime Permissions, NeedPermission into functionName in TextBox

and Generate push existing function above additonal Annotation.


This is too much hope

Existed function using replace

XXXDispacher.functionWith (this)

It is awesome if you can

shiraji commented 7 years ago

Thanks for the suggestion. It's not that hard. If the cursor is inside the method, then add XXXDispacher.functionWith (this).

The problem is this plugin start the action by hitting "Generate". The developer really put the cursor on the location when they hit "Generate"?

I may create the snapshot version of this feature, and if it is useful, I will merge into master. I'll let you know if the feature implemented.

Thanks for your suggestion.