- With
putFunction
method atinitialize
method, you can add function (context menu)@Override protected void initialize() throws Exception { putFunction("printHelloWorld", new TextFunction("Hello World", () -> { System.out.println("Hello, World !"); })); putFunction("printGoodMorning", new TextFunction("Good morning", () -> { System.out.println("Good morning !"); })); putFunction("printGoodNight", new TextFunction("Good night", () -> { System.out.println("Good night !"); })); }
- Previous
- Next