mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
- support new java file templates for java 25 (cherry picked from commit ae9df54a7ea1f55f68da5d3688a27bcdc4545850) (cherry picked from commit e50ccc9076136085e88629b1f7f9f5f4162dd424) IJ-MR-169535 GitOrigin-RevId: 7dbb94053e95dd7f65b87ad84c1cd95f3b4eb48f
35 lines
800 B
Plaintext
35 lines
800 B
Plaintext
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")
|
|
package ${PACKAGE_NAME};
|
|
|
|
#parse("File Header.java")
|
|
//TIP ${RunComment1}
|
|
// ${RunComment2}
|
|
public class Main {
|
|
static void main() {
|
|
//TIP ${ShowIntentionComment1}
|
|
// ${ShowIntentionComment2}
|
|
IO.println(String.format("Hello and welcome!"));
|
|
|
|
for (int i = 1; i <= 5; i++) {
|
|
//TIP ${DebugComment1}
|
|
// ${DebugComment2}
|
|
IO.println("i = " + i);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
#parse("File Header.java")
|
|
//TIP ${RunComment1}
|
|
// ${RunComment2}
|
|
void main() {
|
|
//TIP ${ShowIntentionComment1}
|
|
// ${ShowIntentionComment2}
|
|
IO.println(String.format("Hello and welcome!"));
|
|
|
|
for (int i = 1; i <= 5; i++) {
|
|
//TIP ${DebugComment1}
|
|
// ${DebugComment2}
|
|
IO.println("i = " + i);
|
|
}
|
|
}
|
|
#end |