diff --git a/Project-Provision.iml b/Project-Provision.iml
index d834202..df990df 100644
--- a/Project-Provision.iml
+++ b/Project-Provision.iml
@@ -8,6 +8,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -25,4 +35,4 @@
-
\ No newline at end of file
+
diff --git a/build.gradle b/build.gradle
index dee504d..dffdcca 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,8 +2,10 @@ apply plugin: 'java'
apply plugin: 'checkstyle'
dependencies {
+ /*
compile 'javax.json:javax.json-api:1.1.4'
compile 'org.glassfish:javax.json:1.1.4'
+ */
compile fileTree(include: ['*.jar'], dir:'lib')
testCompile fileTree(include: ['*.jar'], dir:'lib')
testImplementation fileTree(include: ['*.jar'], dir:'lib')
@@ -16,9 +18,11 @@ checkstyle {
configFile file('checkstyle.xml')
}
+/*
repositories {
mavenCentral()
}
+*/
sourceSets {
main {
diff --git a/src/main/ui/Tui.java b/src/main/ui/Tui.java
index a107f80..9788846 100644
--- a/src/main/ui/Tui.java
+++ b/src/main/ui/Tui.java
@@ -22,6 +22,8 @@ public class Tui implements Iface, Wobserver {
public Tui() {
stdin = new BufferedReader(new InputStreamReader(System.in));
getMax();
+ WatchList watch = ListOfWatchList.getList().getWatchList(0);
+ watch.addObs(this);
//XXX Start ui thread
demo();
}
@@ -141,7 +143,7 @@ public class Tui implements Iface, Wobserver {
private void updateWatch() {
WatchList watch = ListOfWatchList.getList().getWatchList(0);
- watch.updateList();
+ watch.updateList();
}
private void printWatchList() {