Reputation: 2897
I do many logging in Android, so I want to create an Eclipse template for quick logging. This is my template :
Name: log
Pattern: Log.d("${enclosing_package}", "${enclosing_method}" +${cursor});
I need to add enclosing class to log info but there is no $enclosing_class. Is there any way to get enclosing_class? Thanks!
Upvotes: 0
Views: 278
Reputation: 7923
You want ${enclosing_type}.
The complete list of template variables is available in Eclipse help.
Upvotes: 2