File tree Expand file tree Collapse file tree
src/main/java/seedu/address Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ public class ShowCommand extends Command {
1919 public static final String COMMAND_WORD = "show" ;
2020
2121 public static final String MESSAGE_USAGE = COMMAND_WORD + ": Shows a tag's file address. "
22- + "Parameters : "
22+ + "\n Parameters : "
2323 + PREFIX_TAG_NAME + "TAG_NAME "
24- + "Example : " + COMMAND_WORD + " "
24+ + "\n Example : " + COMMAND_WORD + " "
2525 + PREFIX_TAG_NAME + "cs2103 " ;
2626
2727 public static final String MESSAGE_SUCCESS = "%s's file path: %s" ;
Original file line number Diff line number Diff line change 1717public class TagCommand extends Command {
1818
1919 public static final String COMMAND_WORD = "tag" ;
20-
21- public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a tag to the HelleFile's address book.\n "
22- + "Parameters: "
20+ public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a tag to the HelleFile's address book. "
21+ + "\n Parameters: "
2322 + PREFIX_TAG_NAME + "TAG_NAME "
24- + PREFIX_FILE_ADDRESS + "FILE_ADDRESS\n "
25- + "Example : " + COMMAND_WORD + " "
23+ + PREFIX_FILE_ADDRESS + "FILE_ADDRESS "
24+ + "\n Example : " + COMMAND_WORD + " "
2625 + PREFIX_TAG_NAME + "cs2103 "
2726 + PREFIX_FILE_ADDRESS + "F:\\ OneDrive\\ CS2013T " ;
2827
Original file line number Diff line number Diff line change 99 */
1010public class FileAddress {
1111
12- // TODO change message to be more understandable
13- public static final String MESSAGE_CONSTRAINTS = "File addresses can take any values, and it should not be blank" ;
12+ public static final String MESSAGE_CONSTRAINTS = "File address can only take a valid file path!" ;
1413
1514 /*
1615 * The first character of the address must not be a whitespace,
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ public boolean isSameTag(Tag otherTag) {
4545 }
4646
4747 return otherTag != null
48- && otherTag .getTagName ().equals (getTagName ())
49- && otherTag .getFileAddress ().equals (getFileAddress ());
48+ && otherTag .getTagName ().equals (getTagName ());
5049 }
5150 /**
5251 * Returns true if both tag have the same identity and data fields.
You can’t perform that action at this time.
0 commit comments