-
Notifications
You must be signed in to change notification settings - Fork 4
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
[v1.2.4] Make list command abstract #119
[v1.2.4] Make list command abstract #119
Conversation
constancensq
commented
Oct 12, 2020
- Abstract List command
- Created ListCaseCommand class
- Checked state to ensure is at main page before returning command
…into branch-abstract-list-case-command * 'master' of https://github.com/AY2021S1-CS2103-F09-2/tp: Update State of program with OpenCaseCommand Add OpenCase Command. Update StateManager.java Add StateManager to PIVOT
@@ -28,7 +32,10 @@ public ListCommand parse(String args) throws ParseException { | |||
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, ListCommand.MESSAGE_USAGE)); | |||
} | |||
|
|||
return new ListCommand(); | |||
if (StateManager.getState() != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use the atMainPage()/atCasePage() check here rather than checking the element
…into branch-abstract-list-case-command * 'master' of https://github.com/AY2021S1-CS2103-F09-2/tp: Update equals, remove abstract execute DeleteCommand Check for State before Deleting Case Add Return Command Update files using CheckStyle Integrate StateManager with GUI Add integration for StateManager with MainWindow.java (NOT COMPLETE) Update GUI to display Documents, Suspects, Witnesses and Victims Update GUI to display Documents DeleteCommand Class is now abstract, DeleteCaseCommand added Add id to labels in fxml fields in MainWindow.fxml Add panes for Case fields in MainWindow.fxml Edit layout in MainWindow.fxml Adjust layout for GUI Edit layout in MainWindow.fxml Edit layout in MainWindow.fxml Add SplitPane layout in MainWindow.fxml # Conflicts: # src/main/java/seedu/address/commons/core/Messages.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.