code: private void addCalendar(MpxjTreeNode parentNode, final ProjectCalendar calendar)
     {
        MpxjTreeNode calendarNode = new MpxjTreeNode(calendar, CALENDAR_EXCLUDED_METHODS)
        {
           @Override public String toString()
           {
              return calendar.getName();
           }
        };
        parentNode.add(calendarNode);
  
        MpxjTreeNode daysFolder = new MpxjTreeNode("Days");
        calendarNode.add(daysFolder);
  
        for (Day day : Day.values())
        {
           addCalendarDay(daysFolder, calendar, day);
        }
  
        MpxjTreeNode exceptionsFolder = new MpxjTreeNode("Exceptions");
        calendarNode.add(exceptionsFolder);
  
        for (ProjectCalendarException exception : calendar.getCalendarExceptions())
        {
           addCalendarException(exceptionsFolder, exception);
        }
     }
docs: Add a calendar node.
  
  @param parentNode parent node
  @param calendar calendar