From ce73529559ad2b76532a5ae7f9317e9e95a44aac Mon Sep 17 00:00:00 2001 From: Katharina Wurz Date: Fri, 17 Feb 2023 16:23:52 +0100 Subject: [PATCH] Give enum default and title case (#487) --- file-formats/clas/clas-v1.json | 33 ++++++++++--------- .../clas/type/zif_aff_clas_v1.intf.abap | 31 ++++++++--------- 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/file-formats/clas/clas-v1.json b/file-formats/clas/clas-v1.json index fdeac6aca..d2606c84a 100644 --- a/file-formats/clas/clas-v1.json +++ b/file-formats/clas/clas-v1.json @@ -81,21 +81,21 @@ "webDynproRuntimeObject" ], "enumTitles": [ - "General object type", - "Exit class", - "Test class (ABAP Unit)", - "Behavior class (behavior implementations)", - "Entity event handler class", - "Persistent class", - "Factory for persistent class", - "Status class for persistent class", - "RFC proxy class", - "Exception class", - "Area class (shared objects)", - "Business class", - "BSP application class", - "Basis class for BSP element handlers", - "Web Dynpro runtime object" + "General Object Type", + "Exit Class", + "Test Class (ABAP Unit)", + "Behavior Class (Behavior Implementations)", + "Entity Event Handler Class", + "Persistent Class", + "Factory for Persistent Class", + "Status Class for Persistent Class", + "RFC Proxy Class", + "Exception Class", + "Area Class (Shared Objects)", + "Business Class", + "BSP Application Class", + "Basis Class For BSP Element Handlers", + "Web Dynpro Runtime Object" ], "enumDescriptions": [ "General object type", @@ -113,7 +113,8 @@ "BSP application class", "Basis class for BSP element handlers", "Web Dynpro runtime object" - ] + ], + "default": "generalObjectType" }, "fixPointArithmetic": { "title": "Fix Point Arithmetic", diff --git a/file-formats/clas/type/zif_aff_clas_v1.intf.abap b/file-formats/clas/type/zif_aff_clas_v1.intf.abap index 050f423dd..18d6f154e 100644 --- a/file-formats/clas/type/zif_aff_clas_v1.intf.abap +++ b/file-formats/clas/type/zif_aff_clas_v1.intf.abap @@ -3,55 +3,56 @@ INTERFACE zif_aff_clas_v1 PUBLIC. "!

Class Category

"! Category of the class "! $values {@link zif_aff_clas_v1.data:co_category} + "! $default {@link zif_aff_clas_v1.data:co_category.general_object_type} TYPES ty_category TYPE n LENGTH 2. CONSTANTS: "!

Class Category

"! Category of the class BEGIN OF co_category, - "!

General object type

+ "!

General Object Type

"! General object type general_object_type TYPE ty_category VALUE '00', - "!

Exit class

+ "!

Exit Class

"! Exit class exit_class TYPE ty_category VALUE '01', - "!

Test class (ABAP Unit)

+ "!

Test Class (ABAP Unit)

"! Test class (ABAP Unit) testclass_abap_unit TYPE ty_category VALUE '05', - "!

Behavior class (behavior implementations)

+ "!

Behavior Class (Behavior Implementations)

"! Behavior class (behavior implementations) behavior_class TYPE ty_category VALUE '06', - "!

Entity event handler class

+ "!

Entity Event Handler Class

"! Entity event handler class entity_event_handler TYPE ty_category VALUE '07', - "!

Persistent class

+ "!

Persistent Class

"! Persistent class persistent_class TYPE ty_category VALUE '10', - "!

Factory for persistent class

+ "!

Factory for Persistent Class

"! Factory for persistent class factory_for_persistent_class TYPE ty_category VALUE '11', - "!

Status class for persistent class

+ "!

Status Class for Persistent Class

"! Status class for persistent class status_class_for_persist_class TYPE ty_category VALUE '12', - "!

RFC proxy class

+ "!

RFC Proxy Class

"! RFC proxy class rfc_proxy_class TYPE ty_category VALUE '35', - "!

Exception class

+ "!

Exception Class

"! Exception class exception_class TYPE ty_category VALUE '40', - "!

Area class (shared objects)

+ "!

Area Class (Shared Objects)

"! Area class (shared objects) area_class_shared_objects TYPE ty_category VALUE '45', - "!

Business class

+ "!

Business Class

"! Business class business_class TYPE ty_category VALUE '50', - "!

BSP application class

+ "!

BSP Application Class

"! BSP application class bsp_application_class TYPE ty_category VALUE '60', - "!

Basis class for BSP element handlers

+ "!

Basis Class For BSP Element Handlers

"! Basis class for BSP element handlers basis_class_bsp_element_hdlr TYPE ty_category VALUE '70', - "!

Web Dynpro runtime object

+ "!

Web Dynpro Runtime Object

"! Web Dynpro runtime object web_dynpro_runtime_object TYPE ty_category VALUE '80', END OF co_category.