Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358641

Summary: Add Constants library
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Matt Heitz <mheitz>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-09-22 14:16:24 EDT
We're going to add this new library.  It will be generated and incorporated
into both runtimes.

package eglx.lang;

library Constants
    const isoDateFormat string = "yyyy-MM-dd";
    const usaDateFormat string = "MM/dd/yyyy";
    const eurDateFormat string = "dd.MM.yyyy";
    const jisDateFormat string = "yyyy-MM-dd";
    const isoTimeFormat string = "HH.mm.ss";
    const usaTimeFormat string = "hh:mm a";
    const eurTimeFormat string = "HH.mm.ss";
    const jisTimeFormat string = "HH:mm:ss";
    const db2TimeStampFormat string = "yyyy-MM-dd-HH.mm.ss.SSSSSS";
    const odbcTimeStampFormat string = "yyyy-MM-dd HH:mm:ss.SSSSSS";
end
Comment 1 Matt Heitz CLA 2011-09-23 15:51:11 EDT
I generated the library and imported it into the runtime.  This caused a few problems since there was already a Constants class in a different package.  The problems were all references to Constants.EMPTY_STRING, which doesn't seem useful so I removed it and made the generator print "" instead.

All of these changes are in the EglToEglxTypeChanges branch, not HEAD.  I think this will make merging from EglToEglxTypeChanges to HEAD easier.
Comment 2 Matt Heitz CLA 2011-09-27 10:16:54 EDT
Closing all JavaGen enhancements that are in the Resolved state.