diff --git a/.theia/settings.json b/.theia/settings.json index 928847590044d63682c225c0453d2d5fcf3b2533..67feb7a8b6632a66b94cc6b800462488dcd9f716 100644 --- a/.theia/settings.json +++ b/.theia/settings.json @@ -3,5 +3,12 @@ "java.format.settings.url": "todolist/config/checkstyle/eclipse-java-google-style.xml", "[java]": { "editor.tabSize": 2 - } + }, + "java.configuration.runtimes": [ + { + "name": "JavaSE-13", + "path": "/home/gitpod/.sdkman/candidates/java/14.0.2.j9-adpt", + "default": true + } + ] } diff --git a/todolist/fxui/pom.xml b/todolist/fxui/pom.xml index 6b10cf6941844d6b147a268784d3759ad58c6b8c..3c51998327061ab107d00f15fe5307ce8f40f2d9 100644 --- a/todolist/fxui/pom.xml +++ b/todolist/fxui/pom.xml @@ -81,9 +81,7 @@ <version>0.0.4</version> <configuration> <options> - <!-- - <option>dash dash enable-preview</option> - --> + <option>--enable-preview</option> </options> <mainClass>todolist.ui.TodoApp</mainClass> </configuration> diff --git a/todolist/fxui/src/main/java/todolist/ui/TodoController.java b/todolist/fxui/src/main/java/todolist/ui/TodoController.java index d11928a1d3fc12c3c5948bbc2499a74859104283..31cb161a882b7bb8c8b893f98b1f735e71d5040a 100644 --- a/todolist/fxui/src/main/java/todolist/ui/TodoController.java +++ b/todolist/fxui/src/main/java/todolist/ui/TodoController.java @@ -25,8 +25,20 @@ import todolist.json.TodoModule; public class TodoController { - private static final String todoListWithTwoItems = - "{\"items\":[{\"text\":\"Øl\",\"checked\":false},{\"text\":\"Pizza\",\"checked\":true}]}"; + private static final String todoListWithTwoItems = """ + { + "items": [ + { + "text": "Øl", + "checked":false + }, + { + "text": "Pizza", + "checked":true + } + ] + } + """; private TodoList todoList; diff --git a/todolist/pom.xml b/todolist/pom.xml index ff3994505e54f81ac26f223d0420204817ba5811..2cae0319dea158c74600a15f5628465776917ce2 100644 --- a/todolist/pom.xml +++ b/todolist/pom.xml @@ -59,9 +59,7 @@ <encoding>UTF-8</encoding> <release>14</release> <compilerArgs> - <!-- - <arg>dash dash enable-preview</arg> - --> + <arg>--enable-preview</arg> </compilerArgs> </configuration> </plugin> @@ -70,9 +68,7 @@ <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> <configuration> - <!-- - <argLine>dash dash enable-preview</argLine> - --> + <argLine>--enable-preview</argLine> </configuration> </plugin> <!-- Run the checkstyle code quality tool -->