package seedu.taskell.logic.commands;

import seedu.taskell.commons.core.EventsCenter;
import seedu.taskell.commons.events.ui.DisplayCalendarViewEvent;

public class ViewCalendarCommand extends Command {
    
    public static final String COMMAND_WORD = "calendar";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": Shows calendar view on right panel.\n"
            + "Example: " + COMMAND_WORD;
    
    private static final String MESSAGE_SUCCESS = "Displayed calendar.";

    @Override
    public CommandResult execute() {
        indicateDisplayCalendarView();
        return new CommandResult(String.format(MESSAGE_SUCCESS));
    }
    
    private void indicateDisplayCalendarView() {
        EventsCenter.getInstance().post(new DisplayCalendarViewEvent());
    }

}

@@ -146,16 +146,61 @@
 Event;%0A%0A
+/** Shows calendar view on right panel%0A * */%0A
 public c
@@ -290,16 +290,18 @@
 AND_WORD
+_1
  = %22cale
@@ -307,17 +307,16 @@
 endar%22;%0A
-%0A
     publ
@@ -342,109 +342,8 @@
 ing 
-MESSAGE_USAGE = COMMAND_WORD + %22: Shows calendar view on right panel.%5Cn%22%0A            + %22Example: %22 + 
 COMM
@@ -350,16 +350,26 @@
 AND_WORD
+_2 = %22cal%22
 ;%0A    %0A 

add short form command "cal"