aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-james2022-12-03 05:41:43 +0000
committerj-james2022-12-03 05:41:43 +0000
commitb50902287b3b733c3252c496829d023c05ab637a (patch)
tree531bdd82f8082072ee6d79225a3800f7929f115b
parent9ad66fd06a7eb54f440966dc4d935179c2cc150a (diff)
Phase 4: Task 2
-rw-r--r--README.md15
-rw-r--r--src/main/model/BrowserState.java4
2 files changed, 17 insertions, 2 deletions
diff --git a/README.md b/README.md
index 67147dc..850b7a9 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,21 @@ I've heard that Java Swing has a native HTML rendering component. I hope to enti
- You can save the state of my application by attempting to close it with tabs open. You will be asked if you would like to save your tabs.
- You can load the state of my application by attempting to open it after saving tabs. You will be asked if you would like to restore your tabs.
+## Phase IV: Task 2
+
+```
+Fri Dec 02 20:53:00 PST 2022
+Added tab /home/apropos/Projects/website/j-james/index.html to tablist
+Fri Dec 02 20:53:01 PST 2022
+Added tab /home/apropos/Projects/website/j-james/index.html to tablist
+Fri Dec 02 20:53:07 PST 2022
+Removed tab /home/apropos/Projects/website/j-james/index.html from tablist
+```
+
+## Phase IV: Task 3
+
+
+
## credits
This project makes extensive use of the Javatuples library ([javatuples.org](https://www.javatuples.org/)).
diff --git a/src/main/model/BrowserState.java b/src/main/model/BrowserState.java
index 7f948dc..6c1da07 100644
--- a/src/main/model/BrowserState.java
+++ b/src/main/model/BrowserState.java
@@ -30,11 +30,11 @@ public class BrowserState {
if (!this.tabs.contains(added)) {
this.tabs.add(added);
}
- EventLog.getInstance().logEvent(new Event("Added tab " + added));
+ EventLog.getInstance().logEvent(new Event("Added tab " + added + " to tablist"));
}
public void removeTab(String removed) {
this.tabs.remove(removed);
- EventLog.getInstance().logEvent(new Event("Removed tab " + removed));
+ EventLog.getInstance().logEvent(new Event("Removed tab " + removed + " from tablist"));
}
}