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

[v1.2.4] Make list command abstract #119

Conversation

constancensq
Copy link

  • 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
@constancensq constancensq changed the title Make list command abstract [v1.2.4] Make list command abstract Oct 12, 2020
@@ -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) {

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

@CodyChew CodyChew added priority.High Must do type.Task Something that needs to be done, but not a story, bug, or an epic. e.g. Move testing code into a new labels Oct 12, 2020
@CodyChew CodyChew added this to the v1.2 milestone Oct 12, 2020
@CodyChew CodyChew linked an issue Oct 12, 2020 that may be closed by this pull request
…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
Copy link

@esmanda3w esmanda3w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@CodyChew CodyChew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@esmanda3w esmanda3w merged commit 80e0991 into AY2021S1-CS2103-F09-2:master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must do type.Task Something that needs to be done, but not a story, bug, or an epic. e.g. Move testing code into a new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v1.2.4] Change List Command into an Abstract Class
3 participants