private void readProjectProperties ( Project ganttProject ) { ProjectProperties mpxjProperties = m_projectFile . getProjectProperties ( ) ; mpxjProperties . setName ( ganttProject . getName ( ) ) ; mpxjProperties . setCompany ( ganttProject . getCompany ( ) ) ; mpxjProperties . setDefaultDurationUnits ( TimeUnit . DAYS ) ; String locale = ganttProject . getLocale ( ) ; if ( locale == null ) { locale = "en_US" ; } m_localeDateFormat = DateFormat . getDateInstance ( DateFormat . SHORT , new Locale ( locale ) ) ; }
This method extracts project properties from a GanttProject file .