package udo.util;

import java.util.GregorianCalendar;

public class Config {
    /** Constants for command names **/
    public static final String CMD_STR_ADD = "add";
    public static final String CMD_STR_MODIFY = "modify";
    public static final String CMD_STR_DELETE = "delete";
    public static final String CMD_STR_DISPLAY = "display";
    public static final String CMD_STR_SEARCH = "search";
    
    /** Constants for command options **/
    public static final int OPT_LONG = 0;
    public static final int OPT_SHORT = 1;
    public static final int OPT_TYPE = 2;
    
    // Types that arguments to an option can take
    public static final String TYPE_STR = "str_t";
    public static final String TYPE_DATETIME = "datetime_t";
    public static final String TYPE_TIME = "time_t";
    public static final String TYPE_INT = "int_t";
    public static final String TYPE_NONE = "notype_t";

    public static final String[] OPT_DUR = {"duration", "d", TYPE_TIME};
    public static final String[] OPT_VENUE = {"venue", "v", TYPE_STR};
    public static final String[] OPT_LABEL = {"label", "l", TYPE_STR};
    public static final String[] OPT_PRIO = {"important", "im", TYPE_NONE};
    public static final String[] OPT_EVENT = {"event", "ev", TYPE_STR};
    public static final String[] OPT_DEADLINE = {"deadline", "dl", TYPE_STR};
    public static final String[] OPT_TODO = {"todo", "td", TYPE_STR};
    public static final String[] OPT_START = {"start", "s", TYPE_DATETIME};
    public static final String[] OPT_END = {"end", "e", TYPE_DATETIME};
    public static final String[] OPT_INDEX = {"index", "i", TYPE_INT};
    
    /**
     * New options can be added to the following table following the same
     * format as existing entry for it to work with the input parser
     **/
    public static final String OPTIONS_TABLE[][] =
        { OPT_DUR, OPT_VENUE, OPT_LABEL, OPT_PRIO, OPT_EVENT,
          OPT_DEADLINE, OPT_TODO, OPT_START, OPT_END, OPT_INDEX };
    
    /** Constants for date/time */
    public static final String DATE_TODAY = "today";
    public static final String DATE_TOMORROW = "tomorrow";
    
    public static final String[] DAYS_OF_WEEK_LONG =
        {"monday", "tuesday", "wednesday", "thursday",
         "friday", "saturday", "sunday"};
    public static final String[] DAYS_OF_WEEK_SHORT =
        {"mon", "tue", "wed", "thu", "fri", "sat", "sun"};
    public static final int[] DAYS_OF_WEEK_CALENDAR =
        {GregorianCalendar.MONDAY, GregorianCalendar.TUESDAY,
         GregorianCalendar.WEDNESDAY, GregorianCalendar.THURSDAY,
         GregorianCalendar.FRIDAY, GregorianCalendar.SATURDAY,
         GregorianCalendar.SUNDAY};
}

@@ -16,45 +16,8 @@
 l;%0A%0A
-import java.util.GregorianCalendar;%0A%0A
 publ
@@ -1940,707 +1940,6 @@
  %7D;%0A
-    %0A    /** Constants for date/time */%0A    public static final String DATE_TODAY = %22today%22;%0A    public static final String DATE_TOMORROW = %22tomorrow%22;%0A    %0A    public static final String%5B%5D DAYS_OF_WEEK_LONG =%0A        %7B%22monday%22, %22tuesday%22, %22wednesday%22, %22thursday%22,%0A         %22friday%22, %22saturday%22, %22sunday%22%7D;%0A    public static final String%5B%5D DAYS_OF_WEEK_SHORT =%0A        %7B%22mon%22, %22tue%22, %22wed%22, %22thu%22, %22fri%22, %22sat%22, %22sun%22%7D;%0A    public static final int%5B%5D DAYS_OF_WEEK_CALENDAR =%0A        %7BGregorianCalendar.MONDAY, GregorianCalendar.TUESDAY,%0A         GregorianCalendar.WEDNESDAY, GregorianCalendar.THURSDAY,%0A         GregorianCalendar.FRIDAY, GregorianCalendar.SATURDAY,%0A         GregorianCalendar.SUNDAY%7D;%0A
 %7D%0A

Remove redundant code in Config.java