bolord / mybatiseditor

Automatically exported from code.google.com/p/mybatiseditor
0 stars 0 forks source link

Automatically add @Param to methods #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
public interface UserMapp {
  void addUser(String login, String name, ...)
}

I whish there was a possibility to automatically add @Param annotation to each 
parameter

What is the expected output?

public interface UserMapp {
  void addUser(@Param("login") String login, @Param("name") String name, ...)
}

What version of the product are you using? On what operating system?
1.1.0.201207062137

Please provide any additional information below.

Original issue reported on code.google.com by nat...@gmail.com on 8 Nov 2012 at 10:54

GoogleCodeExporter commented 8 years ago
Param annotations are a great feature. Do you mean add a quick fix or something?

I am not sure if I can properly detect this, I don't want to randomly pop-up 
the quick fix on any Java parameter. It might be most useful to do this on the 
class level, annotate all methods that have more than one parameter?

Original comment by peerkehe...@gmail.com on 13 Nov 2012 at 9:38

GoogleCodeExporter commented 8 years ago
Quick fix on a class to annotate all methods that have more than one parameter 
or right click to access context menu and select an option to do that. With 
context menu you could annotate all methods or just the selected method.

Original comment by nat...@gmail.com on 14 Nov 2012 at 9:42