Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358641 - Add Constants library
Summary: Add Constants library
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Matt Heitz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 14:16 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.