package seedu.taskell.logic.commands;


/**
 * Represents an incorrect command. Upon execution, produces some feedback to the user.
 */
public class IncorrectCommand extends Command {

    private static boolean isAddEditDeleteCommand;
    public final String feedbackToUser;

    public IncorrectCommand(String feedbackToUser){
        this.feedbackToUser = feedbackToUser;
    }

    @Override
    public CommandResult execute() {
        indicateAttemptToExecuteIncorrectCommand();
        return new CommandResult(feedbackToUser);
    }
    
    public void setIsUndoableCommand(boolean value) {
        isAddEditDeleteCommand = value;
    }
    
    public boolean isUndoableCommand() {
        return isAddEditDeleteCommand;
    }

}


@@ -32,16 +32,136 @@
 mands;%0A%0A
+import seedu.taskell.commons.core.EventsCenter;%0Aimport seedu.taskell.commons.events.undo.ExecutedIncorrectCommandEvent;%0A
 %0A/**%0A * 
@@ -598,16 +598,60 @@
 mand();%0A
+        indicateExecutedIncorrectCommand();%0A
         
@@ -690,36 +690,32 @@
 kToUser);%0A    %7D%0A
-    
 %0A    public void
@@ -710,16 +710,23 @@
  public 
+static 
 void set
@@ -822,16 +822,23 @@
  public 
+static 
 boolean 
@@ -903,13 +903,178 @@
 d;%0A    %7D
+%0A    %0A    private void indicateExecutedIncorrectCommand() %7B%0A        EventsCenter.getInstance().post(new ExecutedIncorrectCommandEvent(isAddEditDeleteCommand));%0A    %7D
 %0A%0A%7D%0A%0A

edit to IncorrectCommand