Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2103T-T17-1] TAB #82

Open
wants to merge 331 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
e12e5fc
Edit minor details in FilterCommandParser.java and FilterCommandParse…
KJunWei Oct 13, 2022
a7c9e9f
add tab under file to handle new address book
guowei42 Oct 15, 2022
cc7a40b
bug fixes, add test output
guowei42 Oct 15, 2022
0c5dc23
add 'new' keyword to create a new file
guowei42 Oct 16, 2022
15578c2
add storing new address book information in JSON file
guowei42 Oct 16, 2022
0d39f86
add creating new file
guowei42 Oct 16, 2022
4977608
Add Assignments class and AddAssignmentsCommand
yellow-294 Oct 17, 2022
e687b67
add Ui updates corresponding book when swap, saves user last left off
guowei42 Oct 17, 2022
3502d82
Minor bug fixes
yellow-294 Oct 17, 2022
bbaf4f6
fix test case failures
guowei42 Oct 17, 2022
bec7567
Add ShowCommand command which displays details of a specified person on
cxyterence Oct 17, 2022
b03b862
fix checkstyle
guowei42 Oct 17, 2022
26a7fca
Edit UserGuide.md
KJunWei Oct 17, 2022
40d4040
change the contact list panel to be more compact.
cxyterence Oct 17, 2022
53cab32
Merge pull request #51 from KJunWei/50-add-filter-function
cxyterence Oct 17, 2022
c11f28d
Merge pull request #55 from yellow-294/implement-assignments-class
cxyterence Oct 17, 2022
71625bc
Merge pull request #56 from guowei42/multiple-tabs
cxyterence Oct 17, 2022
f102183
Merge branch 'master' into add-show-command
cxyterence Oct 17, 2022
2aba3b6
Resolve merge conflicts
cxyterence Oct 17, 2022
57157ac
Merge pull request #61 from cxyterence/add-show-command
vantemoon Oct 18, 2022
80e5235
Add displaying function when clicking
KJunWei Oct 18, 2022
f366036
Add method in MainWindow.java
KJunWei Oct 18, 2022
d721eb5
Merge branch 'master' of https://github.com/KJunWei/tp into 54-edit-u…
KJunWei Oct 18, 2022
d3b47e1
Edit the grade command to update grade of individual assignment
vantemoon Oct 18, 2022
38ba5d4
Handle the exception when the index of the assignment is invalid.
vantemoon Oct 18, 2022
274875c
Improve Code Quality & Ammend JavaDocs
yellow-294 Oct 18, 2022
3039f10
Fix CheckStyle error
vantemoon Oct 18, 2022
b0c50ec
change dev guide (TODO: diagrams)
guowei42 Oct 18, 2022
0ee08cf
Improve the code quality related to command executions
vantemoon Oct 18, 2022
5ff90fc
Merge pull request #64 from KJunWei/display-info-on-click
cxyterence Oct 18, 2022
a83b4a5
Merge pull request #67 from yellow-294/improve-javadocs-codequality
cxyterence Oct 18, 2022
e220ee3
Merge branch 'master' into edit-grade-command
cxyterence Oct 18, 2022
0c94d06
Merge pull request #68 from vantemoon/edit-grade-command
cxyterence Oct 18, 2022
59d50f0
Add Filter Command to DeveloperGuide.md
KJunWei Oct 19, 2022
65b86e2
Merge pull request #70 from KJunWei/54-edit-userguidemd-to-include-re…
yellow-294 Oct 19, 2022
75c6fd1
Merge branch 'master' into dev-guide-update
guowei42 Oct 19, 2022
2207092
Update DeveloperGuide.md to reflect implementation of ShowCommand.
cxyterence Oct 19, 2022
dbf2fa6
Merge branch 'update-dg-showcommand'
cxyterence Oct 19, 2022
5d57e8c
update developer guide for tabbing between books
guowei42 Oct 19, 2022
9ba476f
Merge pull request #71 from guowei42/dev-guide-update
cxyterence Oct 19, 2022
7c89c6a
Update DG with AddAssginments command
yellow-294 Oct 19, 2022
bc9895e
Fix JavaCI issues
yellow-294 Oct 19, 2022
ecb1e2a
Update DeveloperGuide.md with implementation of ShowCommand alongside
cxyterence Oct 19, 2022
d99a4d0
Merge pull request #72 from yellow-294/update-dg-addassginments
cxyterence Oct 19, 2022
56aaa72
Merge branch 'master' into update-dg
cxyterence Oct 19, 2022
1707d1d
Fix checkstyle errors
cxyterence Oct 19, 2022
1dad85e
fix checkstyle errors
cxyterence Oct 19, 2022
af920bb
Merge pull request #74 from cxyterence/update-dg
guowei42 Oct 19, 2022
6bc95fb
Update DeveloperGuide.md with the implementation of GradeCommand
vantemoon Oct 19, 2022
1600cb2
Fix CheckStyle error
vantemoon Oct 19, 2022
cc2f189
Merge branch 'master' into update-developer-guide
vantemoon Oct 20, 2022
6ab27e4
Merge pull request #75 from vantemoon/update-developer-guide
guowei42 Oct 20, 2022
143be42
Edit bug in classes that have non-case-sensitive issues
KJunWei Oct 22, 2022
15fe4b3
Merge pull request #77 from KJunWei/76-bug-case-sensitive-issue-for-t…
cxyterence Oct 23, 2022
6d1c824
Add functions to plot bar graph for grades
KJunWei Oct 24, 2022
f74a433
Add graph into InfoDisplay
KJunWei Oct 24, 2022
ca7ea54
Change graph to StackedBarChart
KJunWei Oct 24, 2022
e5d6e38
wip add rename function
guowei42 Oct 25, 2022
3eb260d
fix regex not meeting criteria
guowei42 Oct 25, 2022
f6c7113
fix test case failure
guowei42 Oct 25, 2022
4b5d8f8
fix checkstyle :)
guowei42 Oct 25, 2022
0d606e7
add rename command
guowei42 Oct 25, 2022
b5e6c12
fix checkstyle
guowei42 Oct 25, 2022
36d5fb3
fix bug cannot delete file while active
guowei42 Oct 25, 2022
e794269
fix address book cannot be ran
guowei42 Oct 25, 2022
32e4b63
Merge pull request #81 from guowei42/tag-regex
yellow-294 Oct 25, 2022
5cbfd52
fix adding new file sometimes does not create the file
guowei42 Oct 25, 2022
0bb1465
Edit small feature in InfoDisplay.java
KJunWei Oct 25, 2022
d533820
hot fix renaming same file deletes current file
guowei42 Oct 25, 2022
f1c7232
Improved Add Assignments feature
yellow-294 Oct 25, 2022
3d703a9
fix unable to rename to uppercase file
guowei42 Oct 26, 2022
65c4e7a
fix creating addressbooks by following internal system breaks file cr…
guowei42 Oct 26, 2022
411ed8d
Merge pull request #78 from KJunWei/attempt-to-add-bar-graph
cxyterence Oct 26, 2022
b334db2
Merge branch 'master' into improve-add-assignments
cxyterence Oct 26, 2022
a1b81f1
Update Student.java for coding style violations
cxyterence Oct 26, 2022
f301aa5
change all files saving to lower case for simplicity
guowei42 Oct 26, 2022
f3e2433
Edit Person.java so Student class can only have 1 tag
KJunWei Oct 26, 2022
e8a4773
Add colour changes to main UI
cxyterence Oct 26, 2022
2b3b181
Add word colour changes
cxyterence Oct 26, 2022
79f1160
Edit code so Student can only have one tag. Also fix test cases so th…
KJunWei Oct 26, 2022
b2baa74
Enable assertions in build.gradle
KJunWei Oct 26, 2022
49cf8ce
Refine UI for better appearance
cxyterence Oct 26, 2022
96c43ae
Merge branch 'master' into ui-overhaul
cxyterence Oct 26, 2022
1ac76aa
Merge pull request #89 from cxyterence/ui-overhaul
KJunWei Oct 27, 2022
34b6218
Fix bug in Chart displayed
KJunWei Oct 27, 2022
9984f48
Edit checkstyle
KJunWei Oct 27, 2022
6958d12
Merge pull request #84 from yellow-294/improve-add-assignments
cxyterence Oct 27, 2022
0bacf98
Merge pull request #88 from KJunWei/enable-assertions
cxyterence Oct 27, 2022
dd1b41a
Merge pull request #90 from KJunWei/fix-chart-bug
cxyterence Oct 27, 2022
713350c
Refine UI appearance to look better with graphs
cxyterence Oct 27, 2022
f105059
Refine UI for better appearance
cxyterence Oct 27, 2022
7b1f088
Edit UML diagrams
KJunWei Oct 27, 2022
f40f71e
Merge branch 'master' into add-student-to-have-one-tag
KJunWei Oct 27, 2022
726e120
Edit checkstyle
KJunWei Oct 27, 2022
49d3e4d
Edit maximum grade and attendance to 100
KJunWei Oct 27, 2022
c09439b
Debug Roles command
yellow-294 Oct 27, 2022
ae078b6
Fix JavaCI issues
yellow-294 Oct 27, 2022
faf77a8
Merge branch 'master' into renaming-tabs
guowei42 Oct 27, 2022
e0059a1
Update user guide and developer guide
vantemoon Oct 27, 2022
c430343
Update user guide
vantemoon Oct 27, 2022
6844457
Edit clicking issues
KJunWei Oct 27, 2022
ebcfb2d
Merge pull request #85 from KJunWei/add-student-to-have-one-tag
cxyterence Oct 27, 2022
e77b24f
Merge pull request #91 from cxyterence/refine-ui
cxyterence Oct 27, 2022
6179331
Merge pull request #83 from guowei42/renaming-tabs
cxyterence Oct 27, 2022
d0c1071
Merge pull request #93 from KJunWei/edit-max-attendance-and-grade
cxyterence Oct 27, 2022
791a8cb
Merge pull request #97 from KJunWei/fix-ui-clicking-issues
cxyterence Oct 27, 2022
0a3833a
Merge pull request #92 from KJunWei/fix-chart-bug
cxyterence Oct 27, 2022
b39bb05
Merge pull request #94 from yellow-294/debug-roles-commad
cxyterence Oct 27, 2022
8276426
Merge pull request #96 from vantemoon/update-user-guide-v1.3
cxyterence Oct 27, 2022
5e279f0
Update screenshots in user guide
vantemoon Oct 27, 2022
ed193d3
Edit TypicalPersonsAddressBook.json
KJunWei Oct 30, 2022
0dd694e
Add StudentTest.java
KJunWei Oct 30, 2022
578ba6e
Add TeachingAssistantTest.java
KJunWei Oct 30, 2022
a20ea11
Add ProfessorTest.java
KJunWei Oct 30, 2022
33f4895
Add RemarkTest.java
KJunWei Oct 30, 2022
ee368cb
Edit phrasing of words and case-sensitivity issues in RolesCommand
KJunWei Oct 30, 2022
debeb4a
Edit invalidAndValidPersonAddressBook.json
KJunWei Oct 30, 2022
4ede7bf
Edit for checkstyle
KJunWei Oct 30, 2022
45bb85b
Merge pull request #98 from vantemoon/update-ug-screenshots
cxyterence Oct 31, 2022
e1c4a10
Merge pull request #143 from KJunWei/Edit-tests
cxyterence Oct 31, 2022
5bb2893
Edit to catch NoSuchElementEception
KJunWei Oct 31, 2022
ff5c457
Merge branch 'master' into Edit-tests
KJunWei Oct 31, 2022
d863523
fix for new addressbook not creating a new book
guowei42 Oct 31, 2022
b697b63
reverted change and changed UG instead
guowei42 Oct 31, 2022
0de894d
Add AddAssignmentsCommandTest.java
KJunWei Nov 1, 2022
b686815
Add AttendanceCommandTest.java
KJunWei Nov 1, 2022
4db3138
Add AvailabilityCommantTest.java
KJunWei Nov 1, 2022
f846d02
Add GradeCommand.java and edit minor bugs
KJunWei Nov 1, 2022
f8e3847
Add RolesCommandTest.java
KJunWei Nov 1, 2022
916ff7e
Add ShowCommandTest.java
KJunWei Nov 1, 2022
58f0e48
Add test cases for AddAssignmentCommand and utility classes
vantemoon Nov 1, 2022
27190e9
Fix the validity check of assignment grade
vantemoon Nov 1, 2022
ba12d93
Update UserGuide.md
yellow-294 Nov 2, 2022
d7ee5c4
Merge pull request #147 from vantemoon/add-assignment-command-test
cxyterence Nov 2, 2022
7c9f425
Merge pull request #146 from guowei42/new-book-fix
cxyterence Nov 2, 2022
b1fd90d
Merge pull request #145 from KJunWei/Edit-tests
cxyterence Nov 2, 2022
5c69ae0
Merge branch 'master' into Edit-tests
KJunWei Nov 3, 2022
591ad14
Add AddAssignmentsCommandParserTest.java
KJunWei Nov 3, 2022
c180285
Add EditAttendanceCommandParserTest.java
KJunWei Nov 3, 2022
c8acada
Add EditAvailabilityCommandParserTest.java
KJunWei Nov 3, 2022
1c07ade
Add EditGradeCommandParserTest.java
KJunWei Nov 3, 2022
20e72ff
Add EditRolesCommandParserTest.java
KJunWei Nov 3, 2022
9a3779b
Add RemarkCommandParserTest.java
KJunWei Nov 3, 2022
31f76c6
Add ShowCommandParserTest.java
KJunWei Nov 3, 2022
1e3a9c1
Add RenameCommandParserTest.java
KJunWei Nov 3, 2022
8b78a72
Edit Documentation
KJunWei Nov 3, 2022
1ffa6db
Merge pull request #149 from KJunWei/Edit-tests
cxyterence Nov 3, 2022
ad62ea0
Update ppp
vantemoon Nov 3, 2022
df8530d
Update ppp
vantemoon Nov 3, 2022
1731f2a
Merge pull request #151 from vantemoon/update-ppp
cxyterence Nov 4, 2022
f297391
Update index.md for more correct information
cxyterence Nov 4, 2022
42d7667
updated ppp
guowei42 Nov 4, 2022
2b0a402
Merge pull request #152 from cxyterence/update-index
guowei42 Nov 4, 2022
c1f0e6e
Update UserGuide.md
yellow-294 Nov 4, 2022
ea362de
update ug to show how to delete TAB
guowei42 Nov 5, 2022
4679b16
spacing change
guowei42 Nov 5, 2022
ffa9cf2
spacing change
guowei42 Nov 5, 2022
5ef1390
reverted some extra tabs
guowei42 Nov 5, 2022
da040a5
Minor changes
yellow-294 Nov 5, 2022
a0a43a7
Merge pull request #153 from guowei42/ppp-update
guowei42 Nov 6, 2022
35f8fcf
Merge branch 'master' of github.com:AY2223S1-CS2103T-T17-1/tp into mo…
guowei42 Nov 6, 2022
3227545
add more tests
guowei42 Nov 6, 2022
072a655
fix failing gradle test
guowei42 Nov 6, 2022
cda01d5
Edit kjunwei.md
KJunWei Nov 6, 2022
d462d45
Edit bug in GraceCommand
KJunWei Nov 6, 2022
e8fdad9
Edit for checkstyle
KJunWei Nov 6, 2022
57c0371
Merge pull request #155 from guowei42/ug-delete-TAB-faq
yellow-294 Nov 6, 2022
4d3db24
Merge pull request #148 from yellow-294/refine-UG
yellow-294 Nov 6, 2022
7de91c4
Update yellow-294.md
yellow-294 Nov 6, 2022
7bdc7d4
Update DeveloperGuide.md
cxyterence Nov 6, 2022
7b66ae0
Update use case section in DeveloperGuide.md
cxyterence Nov 6, 2022
8bddb09
Fix checkstyle violations
cxyterence Nov 6, 2022
0604e82
Merge branch 'master' into update-developer-guide
cxyterence Nov 6, 2022
58156d1
Add RepoSense link
cxyterence Nov 6, 2022
52de394
Merge commit '0604e8261a27b783ced58f29ee48c58e4dd3c2fc'
cxyterence Nov 6, 2022
ffd0b51
Fix checkstyle violations
cxyterence Nov 6, 2022
9fc14d7
Fix checkstyle violations
cxyterence Nov 6, 2022
712c498
Replace address book in error messages with TAB
vantemoon Nov 6, 2022
42824d5
Merge pull request #158 from KJunWei/edit-ppp
vantemoon Nov 6, 2022
e1b35d2
Merge pull request #160 from yellow-294/update-ppp
vantemoon Nov 6, 2022
eb8c199
Disable editing position
vantemoon Nov 7, 2022
1619b73
Merge pull request #162 from cxyterence/update-use-case
KJunWei Nov 7, 2022
300d793
Merge pull request #163 from cxyterence/master
KJunWei Nov 7, 2022
b0639de
Merge pull request #157 from guowei42/more-tests
yellow-294 Nov 7, 2022
a8a93b4
Merge pull request #159 from KJunWei/Edit-grade-bug
yellow-294 Nov 7, 2022
f951d4c
Add numbering to headings
cxyterence Nov 7, 2022
226412e
Merge pull request #164 from vantemoon/update-command-message
yellow-294 Nov 7, 2022
64d23ca
Fix checkstyle violations
cxyterence Nov 7, 2022
d171457
Merge pull request #166 from cxyterence/dg-heading-number
KJunWei Nov 7, 2022
afe3869
Update UserGuide.md
yellow-294 Nov 7, 2022
7494a45
Merge pull request #165 from vantemoon/disable-editing-position
cxyterence Nov 7, 2022
50cc137
Update UserGuide.md
yellow-294 Nov 7, 2022
0c2945e
Update developer guide to have numbering
cxyterence Nov 7, 2022
1ff3bcf
Update UserGuide.md
yellow-294 Nov 7, 2022
6280e67
update ppp
guowei42 Nov 7, 2022
f0d79d0
Merge pull request #167 from cxyterence/dg-heading-number#2
cxyterence Nov 7, 2022
37f6053
Merge branch 'debug-changes'
yellow-294 Nov 7, 2022
5217417
Edit AddAssignmentsCommand.java
KJunWei Nov 7, 2022
fa0a74e
Fix DG numbering
cxyterence Nov 7, 2022
23d4e76
Merge branch 'AY2223S1-CS2103T-T17-1:master' into master
yellow-294 Nov 7, 2022
2a1b3ee
Merge branch 'pr/170'
yellow-294 Nov 7, 2022
bf6e4d0
Merge pull request #171 from cxyterence/dg-heading-number#3
yellow-294 Nov 7, 2022
67157a6
new book created empty, minor UG changes
guowei42 Nov 7, 2022
6683348
Merge pull request #169 from KJunWei/168-addassignmentscommand-only-o…
cxyterence Nov 7, 2022
c369377
Merge pull request #172 from guowei42/update-logic
cxyterence Nov 7, 2022
4253a0b
Merge branch 'master' of https://github.com/yellow-294/tp
yellow-294 Nov 7, 2022
dd98861
Merge branch 'master' of https://github.com/yellow-294/tp
yellow-294 Nov 7, 2022
e85cd1b
update ppp
guowei42 Nov 7, 2022
aacf2fb
Edit AddAssignmentsCommand.java to fix bug
KJunWei Nov 7, 2022
8640aa7
Update UserGuide.md
yellow-294 Nov 7, 2022
8da2f61
Update UserGuide.md
yellow-294 Nov 7, 2022
7f383a1
Update UserGuide.md
yellow-294 Nov 7, 2022
b97f2e3
Update UserGuide.md
yellow-294 Nov 7, 2022
574ac2a
Update EditCommand.java
yellow-294 Nov 7, 2022
61e089b
Update DeveloperGuide.md and UserGuide.md
KJunWei Nov 7, 2022
18f7e0b
Edit for checkstyle
KJunWei Nov 7, 2022
97c4506
Edit to give credits to our beloved AY2223S1-CS2103T-T17-2
KJunWei Nov 7, 2022
77f1ba1
Merge pull request #177 from KJunWei/fix-indexing-issue
guowei42 Nov 7, 2022
b6ecad0
Merge pull request #174 from guowei42/update-ppp
KJunWei Nov 7, 2022
c786ba4
Merge pull request #175 from KJunWei/168-addassignmentscommand-only-o…
yellow-294 Nov 7, 2022
3f02d65
Edit to fix bug
KJunWei Nov 7, 2022
6553664
Merge branch 'master' into fix-indexing-issue
KJunWei Nov 7, 2022
e799295
Merge pull request #178 from KJunWei/fix-indexing-issue
cxyterence Nov 7, 2022
cb86839
Merge pull request #176 from yellow-294/edit-error
KJunWei Nov 7, 2022
e946f57
Update UserGuide.md
yellow-294 Nov 7, 2022
b0d5a38
Update UserGuide.md
yellow-294 Nov 7, 2022
ebaa1f7
Fix developer guide and update ppp
cxyterence Nov 7, 2022
57ebfea
Edit DeveloperGuide.md
KJunWei Nov 7, 2022
d3781a3
Merge pull request #180 from cxyterence/update-ppp
KJunWei Nov 7, 2022
c21cde3
Merge pull request #179 from yellow-294/change-ug
KJunWei Nov 7, 2022
f2358e3
Merge pull request #181 from KJunWei/fix-indexing-issue
cxyterence Nov 7, 2022
de22d7a
Update DG and PPP
yellow-294 Nov 7, 2022
e5450c1
Edit UG and TracingCode
KJunWei Nov 7, 2022
d42471a
Update yellow-294.md
yellow-294 Nov 7, 2022
be171a3
Update yellow-294.md
yellow-294 Nov 7, 2022
442b2f7
Merge pull request #182 from yellow-294/update-dg-effort
yellow-294 Nov 7, 2022
4c365c0
Edit AddAssignmentsCommand.java
KJunWei Nov 7, 2022
319a502
Update UserGuide.md
yellow-294 Nov 7, 2022
d24de2b
Merge pull request #183 from yellow-294/ug-bug
guowei42 Nov 7, 2022
70f2552
Edit bug in EditCommand
KJunWei Nov 7, 2022
ef202fa
Edit Tests
KJunWei Nov 7, 2022
c580408
Merge pull request #184 from KJunWei/edit-bug-for-addassignments
cxyterence Nov 7, 2022
ebd6a93
add more manual test cases
guowei42 Nov 7, 2022
4ab2635
Merge branch 'master' of github.com:AY2223S1-CS2103T-T17-1/tp into up…
guowei42 Nov 7, 2022
184dda2
Update ppp
cxyterence Nov 7, 2022
c97f3d7
Merge pull request #185 from cxyterence/update-ppp#2
cxyterence Nov 7, 2022
8ee6757
added more manual test case to dg
guowei42 Nov 7, 2022
3cbc5aa
change formatting
guowei42 Nov 7, 2022
ae89ca9
Merge pull request #186 from guowei42/update-dg
cxyterence Nov 7, 2022
a7d81de
Merge pull request #187 from guowei42/update-ug
yellow-294 Nov 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tab under file to handle new address book
guowei42 committed Oct 15, 2022
commit a7c9e9f8748c8ebf714ff0238f3127b866cc62b6
10 changes: 8 additions & 2 deletions src/main/java/seedu/address/logic/commands/CommandResult.java
Original file line number Diff line number Diff line change
@@ -14,15 +14,19 @@ public class CommandResult {
/** Help information should be shown to the user. */
private final boolean showHelp;

/** New Book should be created for the user. */
private final boolean showNewBook;

/** The application should exit. */
private final boolean exit;

/**
* Constructs a {@code CommandResult} with the specified fields.
*/
public CommandResult(String feedbackToUser, boolean showHelp, boolean exit) {
public CommandResult(String feedbackToUser, boolean showHelp, boolean showNewBook, boolean exit) {
this.feedbackToUser = requireNonNull(feedbackToUser);
this.showHelp = showHelp;
this.showNewBook = showNewBook;
this.exit = exit;
}

@@ -31,7 +35,7 @@ public CommandResult(String feedbackToUser, boolean showHelp, boolean exit) {
* and other fields set to their default value.
*/
public CommandResult(String feedbackToUser) {
this(feedbackToUser, false, false);
this(feedbackToUser, false, false, false);
}

public String getFeedbackToUser() {
@@ -42,6 +46,8 @@ public boolean isShowHelp() {
return showHelp;
}

public boolean isNewBook() {return showNewBook; }

public boolean isExit() {
return exit;
}
12 changes: 12 additions & 0 deletions src/main/java/seedu/address/ui/MainWindow.java
Original file line number Diff line number Diff line change
@@ -146,6 +146,14 @@ void show() {
primaryStage.show();
}

/**
* Creates a new address book
*/
@FXML
private void handleNewAddress() {

}

/**
* Closes the application.
*/
@@ -176,6 +184,10 @@ private CommandResult executeCommand(String commandText) throws CommandException
handleHelp();
}

if (commandResult.isNewBook()) {
handleNewAddress();
}

if (commandResult.isExit()) {
handleExit();
}
1 change: 1 addition & 0 deletions src/main/resources/view/MainWindow.fxml
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@
<VBox>
<MenuBar fx:id="menuBar" VBox.vgrow="NEVER">
<Menu mnemonicParsing="false" text="File">
<MenuItem mnemonicParsing="false" onAction="#handleNewAddress" text="New Book" />
<MenuItem mnemonicParsing="false" onAction="#handleExit" text="Exit" />
</Menu>
<Menu mnemonicParsing="false" text="Help">