diff --git a/src/main/java/seedu/address/ui/HelpWindow.java b/src/main/java/seedu/address/ui/HelpWindow.java index 8c4e48954d4..678ba5dd242 100644 --- a/src/main/java/seedu/address/ui/HelpWindow.java +++ b/src/main/java/seedu/address/ui/HelpWindow.java @@ -18,7 +18,12 @@ public class HelpWindow extends UiPart { public static final String USERGUIDE_URL = "https://ay1920s1-cs2103t-w12-1.github.io/main/UserGuide.html"; - public static final String HELP_MESSAGE = "The 'help' command format is as follows: " + + private static final Logger logger = LogsCenter.getLogger(HelpWindow.class); + private static final String FXML = "HelpWindow.fxml"; + + private static TreeSet defaultCommandList = new TreeSet<>(FinSecParser.getCommandList().values()); + private static String helpMsg = "The 'help' command format is as follows: " + "help cmd/COMMAND type/TYPE" + "\n\n" + "Command List: \n" @@ -37,10 +42,6 @@ public class HelpWindow extends UiPart { + "Example: help cmd/add_contact type/guide\n" + "For more information you can refer to the user guide by clicking on the button"; - private static final Logger logger = LogsCenter.getLogger(HelpWindow.class); - private static final String FXML = "HelpWindow.fxml"; - private static TreeSet defaultCommandList = new TreeSet<>(FinSecParser.getCommandList().values()); - @FXML private Button gotoButton; @@ -54,7 +55,7 @@ public class HelpWindow extends UiPart { */ public HelpWindow(Stage root) { super(FXML, root); - helpMessage.setText(HELP_MESSAGE); + helpMessage.setText(helpMsg); } /** @@ -113,6 +114,10 @@ public static TreeSet getDefaultCommandList() { return defaultCommandList; } + public static String getHelpMsg() { + return helpMsg; + } + /** * Copies the URL to the user guide to the clipboard. */