[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #11125(new tools)

Opened 4 weeks ago

Last modified 4 weeks ago

Adjust standard Eclipse Java formatter

Reported by: mark Owned by: anybody
Component: unknown Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

We need a standard Eclipse Java formatter that (a) we all use, and (b) doesn't join lines. The "format" step in the BRS last time caused many enums to be unreadable. For example, it resulted in

NEW

    public enum PageId {
        Alphabetic_Information(SectionId.Core_Data, "Alphabetic Information"), Numbering_Systems(SectionId.Core_Data,
            "Numbering Systems"), Locale_Name_Patterns(SectionId.Locale_Display_Names, "Locale Name Patterns"), Languages_A_D(SectionId.Locale_Display_Names,
                "Languages (A-D)"), Languages_E_J(SectionId.Locale_Display_Names, "Languages (E-J)"), Languages_K_N(SectionId.Locale_Display_Names,
                    "Languages (K-N)"), Languages_O_S(SectionId.Locale_Display_Names, "Languages (O-S)"), Languages_T_Z(SectionId.Locale_Display_Names,
                        "Languages (T-Z)"), Scripts(SectionId.Locale_Display_Names), Territories(SectionId.Locale_Display_Names,
                            "Geographic Regions"), T_NAmerica(SectionId.Locale_Display_Names, "Territories (North America)"), T_SAmerica(
                                SectionId.Locale_Display_Names,
                                "Territories (South America)"), T_Africa(SectionId.Locale_Display_Names, "Territories (Africa)"), T_Europe(
                                    SectionId.Locale_Display_Names,
                                    "Territories (Europe)"), T_Asia(SectionId.Locale_Display_Names, "Territories (Asia)"), T_Oceania(
                                        SectionId.Locale_Display_Names,
                                        "Territories (Oceania)"), Locale_Variants(SectionId.Locale_Display_Names, "Locale Variants"), Keys(
                                            SectionId.Locale_Display_Names), Fields(SectionId.DateTime), Gregorian(SectionId.DateTime), Generic(
                                                SectionId.DateTime), Buddhist(SectionId.DateTime), Chinese(SectionId.DateTime), Coptic(
                                                    SectionId.DateTime), Dangi(SectionId.DateTime), Ethiopic(SectionId.DateTime), Ethiopic_Amete_Alem(
                                                        SectionId.DateTime, "Ethiopic-Amete-Alem"), Hebrew(SectionId.DateTime), Indian(
                                                            SectionId.DateTime), Islamic(SectionId.DateTime), Japanese(SectionId.DateTime), Persian(
                                                                SectionId.DateTime), Minguo(SectionId.DateTime), Timezone_Display_Patterns(SectionId.Timezones,
                                                                    "Timezone Display Patterns"), NAmerica(SectionId.Timezones, "North America"), SAmerica(
                                                                        SectionId.Timezones, "South America"), Africa(SectionId.Timezones), Europe(
                                                                            SectionId.Timezones), Russia(SectionId.Timezones), WAsia(SectionId.Timezones,
                                                                                "Western Asia"), CAsia(SectionId.Timezones, "Central Asia"), EAsia(
                                                                                    SectionId.Timezones,
                                                                                    "Eastern Asia"), SAsia(SectionId.Timezones, "Southern Asia"), SEAsia(
                                                                                        SectionId.Timezones,
                                                                                        "Southeast Asia"), Australasia(SectionId.Timezones), Antarctica(
                                                                                            SectionId.Timezones), Oceania(SectionId.Timezones), UnknownT(
                                                                                                SectionId.Timezones,
                                                                                                "Unknown Region"), Overrides(SectionId.Timezones), Symbols(
                                                                                                    SectionId.Numbers), MinimalPairs(SectionId.Numbers,
                                                                                                        "Minimal Pairs"), Number_Formatting_Patterns(
                                                                                                            SectionId.Numbers,
                                                                                                            "Number Formatting Patterns"), Compact_Decimal_Formatting(
                                                                                                                SectionId.Numbers,
                                                                                                                "Compact Decimal Formatting"), Compact_Decimal_Formatting_Other(
                                                                                                                    SectionId.Numbers,
                                                                                                                    "Compact Decimal Formatting (Other Numbering Systems)"), Measurement_Systems(
                                                                                                                        SectionId.Units,
                                                                                                                        "Measurement Systems"), Duration(
                                                                                                                            SectionId.Units), Length(
                                                                                                                                SectionId.Units), Area(
                                                                                                                                    SectionId.Units), Volume(
                                                                                                                                        SectionId.Units), SpeedAcceleration(
                                                                                                                                            SectionId.Units,
                                                                                                                                            "Speed and Acceleration"), MassWeight(
                                                                                                                                                SectionId.Units,
                                                                                                                                                "Mass and Weight"), EnergyPower(
                                                                                                                                                    SectionId.Units,
                                                                                                                                                    "Energy and Power"), ElectricalFrequency(
                                                                                                                                                        SectionId.Units,
                                                                                                                                                        "Electrical and Frequency"), Weather(
                                                                                                                                                            SectionId.Units), Digital(
                                                                                                                                                                SectionId.Units), Coordinates(
                                                                                                                                                                    SectionId.Units), OtherUnits(
                                                                                                                                                                        SectionId.Units,
                                                                                                                                                                        "Other Units"), CompoundUnits(
                                                                                                                                                                            SectionId.Units,
                                                                                                                                                                            "Compound Units"), Displaying_Lists(
                                                                                                                                                                                SectionId.Misc,
                                                                                                                                                                                "Displaying Lists"), LinguisticElements(
                                                                                                                                                                                    SectionId.Misc,
                                                                                                                                                                                    "Linguistic Elements"), Transforms(
                                                                                                                                                                                        SectionId.Misc), Identity(
                                                                                                                                                                                            SectionId.Special), Version(
                                                                                                                                                                                                SectionId.Special), Suppress(
                                                                                                                                                                                                    SectionId.Special), Deprecated(
                                                                                                                                                                                                        SectionId.Special), Unknown(
                                                                                                                                                                                                            SectionId.Special), C_NAmerica(
                                                                                                                                                                                                                SectionId.Currencies,
                                                                                                                                                                                                                "North America (C)"), //need to add (C) to differentiate from Timezone territories
        C_SAmerica(SectionId.Currencies, "South America (C)"), C_NWEurope(SectionId.Currencies, "Northern/Western Europe"), C_SEEurope(SectionId.Currencies,
            "Southern/Eastern Europe"), C_NAfrica(SectionId.Currencies, "Northern Africa"), C_WAfrica(SectionId.Currencies, "Western Africa"), C_MAfrica(
                SectionId.Currencies, "Middle Africa"), C_EAfrica(SectionId.Currencies, "Eastern Africa"), C_SAfrica(SectionId.Currencies,
                    "Southern Africa"), C_WAsia(SectionId.Currencies, "Western Asia (C)"), C_CAsia(SectionId.Currencies, "Central Asia (C)"), C_EAsia(
                        SectionId.Currencies, "Eastern Asia (C)"), C_SAsia(SectionId.Currencies, "Southern Asia (C)"), C_SEAsia(SectionId.Currencies,
                            "Southeast Asia (C)"), C_Oceania(SectionId.Currencies, "Oceania (C)"), C_Unknown(SectionId.Currencies, "Unknown Region (C)"),
        // BCP47
        u_Extension(SectionId.BCP47), t_Extension(SectionId.BCP47),
        // Supplemental
        Alias(SectionId.Supplemental), IdValidity(SectionId.Supplemental), Locale(SectionId.Supplemental), RegionMapping(SectionId.Supplemental), WZoneMapping(
            SectionId.Supplemental), Transform(SectionId.Supplemental), UnitPreferences(SectionId.Supplemental), Likely(SectionId.Supplemental), LanguageMatch(
                SectionId.Supplemental), TerritoryInfo(SectionId.Supplemental), LanguageInfo(SectionId.Supplemental), LanguageGroup(
                    SectionId.Supplemental), Fallback(SectionId.Supplemental), Gender(SectionId.Supplemental), Metazone(SectionId.Supplemental), NumberSystem(
                        SectionId.Supplemental), Plural(SectionId.Supplemental), PluralRange(SectionId.Supplemental), Containment(
                            SectionId.Supplemental), Currency(SectionId.Supplemental), Calendar(SectionId.Supplemental), WeekData(
                                SectionId.Supplemental), Measurement(SectionId.Supplemental), Language(SectionId.Supplemental), RBNF(
                                    SectionId.Supplemental), Segmentation(SectionId.Supplemental), DayPeriod(SectionId.Supplemental),

        Category(SectionId.Characters),
        // [Smileys, People, Animals & Nature, Food & Drink, Travel & Places, Activities, Objects, Symbols, Flags]
        Smileys(SectionId.Characters), People(SectionId.Characters), Animals_Nature(SectionId.Characters, "Animals & Nature"), Food_Drink(SectionId.Characters,
            "Food & Drink"), Travel_Places(SectionId.Characters, "Travel & Places"), Activities(SectionId.Characters), Objects(
                SectionId.Characters), Symbols2(SectionId.Characters), Flags(SectionId.Characters), Component(SectionId.Characters),

        Typography(SectionId.Characters),

from
OLD

    public enum PageId {
        Alphabetic_Information(SectionId.Core_Data, "Alphabetic Information"),
        Numbering_Systems(SectionId.Core_Data, "Numbering Systems"),
        Locale_Name_Patterns(SectionId.Locale_Display_Names, "Locale Name Patterns"),
        Languages_A_D(SectionId.Locale_Display_Names, "Languages (A-D)"),
        Languages_E_J(SectionId.Locale_Display_Names, "Languages (E-J)"),
        Languages_K_N(SectionId.Locale_Display_Names, "Languages (K-N)"),
        Languages_O_S(SectionId.Locale_Display_Names, "Languages (O-S)"),
        Languages_T_Z(SectionId.Locale_Display_Names, "Languages (T-Z)"),
        Scripts(SectionId.Locale_Display_Names),
        Territories(SectionId.Locale_Display_Names, "Geographic Regions"),
        T_NAmerica(SectionId.Locale_Display_Names, "Territories (North America)"),
        T_SAmerica(SectionId.Locale_Display_Names, "Territories (South America)"),
        T_Africa(SectionId.Locale_Display_Names, "Territories (Africa)"),
        T_Europe(SectionId.Locale_Display_Names, "Territories (Europe)"),
        T_Asia(SectionId.Locale_Display_Names, "Territories (Asia)"),
        T_Oceania(SectionId.Locale_Display_Names, "Territories (Oceania)"),
        Locale_Variants(SectionId.Locale_Display_Names, "Locale Variants"),
        Keys(SectionId.Locale_Display_Names),
        Fields(SectionId.DateTime),
        Gregorian(SectionId.DateTime),
        Generic(SectionId.DateTime),
        Buddhist(SectionId.DateTime),
        Chinese(SectionId.DateTime),
        Coptic(SectionId.DateTime),
        Dangi(SectionId.DateTime),
        Ethiopic(SectionId.DateTime),
        Ethiopic_Amete_Alem(SectionId.DateTime, "Ethiopic-Amete-Alem"),
        Hebrew(SectionId.DateTime),
        Indian(SectionId.DateTime),
        Islamic(SectionId.DateTime),
        Japanese(SectionId.DateTime),
        Persian(SectionId.DateTime),
        Minguo(SectionId.DateTime),
        Timezone_Display_Patterns(SectionId.Timezones, "Timezone Display Patterns"),
        NAmerica(SectionId.Timezones, "North America"),
        SAmerica(SectionId.Timezones, "South America"),
        Africa(SectionId.Timezones),
        Europe(SectionId.Timezones),
        Russia(SectionId.Timezones),
        WAsia(SectionId.Timezones, "Western Asia"),
        CAsia(SectionId.Timezones, "Central Asia"),
        EAsia(SectionId.Timezones, "Eastern Asia"),
        SAsia(SectionId.Timezones, "Southern Asia"),
        SEAsia(SectionId.Timezones, "Southeast Asia"),
        Australasia(SectionId.Timezones),
        Antarctica(SectionId.Timezones),
        Oceania(SectionId.Timezones),
        UnknownT(SectionId.Timezones, "Unknown Region"),
        Overrides(SectionId.Timezones),
        Symbols(SectionId.Numbers),
        MinimalPairs(SectionId.Numbers, "Minimal Pairs"),
        Number_Formatting_Patterns(SectionId.Numbers, "Number Formatting Patterns"),
        Compact_Decimal_Formatting(SectionId.Numbers, "Compact Decimal Formatting"),
        Compact_Decimal_Formatting_Other(SectionId.Numbers, "Compact Decimal Formatting (Other Numbering Systems)"),
        Measurement_Systems(SectionId.Units, "Measurement Systems"),
        Duration(SectionId.Units),
        Length(SectionId.Units),
        Area(SectionId.Units),
        Volume(SectionId.Units),
        SpeedAcceleration(SectionId.Units, "Speed and Acceleration"),
        MassWeight(SectionId.Units, "Mass and Weight"),
        EnergyPower(SectionId.Units, "Energy and Power"),
        ElectricalFrequency(SectionId.Units, "Electrical and Frequency"),
        Weather(SectionId.Units),
        Digital(SectionId.Units),
        Coordinates(SectionId.Units),
        OtherUnits(SectionId.Units, "Other Units"),
        CompoundUnits(SectionId.Units, "Compound Units"),
        Displaying_Lists(SectionId.Misc, "Displaying Lists"),
        LinguisticElements(SectionId.Misc, "Linguistic Elements"),
        Transforms(SectionId.Misc),
        Identity(SectionId.Special),
        Version(SectionId.Special),
        Suppress(SectionId.Special),
        Deprecated(SectionId.Special),
        Unknown(SectionId.Special),
        C_NAmerica(SectionId.Currencies, "North America (C)"), //need to add (C) to differentiate from Timezone territories
        C_SAmerica(SectionId.Currencies, "South America (C)"),
        C_NWEurope(SectionId.Currencies, "Northern/Western Europe"),
        C_SEEurope(SectionId.Currencies, "Southern/Eastern Europe"),
        C_NAfrica(SectionId.Currencies, "Northern Africa"),
        C_WAfrica(SectionId.Currencies, "Western Africa"),
        C_MAfrica(SectionId.Currencies, "Middle Africa"),
        C_EAfrica(SectionId.Currencies, "Eastern Africa"),
        C_SAfrica(SectionId.Currencies, "Southern Africa"),
        C_WAsia(SectionId.Currencies, "Western Asia (C)"),
        C_CAsia(SectionId.Currencies, "Central Asia (C)"),
        C_EAsia(SectionId.Currencies, "Eastern Asia (C)"),
        C_SAsia(SectionId.Currencies, "Southern Asia (C)"),
        C_SEAsia(SectionId.Currencies, "Southeast Asia (C)"),
        C_Oceania(SectionId.Currencies, "Oceania (C)"),
        C_Unknown(SectionId.Currencies, "Unknown Region (C)"), 
        // BCP47
        u_Extension(SectionId.BCP47), 
        t_Extension(SectionId.BCP47), 
        // Supplemental
        Alias(SectionId.Supplemental), 
        IdValidity(SectionId.Supplemental),
        Locale(SectionId.Supplemental),
        RegionMapping(SectionId.Supplemental),
        WZoneMapping(SectionId.Supplemental),
        Transform(SectionId.Supplemental),
        UnitPreferences(SectionId.Supplemental),
        Likely(SectionId.Supplemental),
        LanguageMatch(SectionId.Supplemental),
        TerritoryInfo(SectionId.Supplemental),
        LanguageInfo(SectionId.Supplemental),
        LanguageGroup(SectionId.Supplemental),
        Fallback(SectionId.Supplemental),
        Gender(SectionId.Supplemental),
        Metazone(SectionId.Supplemental),
        NumberSystem(SectionId.Supplemental),
        Plural(SectionId.Supplemental),
        PluralRange(SectionId.Supplemental),
        Containment(SectionId.Supplemental),
        Currency(SectionId.Supplemental),
        Calendar(SectionId.Supplemental),
        WeekData(SectionId.Supplemental),
        Measurement(SectionId.Supplemental),
        Language(SectionId.Supplemental),
        RBNF(SectionId.Supplemental),
        Segmentation(SectionId.Supplemental),
        DayPeriod(SectionId.Supplemental),

        Category(SectionId.Characters),
        // [Smileys, People, Animals & Nature, Food & Drink, Travel & Places, Activities, Objects, Symbols, Flags]
        Smileys(SectionId.Characters),
        People(SectionId.Characters),
        Animals_Nature(SectionId.Characters, "Animals & Nature"),
        Food_Drink(SectionId.Characters, "Food & Drink"),
        Travel_Places(SectionId.Characters, "Travel & Places"),
        Activities(SectionId.Characters),
        Objects(SectionId.Characters),
        Symbols2(SectionId.Characters),
        Flags(SectionId.Characters),
        Component(SectionId.Characters),
        
        Typography(SectionId.Characters),

Attachments

Change History

comment:1 Changed 4 weeks ago by mark

Note: there doesn't seem to be an Eclipse setting that formats enums in a column. So the best we can do is turn off joining lines for them.

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.