有没有办法在Eclipse模板中操作变量的值?
例如,在以下模板代码中:
public class ${file} extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_${enclosing_project});
}
}
//Change the leading letter of ${enclosing_project} to lower case and remove the .java from ${file}
我希望插入的文件名是myFile而不是myFile.java,我希望插入的项目名称是myProject而不是MyProject。