java - 将系统日期添加到 BlueJ 类模板

标签 java bluej

我刚刚开始使用 BlueJ 开发,对于我的编程项目,我希望能够像这样记录它们:

/*
My Name
The System Date
Program Name
*/

如您所见,我希望能够提取系统日期(类的创建日期),以便我可以将其包含在注释中。那可能吗?我知道 BlueJ 使用 $ 来表示它使用的变量,例如 $PKGNAME,所以我想知道是否有人知道我可以用来从系统时钟。我在 Windows 上。

最佳答案

看来你运气不好:

The fields you see in the default templates are all there are. There are no more.

And, yes, you are right: they are not documented any further. You cannot define additional fields yourself. (If there was a good use for it, we could define additional fields. So if you got a useful idea, tell us.)

Michael

摘自讨论BlueJ file templates: .tmpl file variables .

关于java - 将系统日期添加到 BlueJ 类模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25633145/

相关文章:

Java - 具有父类(super class)的打印格式

java - 如何在java中添加到数组中,然后使用for循环打印出来?

java - 如何找到 JDK 以在我的系统中使用 BlueJ

Java读取文本文件中的每隔一行

java - 等待依赖项 [(&(component=Simple)(objectClass=org.apache.camel.spi.ComponentResolver))]

Java,带有回调的方法是否被认为是异步的?

java - 变量打印问题

java - 更改 BlueJ/Java 中的 system.out 字体和颜色

java - Java RuntimeException enableSuppression 参数有什么作用?

java - Qt on Android 运行时错误 : Invalid package identifier when getting bag for resource number 0x00000000