forked from AY2324S2-CS2103T-T09-4/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Edit-UI' into Allocate-students-to-team
Merge
- Loading branch information
Showing
64 changed files
with
809 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
--- | ||
layout: default.md | ||
title: "About Us" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,19 +15,19 @@ | |
/** | ||
* Adds a person to TAHelper. | ||
*/ | ||
public class AddCommand extends Command { | ||
public class AddStudentCommand extends Command { | ||
|
||
public static final String COMMAND_WORD = "/add_student"; | ||
|
||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a person to TAHelper. " | ||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a person to TAHelper.\n" | ||
+ "Parameters: " | ||
+ PREFIX_NAME + "NAME " | ||
+ PREFIX_EMAIL + "EMAIL " | ||
+ PREFIX_STUDENTID + "STUDENT ID " | ||
+ "[" + PREFIX_TAG + "TAG]...\n" | ||
+ "Example: " + COMMAND_WORD + " " | ||
+ PREFIX_NAME + "Zack " | ||
+ PREFIX_STUDENTID + "A12345678Z " | ||
+ PREFIX_STUDENTID + "A1234567Z " | ||
+ PREFIX_EMAIL + "[email protected] " | ||
+ PREFIX_TAG + "Student "; | ||
|
||
|
@@ -39,7 +39,7 @@ public class AddCommand extends Command { | |
/** | ||
* Creates an AddCommand to add the specified {@code Person} | ||
*/ | ||
public AddCommand(Person person) { | ||
public AddStudentCommand(Person person) { | ||
requireNonNull(person); | ||
toAdd = person; | ||
} | ||
|
@@ -63,11 +63,11 @@ public boolean equals(Object other) { | |
} | ||
|
||
// instanceof handles nulls | ||
if (!(other instanceof AddCommand)) { | ||
if (!(other instanceof AddStudentCommand)) { | ||
return false; | ||
} | ||
|
||
AddCommand otherAddCommand = (AddCommand) other; | ||
AddStudentCommand otherAddCommand = (AddStudentCommand) other; | ||
return toAdd.equals(otherAddCommand.toAdd); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ public abstract class DeleteStudentCommand extends Command { | |
public static final String COMMAND_WORD = "/delete_student"; | ||
|
||
public static final String MESSAGE_USAGE = COMMAND_WORD | ||
+ ": Deletes the student identified by the student ID or email used in the displayed students list.\n" | ||
+ "Parameters: IDENTIFIER (must be a index, valid student ID or a valid email address)\n" | ||
+ ": Deletes the student identified by parameter in the displayed students list.\n" | ||
+ "Parameters: index/INDEX or email/EMAIL or id/STUDENT ID\n" | ||
+ "Example: " + COMMAND_WORD + " email/[email protected]"; | ||
|
||
public static final String MESSAGE_DELETE_PERSON_SUCCESS = "Deleted Student: %1$s"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.