mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
- support new java file templates for java 25 GitOrigin-RevId: ae9df54a7ea1f55f68da5d3688a27bcdc4545850
38 lines
819 B
Plaintext
38 lines
819 B
Plaintext
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")
|
|
package ${PACKAGE_NAME};
|
|
|
|
#parse("File Header.java")
|
|
// ${SearchEverywhereComment1}
|
|
// ${SearchEverywhereComment2}
|
|
public class Main {
|
|
static void main() {
|
|
// ${ShowIntentionComment1}
|
|
// ${ShowIntentionComment2}
|
|
IO.println(String.format("Hello and welcome!"));
|
|
|
|
// ${RunComment}
|
|
for (int i = 1; i <= 5; i++) {
|
|
|
|
// ${DebugComment1}
|
|
// ${DebugComment2}
|
|
IO.println("i = " + i);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
#parse("File Header.java")
|
|
void main() {
|
|
// ${ShowIntentionComment1}
|
|
// ${ShowIntentionComment2}
|
|
IO.println(String.format("Hello and welcome!"));
|
|
|
|
// ${RunComment}
|
|
for (int i = 1; i <= 5; i++) {
|
|
|
|
// ${DebugComment1}
|
|
// ${DebugComment2}
|
|
IO.println("i = " + i);
|
|
}
|
|
}
|
|
#end
|