Skip to content

Commit

Permalink
Merge pull request #250 from TanZhanMing/master
Browse files Browse the repository at this point in the history
Fix helpWindow bug
  • Loading branch information
TanZhanMing authored Nov 1, 2019
2 parents 53b83fb + c82e223 commit 525f747
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +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 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<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 @@ -37,10 +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";
private static TreeSet<String> defaultCommandList = new TreeSet<>(FinSecParser.getCommandList().values());

@FXML
private Button gotoButton;

Expand All @@ -54,7 +55,7 @@ public class HelpWindow extends UiPart<Stage> {
*/
public HelpWindow(Stage root) {
super(FXML, root);
helpMessage.setText(HELP_MESSAGE);
helpMessage.setText(helpMsg);
}

/**
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 525f747

Please sign in to comment.