Files
openide/java/java-impl/resources/fileTemplates/internal/SampleCodeWithRenderedOnboardingTipsInstanceMain.java.ft
Mikhail Pyltsin bfdeae6e6d [java] IDEA-360282 Use implicit class declaration for a new Java 25 project
- support new java file templates for java 25

(cherry picked from commit ae9df54a7ea1f55f68da5d3688a27bcdc4545850)


(cherry picked from commit e50ccc9076136085e88629b1f7f9f5f4162dd424)

IJ-MR-169535

GitOrigin-RevId: 7dbb94053e95dd7f65b87ad84c1cd95f3b4eb48f
2025-08-04 12:58:49 +00:00

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