Skip to content

Commit

Permalink
Merge pull request #255 from bertrandong/update-ug
Browse files Browse the repository at this point in the history
Fix typo on dg
  • Loading branch information
bertrandong authored Apr 15, 2024
2 parents 25f303c + b41e19e commit 730b80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ The `DeleteMenuCommand` class which extends the `Command` abstract class will be

![DeleteMenuCommandModelDiagram](images/DeleteMenuSequenceDiagram-Model.png)

After parsing the `delete` command with menu prefix, the `LogicManager` will call the `Model#deleteProduct(id)` which calls `AddressBook#deleteProduct(id)`. The `deleteProduct` of `ProductMenu` will then be called, which deletes a product from the `ArrayList<Product` according to the specified `MENU_ID`.
After parsing the `delete` command with menu prefix, the `LogicManager` will call the `Model#deleteProduct(id)` which calls `AddressBook#deleteProduct(id)`. The `deleteProduct` of `ProductMenu` will then be called, which deletes a product from the `ArrayList<Product>` according to the specified `MENU_ID`.

`DeleteCommandParser` will construct the respective command based on the accompanying prefixes:
1. If `PREFIX_MENU`, a `DeleteMenuCommand` will be created.
Expand All @@ -236,7 +236,7 @@ The `EditMenuCommand` class which extends the `Command` abstract class will be e

![EditMenuCommandModelDiagram](images/EditMenuSequenceDiagram-Model.png)

After parsing the `edit` command with menu prefix, the `LogicManager` will call the `Model#editProduct(target, editedProduct)` which calls `AddressBook#editProduct(target, editedProduct)`. The `editProduct` of `ProductMenu` will then be called, which edits the product from the `ArrayList<Product` according to the specified `MENU_ID`.
After parsing the `edit` command with menu prefix, the `LogicManager` will call the `Model#editProduct(target, editedProduct)` which calls `AddressBook#editProduct(target, editedProduct)`. The `editProduct` of `ProductMenu` will then be called, which edits the product from the `ArrayList<Product>` according to the specified `MENU_ID`.

`EditCommandParser` will construct the respective command based on the accompanying prefixes:
1. If `PREFIX_MENU`, a `EditMenuCommand` will be created.
Expand Down

0 comments on commit 730b80c

Please sign in to comment.