将封闭类添加到Eclipse模板

时间:2012-03-27 13:10:53

标签: android eclipse

我在Android中做了很多登录,所以我想创建一个Eclipse模板来快速记录。这是我的模板:

名称:日志

模式:Log.d(“$ {enclosing_package}”,“$ {enclosing_method}”+ $ {cursor});

我需要在日志信息中添加封闭类,但没有$ enclosing_class。有没有办法获得enclosing_class? 谢谢!

1 个答案:

答案 0 :(得分:1)

你想要$ {enclosing_type}。

Eclipse help中提供了完整的模板变量列表。

相关问题