Skip to content

Commit

Permalink
Fix helpWindow bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TanZhanMing committed Nov 1, 2019
1 parent 7b4a3fc commit c82e223
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
public class HelpWindow extends UiPart<Stage> {

public static final String USERGUIDE_URL = "https://ay1920s1-cs2103t-w12-1.github.io/main/UserGuide.html";
public static TreeSet<String> defaultCommandList = new TreeSet<>(FinSecParser.getCommandList().values());
public static String helpMsg = "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<String> 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"
Expand All @@ -38,9 +42,6 @@ public class HelpWindow extends UiPart<Stage> {
+ "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";

@FXML
private Button gotoButton;

Expand Down Expand Up @@ -113,6 +114,10 @@ public static TreeSet<String> getDefaultCommandList() {
return defaultCommandList;
}

public static String getHelpMsg() {
return helpMsg;
}

/**
* Copies the URL to the user guide to the clipboard.
*/
Expand Down

0 comments on commit c82e223

Please sign in to comment.