src/main/java/seedu/address/ui/CommandBox.java
public void runCommand(String commandText, String currentView) {
        if (currentView.equals(mainWindow.getCurrentView())) {
            try {
                commandExecutor.execute(commandText);
            } catch (CommandException | ParseException e) {
                setStyleToIndicateCommandFailure();
            }
        }
    }
/**
     * Handles custom command from user clicks. Only runs the select command if in the proper view
     */
Handles custom command from user clicks. Only runs the select command if in the proper view
Handles custom command from user clicks . Only runs the select command if in the proper view
public void runCommand(String commandText, String currentView) {
        if (currentView.equals(mainWindow.getCurrentView())) {
            try {
                commandExecutor.execute(commandText);
            } catch (CommandException | ParseException e) {
                setStyleToIndicateCommandFailure();
            }
        }
    }
public void runCommand ( String commandText , String currentView ) { if ( currentView . equals ( mainWindow . getCurrentView ( ) ) ) { try { commandExecutor . execute ( commandText ) ; } catch ( CommandException | ParseException e ) { setStyleToIndicateCommandFailure ( ) ; } } }
Handles custom command from user clicks.
Handles custom command from user clicks .