HVNSweeting
HVNSweeting

Reputation: 2897

Add enclosing class to Eclipse template

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

Answers (1)

Deepak Azad
Deepak Azad

Reputation: 7923

You want ${enclosing_type}.

The complete list of template variables is available in Eclipse help.

Upvotes: 2

Related Questions