From a93dd6fc161ea323d178543338a8da2412bf1b01 Mon Sep 17 00:00:00 2001 From: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:10:48 +0200 Subject: [PATCH] Update abaplint.jsonc (#1367) * Update abaplint.jsonc * Update abaplint.jsonc * Update abaplint.jsonc * update * update --- abaplint.jsonc | 341 ------ ci/abaplint.jsonc | 6 +- src/01/01/z2ui5_cl_core_attri_srv.clas.abap | 4 +- ...i5_cl_core_attri_srv.clas.testclasses.abap | 6 +- src/01/01/z2ui5_cl_core_diss_srv.clas.abap | 2 +- ...i5_cl_core_draft_srv.clas.testclasses.abap | 6 +- src/01/01/z2ui5_cl_core_json_srv.clas.abap | 4 +- .../z2ui5_cl_core_app.clas.testclasses.abap | 2 +- src/01/02/z2ui5_cl_core_client.clas.abap | 12 +- src/01/02/z2ui5_cl_core_http_post.clas.abap | 6 +- src/01/03/z2ui5_cl_core_app_error.clas.abap | 4 +- src/01/03/z2ui5_cl_core_app_startup.clas.abap | 2 +- src/01/04/z2ui5_cl_cc_debug_tool.clas.abap | 332 +++--- src/01/04/z2ui5_cl_cc_info.clas.abap | 16 +- src/02/01/z2ui5_cl_pop_file_dl.clas.abap | 4 +- src/02/01/z2ui5_cl_pop_get_range.clas.abap | 6 +- src/02/01/z2ui5_cl_pop_get_range_m.clas.abap | 2 +- src/02/01/z2ui5_cl_pop_js_loader.clas.abap | 2 +- src/02/01/z2ui5_cl_pop_textedit.clas.abap | 8 +- src/02/01/z2ui5_cl_pop_to_select.clas.abap | 16 +- src/02/z2ui5_cl_xml_view.clas.abap | 972 +++++++++--------- src/02/z2ui5_cl_xml_view_cc.clas.abap | 8 +- 22 files changed, 710 insertions(+), 1051 deletions(-) delete mode 100644 abaplint.jsonc diff --git a/abaplint.jsonc b/abaplint.jsonc deleted file mode 100644 index be585267..00000000 --- a/abaplint.jsonc +++ /dev/null @@ -1,341 +0,0 @@ -{ - "global": { - "files": "/src/**/*.*", - "noIssues": [ "/src/01/00" ] - }, - "dependencies": [ - { - "url": "https://github.com/abapedia/steampunk-2305-api-intersect-702", - "folder": "/deps", - "files": "/src/**/*.*" - } - ], - "syntax": { - "version": "v750", - "errorNamespace": "." - }, - "rules": { - "7bit_ascii": true, - "abapdoc": false, - "sql_value_conversion" : true, - "select_single_full_key" : true, - "strict_sql" : true, - "easy_to_find_messages" : true, - "fully_type_itabs" : true, - "align_parameters": false, - "smim_consistency": true, - "allowed_object_naming": true, - "allowed_object_types": { - "allowed": [ - "CLAS", - "DEVC", - "INTF", - "TABL", - ] - }, - "ambiguous_statement": true, - "avoid_use": { - "exclude": ["z2ui5_cl_util_stmpncfctn.clas.abap"], - "severity": "Error", - "skipQuickFix": false, - "define": true, - "statics": true, - "defaultKey": true, - "break": true, - "testSeams": true, - "describeLines": true, - "exportToMemory": true, - "exportToDatabase": true -}, - "begin_end_names": true, - "begin_single_include": true, - "call_transaction_authority_check": true, - "cds_comment_style": true, - "cds_legacy_view": true, - "cds_parser_error": true, - "chain_mainly_declarations": true, - "change_if_to_case": true, - "check_abstract": true, - "check_comments": true, - "check_ddic": true, - "check_include": true, - "check_subrc": true, - "check_syntax": true, - "check_text_elements": true, - "check_transformation_exists": true, - "class_attribute_names": false, - "classic_exceptions_overlap": true, - "cloud_types": true, - "colon_missing_space": true, - "commented_code": false, - "constant_classes": true, - "constructor_visibility_public": true, - "contains_tab": { - "exclude": [], - "severity": "Error", - "spaces": 1 - }, - "cyclic_oo": false, - "cyclomatic_complexity": { - "exclude": [], - "severity": "Error", - "max": 8 - }, - "dangerous_statement": { - "exclude": [], - "severity": "Error", - "execSQL": true, - "kernelCall": true, - "systemCall": true, - "insertReport": true, - "generateDynpro": true, - "generateReport": true, - "generateSubroutine": true, - "deleteReport": true, - "deleteTextpool": true, - "deleteDynpro": true, - "exportDynpro": true, - "dynamicSQL": true -}, - "db_operation_in_loop": true, - "definitions_top": false, - "description_empty": true, - "double_space": false, - "downport": true, - "empty_line_in_statement": true, - "empty_statement": true, - "empty_structure": { - "loop": false, - "if": true, - "while": true, - "case": true, - "select": true, - "do": true, - "at": true, - "try": true, - "when": false - }, - "exit_or_check": true, - "expand_macros": true, - "exporting": true, - "forbidden_identifier": true, - "forbidden_pseudo_and_pragma": { - "exclude": [], - "severity": "Error", - "pseudo": [], - "pragmas": [], - "ignoreGlobalClassDefinition": false, - "ignoreGlobalInterface": false - }, - "form_tables_obsolete": true, - "fully_type_constants": { - "checkData": true - }, - "function_module_recommendations": true, - "functional_writing": { - "ignoreExceptions": true - }, - "global_class": true, - "identical_conditions": true, - "identical_contents": true, - "identical_descriptions": true, - "identical_form_names": true, - "if_in_if": true, - "implement_methods": true, - "in_statement_indentation": false, - "indentation": false, - "inline_data_old_versions": true, - "intf_referencing_clas": false, - "keep_single_parameter_on_one_line": false, - "keyword_case": false, - "line_break_multiple_parameters": false, - "line_break_style": true, - "line_length": false, - "line_only_punc": false, - "local_class_naming": false, - "local_testclass_consistency": true, - "local_variable_names": false, - "main_file_contents": true, - "many_parentheses": true, - "max_one_method_parameter_per_line": true, - "max_one_statement": true, - "message_exists": true, - "method_implemented_twice": true, - "method_length": false, - "method_overwrites_builtin": false, - "method_parameter_names": false, - "mix_returning": true, - "modify_only_own_db_tables": { - "reportDynamic": true, - "ownTables": "^[yz]" - }, - "msag_consistency": true, - "names_no_dash": true, - "nesting": { - "depth": 5 - }, - "newline_between_methods": true, - "no_aliases": true, - "no_chained_assignment": true, - "no_external_form_calls": true, - "no_inline_in_optional_branches": false, - "no_public_attributes": false, - "no_yoda_conditions": true, - "nrob_consistency": true, - "object_naming": { - "exclude": [], - "severity": "Error", - "patternKind": "required", - "ignoreNames": [], - "ignorePatterns": [], - "clas": "^Z2UI5_C(L|X)", - "intf": "^Z2UI5_IF", - "prog": "^Z", - "fugr": "^Z", - "tabl": "^Z", - "ttyp": "^Z", - "dtel": "^Z", - "doma": "^Z", - "msag": "^Z", - "tran": "^Z", - "enqu": "^EZ", - "auth": "^Z", - "pinf": "^Z", - "idoc": "^Z", - "xslt": "^Z", - "ssfo": "^Z", - "ssst": "^Z", - "shlp": "^Z" - }, - "obsolete_statement": true, - "omit_parameter_name": true, - "omit_preceding_zeros": true, - "omit_receiving": true, - "parser_702_chaining": true, - "parser_error": true, - "parser_missing_space": true, - "pragma_style": true, - "prefer_corresponding": true, - "prefer_inline": false, - "prefer_is_not": true, - "prefer_raise_exception_new": true, - "prefer_returning_to_exporting": true, - "prefer_xsdbool": true, - "preferred_compare_operator": true, - "prefix_is_current_class": { - "severity": "Warning" - }, - "reduce_string_templates": true, - "release_idoc": true, - "remove_descriptions": { - "exclude": [], - "severity": "Error", - "ignoreExceptions": false, - "ignoreWorkflow": true - }, - "rfc_error_handling": true, - "select_add_order_by": false, - "select_performance": true, - "selection_screen_naming": true, - "sequential_blank": { - "severity": "Warning" - }, - "short_case": true, - "sicf_consistency": true, - "slow_parameter_passing": true, - "space_before_colon": true, - "space_before_dot": true, - "sql_escape_host_variables": true, - "start_at_tab": false, - "static_call_via_instance": { - "allowInTestclassIncludes": false - }, - "superclass_final": true, - "superfluous_value": true, - "sy_modification": true, - "tabl_enhancement_category": true, - "try_without_catch": true, - "type_form_parameters": true, - "types_naming": false, - "uncaught_exception": true, - "unknown_types": true, - "unnecessary_chaining": true, - "unnecessary_pragma": true, - "unnecessary_return": true, - "unreachable_code": true, - "unsecure_fae": false, - "unused_ddic": true, - "unused_methods": true, - "unused_types": true, - "unused_variables": { - "severity": "Error", - "skipNames": ["lv_dummy"] - }, - "use_bool_expression": true, - "use_class_based_exceptions": true, - "use_line_exists": true, - "use_new": true, - "when_others_last": true, - "whitespace_end": true, - "xml_consistency": true, - "forbidden_void_type": { - "check": [ - "^boole_d$", - "^char10$", - "^char12$", - "^char2$", - "^char20$", - "^char30$", - "^char4$", - "^char50$", - "^char70$", - "^cl_abap_syst", - "^cl_aff_", - "^cl_aucv_test_runner_abstract$", - "^cl_aucv_test_runner_standard$", - "^cl_aunit_assert$", - "^cl_axt_dbtable$", - "^cl_blue_wb_utility$", - "^cl_oo_source$", - "^/ui2/cl_$", - "^/ui2/cl_", - "^cl_saunit_internal_result$", - "^cl_srvd_wb_object_data$", - "^cl_wb_object_operator_factory$", - "^cl_wer_const$", - "^cl_xco_", - "^cx_aff_", - "^cx_wb_object_operation_error$", - "^cx_xco_", - "^flag$", - "^i18_a_langiso2$", - "^if_adt_lock_handle$", - "^if_aff_", - "^if_satc_ci_variant_access$", - "^if_saunit_internal_result$", - "^if_saunit_internal_result_type$", - "^if_srvd_types$", - "^if_wb_adt_plugin_resource_co$", - "^if_wb_object_data_selection_co$", - "^if_wb_object_operator$", - "^if_xco_", - "^int4$", - "^numc2$", - "^sabp_t_tadir_keys$", - "^sap_bool$", - "^srcsystem$", - "^stringtab$", - "^sychar01$", - "^sychar10$", - "^sychar70$", - "^sydatum$", - "^sylangu$", - "^syst_title$", - "^syuzeit$", - "^xubname$", - "^feld$", - "^abap_boolean$", - ] - }, - } -} diff --git a/ci/abaplint.jsonc b/ci/abaplint.jsonc index 802dfa8e..27856051 100644 --- a/ci/abaplint.jsonc +++ b/ci/abaplint.jsonc @@ -22,7 +22,7 @@ "strict_sql" : true, "easy_to_find_messages" : true, "fully_type_itabs" : true, - "align_parameters": false, + "align_parameters": true, "smim_consistency": true, "allowed_object_naming": true, "allowed_object_types": { @@ -158,7 +158,7 @@ "inline_data_old_versions": true, "intf_referencing_clas": false, "keep_single_parameter_on_one_line": false, - "keyword_case": false, + "keyword_case": true, "line_break_multiple_parameters": false, "line_break_style": true, "line_length": false, @@ -242,7 +242,7 @@ "exclude": [], "severity": "Error", "ignoreExceptions": false, - "ignoreWorkflow": true + "ignoreWorkflow": false }, "rfc_error_handling": true, "select_add_order_by": false, diff --git a/src/01/01/z2ui5_cl_core_attri_srv.clas.abap b/src/01/01/z2ui5_cl_core_attri_srv.clas.abap index 50aec6b2..973dba3f 100644 --- a/src/01/01/z2ui5_cl_core_attri_srv.clas.abap +++ b/src/01/01/z2ui5_cl_core_attri_srv.clas.abap @@ -47,7 +47,7 @@ CLASS z2ui5_cl_core_attri_srv IMPLEMENTATION. LOOP AT mt_attri->* REFERENCE INTO DATA(lr_attri). TRY. lr_attri->r_ref = attri_get_val_ref( lr_attri->name ). - lr_attri->o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_attri->r_ref ). + lr_attri->o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_attri->r_ref ). IF lr_attri->srtti_data IS NOT INITIAL. ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(). @@ -126,7 +126,7 @@ CLASS z2ui5_cl_core_attri_srv IMPLEMENTATION. """"" new DATA(lt_attri) = mt_attri->*. - DELETE lt_attri WHERE BIND_type IS INITIAL. + DELETE lt_attri WHERE bind_type IS INITIAL. CLEAR mt_attri->*. DO 5 TIMES. diff --git a/src/01/01/z2ui5_cl_core_attri_srv.clas.testclasses.abap b/src/01/01/z2ui5_cl_core_attri_srv.clas.testclasses.abap index 3ca76ada..5664d4a5 100644 --- a/src/01/01/z2ui5_cl_core_attri_srv.clas.testclasses.abap +++ b/src/01/01/z2ui5_cl_core_attri_srv.clas.testclasses.abap @@ -46,7 +46,7 @@ CLASS ltcl_test_search_attri IMPLEMENTATION. GET REFERENCE OF lo_app_client->mv_value INTO lr_value. DATA(lt_attri) = VALUE z2ui5_if_core_types=>ty_t_attri( ( - r_ref = lr_value + r_ref = lr_value o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_value ) ) ). @@ -69,7 +69,7 @@ CLASS ltcl_test_search_attri IMPLEMENTATION. GET REFERENCE OF lo_app_client->mv_value INTO lr_value. DATA(lt_attri) = VALUE z2ui5_if_core_types=>ty_t_attri( ( - r_ref = REF #( lo_app_client->mv_value ) + r_ref = REF #( lo_app_client->mv_value ) o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_value ) ) ). @@ -96,7 +96,7 @@ CLASS ltcl_test_search_attri IMPLEMENTATION. DATA(lt_attri) = VALUE z2ui5_if_core_types=>ty_t_attri( ( name = `1` r_ref = REF #( lo_app_client->mr_value ) ) ( name = `4` r_ref = REF #( lo_app_client->mr_value2 ) ) - ( name = `2` r_ref = REF #( lo_app_client->mo_app ) ) + ( name = `2` r_ref = REF #( lo_app_client->mo_app ) ) ( name = `3` r_ref = REF #( lo_app_client->mv_value ) ) ). DATA(lr_attri) = REF #( lt_attri[ r_ref = lr_value ] ). diff --git a/src/01/01/z2ui5_cl_core_diss_srv.clas.abap b/src/01/01/z2ui5_cl_core_diss_srv.clas.abap index 47575d73..50dc2812 100644 --- a/src/01/01/z2ui5_cl_core_diss_srv.clas.abap +++ b/src/01/01/z2ui5_cl_core_diss_srv.clas.abap @@ -119,7 +119,7 @@ CLASS z2ui5_cl_core_diss_srv IMPLEMENTATION. AND is_constant = abap_false. TRY. DATA(lv_name) = COND #( WHEN ir_attri->name IS NOT INITIAL THEN ir_attri->name && `->` ) && lr_attri->name. - DATA(ls_new) = create_new_entry( lv_name ). + DATA(ls_new) = create_new_entry( lv_name ). INSERT ls_new INTO TABLE result. CATCH cx_root. diff --git a/src/01/01/z2ui5_cl_core_draft_srv.clas.testclasses.abap b/src/01/01/z2ui5_cl_core_draft_srv.clas.testclasses.abap index 20514f11..e7a63c6a 100644 --- a/src/01/01/z2ui5_cl_core_draft_srv.clas.testclasses.abap +++ b/src/01/01/z2ui5_cl_core_draft_srv.clas.testclasses.abap @@ -27,11 +27,11 @@ CLASS ltcl_test IMPLEMENTATION. model_xml = `my xml` ). - DATA(ls_db) = lo_draft->read_draft( `TEST_ID` ). + DATA(ls_db) = lo_draft->read_draft( `TEST_ID` ). cl_abap_unit_assert=>assert_equals( - act = ls_db-data - exp = `my xml` ). + act = ls_db-data + exp = `my xml` ). ENDMETHOD. diff --git a/src/01/01/z2ui5_cl_core_json_srv.clas.abap b/src/01/01/z2ui5_cl_core_json_srv.clas.abap index 33bc0c5a..b70c96e3 100644 --- a/src/01/01/z2ui5_cl_core_json_srv.clas.abap +++ b/src/01/01/z2ui5_cl_core_json_srv.clas.abap @@ -50,7 +50,7 @@ CLASS z2ui5_cl_core_json_srv IMPLEMENTATION. LOOP AT t_attri->* REFERENCE INTO DATA(lr_attri) WHERE bind_type = z2ui5_if_core_types=>cs_bind_type-two_way - AND view = lv_view. + AND view = lv_view. TRY. DATA(lo_val_front) = model->slice( lr_attri->name_client ). @@ -99,7 +99,7 @@ CLASS z2ui5_cl_core_json_srv IMPLEMENTATION. ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(). ASSERT sy-subrc = 0. - ajson->set( iv_ignore_empty = abap_false iv_path = `/` iv_val = ). + ajson->set( iv_ignore_empty = abap_false iv_path = `/` iv_val = ). WHEN z2ui5_if_core_types=>cs_bind_type-one_time. ajson->set( iv_ignore_empty = abap_false iv_path = `/` iv_val = lr_attri->json_bind_local ). diff --git a/src/01/02/z2ui5_cl_core_app.clas.testclasses.abap b/src/01/02/z2ui5_cl_core_app.clas.testclasses.abap index 99e8275b..4598c4df 100644 --- a/src/01/02/z2ui5_cl_core_app.clas.testclasses.abap +++ b/src/01/02/z2ui5_cl_core_app.clas.testclasses.abap @@ -62,7 +62,7 @@ CLASS ltcl_test_db IMPLEMENTATION. cl_abap_unit_assert=>assert_equals( act = lo_app_user_db->mv_value - exp = lo_app_user->mv_value ). + exp = lo_app_user->mv_value ). ENDMETHOD. diff --git a/src/01/02/z2ui5_cl_core_client.clas.abap b/src/01/02/z2ui5_cl_core_client.clas.abap index f05a621d..30c46659 100644 --- a/src/01/02/z2ui5_cl_core_client.clas.abap +++ b/src/01/02/z2ui5_cl_core_client.clas.abap @@ -92,7 +92,7 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION. textdirection = textdirection icon = icon details = details - closeOnNavigation = closeOnNavigation + closeonnavigation = closeonnavigation ). ENDMETHOD. @@ -127,7 +127,7 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION. IF app->id_app IS INITIAL. app->id_app = z2ui5_cl_util=>uuid_get_c32( ). ENDIF. - result = app->id_app. + result = app->id_app. ENDMETHOD. @@ -142,7 +142,7 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION. IF app->id_app IS INITIAL. app->id_app = z2ui5_cl_util=>uuid_get_c32( ). ENDIF. - result = app->id_app. + result = app->id_app. ENDMETHOD. @@ -312,9 +312,9 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION. DATA(lo_ui5) = NEW z2ui5_cl_core_event_srv( ). result = lo_ui5->get_event( - val = val - t_arg = t_arg - s_cnt = s_ctrl ). + val = val + t_arg = t_arg + s_cnt = s_ctrl ). ENDMETHOD. diff --git a/src/01/02/z2ui5_cl_core_http_post.clas.abap b/src/01/02/z2ui5_cl_core_http_post.clas.abap index 70ae33d2..5db6f76b 100644 --- a/src/01/02/z2ui5_cl_core_http_post.clas.abap +++ b/src/01/02/z2ui5_cl_core_http_post.clas.abap @@ -83,9 +83,9 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION. METHOD main_end. ms_response = VALUE #( - s_front-params = mo_action->ms_next-s_set - s_front-id = mo_action->mo_app->ms_draft-id - s_front-app = z2ui5_cl_util=>rtti_get_classname_by_ref( mo_action->mo_app->mo_app ) + s_front-params = mo_action->ms_next-s_set + s_front-id = mo_action->mo_app->ms_draft-id + s_front-app = z2ui5_cl_util=>rtti_get_classname_by_ref( mo_action->mo_app->mo_app ) ). IF ms_response-s_front-params-s_view-check_update_model = abap_true diff --git a/src/01/03/z2ui5_cl_core_app_error.clas.abap b/src/01/03/z2ui5_cl_core_app_error.clas.abap index ef0bdb3f..4737d9a0 100644 --- a/src/01/03/z2ui5_cl_core_app_error.clas.abap +++ b/src/01/03/z2ui5_cl_core_app_error.clas.abap @@ -46,13 +46,13 @@ CLASS z2ui5_cl_core_app_error IMPLEMENTATION. DATA(view) = z2ui5_cl_xml_view=>factory( ). DATA(vbox) = view->shell( )->vbox( alignitems = `Center` ). - vbox->text( ). + vbox->text( ). vbox->hbox( )->icon( src = `sap-icon://alert` )->text( )->title( `500 Internal Server Error` )->text( - )->icon( src = `sap-icon://alert` ). + )->icon( src = `sap-icon://alert` ). vbox->formatted_text( lv_text ). vbox->hbox( )->button( diff --git a/src/01/03/z2ui5_cl_core_app_startup.clas.abap b/src/01/03/z2ui5_cl_core_app_startup.clas.abap index c323cc62..f0b3b9fc 100644 --- a/src/01/03/z2ui5_cl_core_app_startup.clas.abap +++ b/src/01/03/z2ui5_cl_core_app_startup.clas.abap @@ -80,7 +80,7 @@ CLASS Z2UI5_CL_CORE_APP_STARTUP IMPLEMENTATION. METHOD view_display_start. DATA(page2) = z2ui5_cl_xml_view=>factory( )->shell( )->page( - title = `abap2UI5 - Developing UI5 Apps Purely in ABAP` + title = `abap2UI5 - Developing UI5 Apps Purely in ABAP` shownavbutton = abap_false ). page2->header_content( diff --git a/src/01/04/z2ui5_cl_cc_debug_tool.clas.abap b/src/01/04/z2ui5_cl_cc_debug_tool.clas.abap index f7fe06ee..d75ee430 100644 --- a/src/01/04/z2ui5_cl_cc_debug_tool.clas.abap +++ b/src/01/04/z2ui5_cl_cc_debug_tool.clas.abap @@ -21,143 +21,143 @@ CLASS z2ui5_cl_cc_debug_tool IMPLEMENTATION. METHOD get_js. - result = `` && |\n| && - `if (!z2ui5.DebuggingTools) { sap.ui.define( "z2ui5/DebuggingTools" ,[` && |\n| && - ` "sap/ui/core/Control",` && |\n| && - ` "sap/ui/core/Fragment",` && |\n| && - ` "sap/ui/model/json/JSONModel"` && |\n| && - `], (Control, Fragment, JSONModel) => {` && |\n| && - ` "use strict";` && |\n| && - |\n| && - ` return Control.extend("project1.control.DebuggingTools", {` && |\n| && - ` metadata: {` && |\n| && - ` properties: {` && |\n| && - ` checkLoggingActive: {` && |\n| && - ` type: "boolean",` && |\n| && - ` defaultValue: ""` && |\n| && - ` }` && |\n| && - ` },` && |\n| && - ` events: {` && |\n| && - ` "finished": {` && |\n| && - ` allowPreventDefault: true,` && |\n| && - ` parameters: {},` && |\n| && - ` }` && |\n| && - ` }` && |\n| && - ` },` && |\n| && - |\n| && - ` async show() {` && |\n| && - |\n| && - ` var oFragmentController = {` && |\n| && - ` prettifyXml: function (sourceXml) {` && |\n| && - ` var xmlDoc = new DOMParser().parseFromString(sourceXml, 'application/xml');` && |\n| && -` // describes how we want to modify the XML - indent everything` && |\n| && + result = `` && |\n| && + `if (!z2ui5.DebuggingTools) { sap.ui.define( "z2ui5/DebuggingTools" ,[` && |\n| && + ` "sap/ui/core/Control",` && |\n| && + ` "sap/ui/core/Fragment",` && |\n| && + ` "sap/ui/model/json/JSONModel"` && |\n| && + `], (Control, Fragment, JSONModel) => {` && |\n| && + ` "use strict";` && |\n| && + |\n| && + ` return Control.extend("project1.control.DebuggingTools", {` && |\n| && + ` metadata: {` && |\n| && + ` properties: {` && |\n| && + ` checkLoggingActive: {` && |\n| && + ` type: "boolean",` && |\n| && + ` defaultValue: ""` && |\n| && + ` }` && |\n| && + ` },` && |\n| && + ` events: {` && |\n| && + ` "finished": {` && |\n| && + ` allowPreventDefault: true,` && |\n| && + ` parameters: {},` && |\n| && + ` }` && |\n| && + ` }` && |\n| && + ` },` && |\n| && + |\n| && + ` async show() {` && |\n| && + |\n| && + ` var oFragmentController = {` && |\n| && + ` prettifyXml: function (sourceXml) {` && |\n| && + ` var xmlDoc = new DOMParser().parseFromString(sourceXml, 'application/xml');` && |\n| && +` // describes how we want to modify the XML - indent everything` && |\n| && ` var sParse = unescape( '%3Cxsl%3Astylesheet%20xmlns%3Axsl%3D%22http%3A//www.w3.org/1999/XSL/Transform%22%3E%0A%20%20%3Cxsl%3Astrip-space%20elements%3D%22*%22/%3E%0A%20%20%3Cxsl%3Atemplate%20match%3D%22para%5Bconten` && `t-style%5D%5Bnot%28text%28%29%29%5` && `D%22%3E%0A%20%20%20%20%3Cxsl%3Avalue-of%20select%3D%22normalize-space%28.%29%22/%3E%0A%20%20%3C/xsl%3Atemplate%3E%0A%20%20%3Cxsl%3Atemplate%20match%3D%22node%28%29%7C@*%22%3E%0A%20%20%20%20%3Cxsl%3Acopy%3E%3Cxsl%3Aapply-templates%20select%3D%22node` && -`%28%29%7C@*%22/%3E%3C/xsl%3Acopy%3E%0A%20%20%3C/xsl%3Atemplate%3E%0A%20%20%3Cxsl%3Aoutput%20indent%3D%22yes%22/%3E%0A%3C/xsl%3Astylesheet%3E' )` && |\n| && - ` var xsltDoc = new DOMParser().parseFromString(sParse , 'application/xml');` && |\n| && - ` ` && |\n| && - ` var xsltProcessor = new XSLTProcessor(); ` && |\n| && - ` xsltProcessor.importStylesheet(xsltDoc);` && |\n| && - ` var resultDoc = xsltProcessor.transformToDocument(xmlDoc);` && |\n| && - ` var resultXml = new XMLSerializer().serializeToString(resultDoc);` && |\n| && - ` return resultXml.replace(/>/g, ">");` && |\n| && - ` },` && |\n| && - ` onItemSelect: function (oEvent) {` && |\n| && - ` let selItem = oEvent.getSource().getSelectedItem();` && |\n| && - ` ` && |\n| && - ` if (selItem == 'MODEL') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oView?.getModel()?.getData(), null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'VIEW') {` && |\n| && - ` if( sap?.z2ui5?.oView?.mProperties?.viewContent !== undefined ) {` && |\n| && - ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oView?.mProperties?.viewContent ) , 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| && - ` } else {` && |\n| && - ` this.displayEditor( oEvent, this.prettifyXml( sap.z2ui5.responseData.S_FRONT.PARAMS.S_VIEW.XML ), 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| && - ` }` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'PLAIN') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.responseData, null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'REQUEST') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.oBody, null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'POPUP') {` && |\n| && - ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oResponse?.PARAMS?.S_POPUP?.XML ) , 'xml' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'POPUP_MODEL') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify( sap.z2ui5.oViewPopup.getModel().getData(), null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'POPOVER') {` && |\n| && - ` this.displayEditor( oEvent, sap?.z2ui5?.oResponse?.PARAMS?.S_POPOVER?.XML , 'xml' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'POPOVER_MODEL') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewPopover?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'NEST1') {` && |\n| && - ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest?._xContent.outerHTML) );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'NEST1_MODEL') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'NEST2') {` && |\n| && - ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest2?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest2?._xContent.outerHTML) );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'NEST2_MODEL') {` && |\n| && - ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest2?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| && - ` return;` && |\n| && - ` }` && |\n| && - ` if (selItem == 'SOURCE') {` && |\n| && - ` let content= oEvent.getSource().getParent().getItems()[1].getItems()[0].getProperty( "content");` && |\n| && - ` let url = window.location.origin + "/sap/bc/adt/oo/classes/" + sap.z2ui5.responseData.S_FRONT.APP + "/source/main";` && |\n| && +`%28%29%7C@*%22/%3E%3C/xsl%3Acopy%3E%0A%20%20%3C/xsl%3Atemplate%3E%0A%20%20%3Cxsl%3Aoutput%20indent%3D%22yes%22/%3E%0A%3C/xsl%3Astylesheet%3E' )` && |\n| && + ` var xsltDoc = new DOMParser().parseFromString(sParse , 'application/xml');` && |\n| && + ` ` && |\n| && + ` var xsltProcessor = new XSLTProcessor(); ` && |\n| && + ` xsltProcessor.importStylesheet(xsltDoc);` && |\n| && + ` var resultDoc = xsltProcessor.transformToDocument(xmlDoc);` && |\n| && + ` var resultXml = new XMLSerializer().serializeToString(resultDoc);` && |\n| && + ` return resultXml.replace(/>/g, ">");` && |\n| && + ` },` && |\n| && + ` onItemSelect: function (oEvent) {` && |\n| && + ` let selItem = oEvent.getSource().getSelectedItem();` && |\n| && + ` ` && |\n| && + ` if (selItem == 'MODEL') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oView?.getModel()?.getData(), null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'VIEW') {` && |\n| && + ` if( sap?.z2ui5?.oView?.mProperties?.viewContent !== undefined ) {` && |\n| && + ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oView?.mProperties?.viewContent ) , 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| && + ` } else {` && |\n| && + ` this.displayEditor( oEvent, this.prettifyXml( sap.z2ui5.responseData.S_FRONT.PARAMS.S_VIEW.XML ), 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| && + ` }` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'PLAIN') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.responseData, null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'REQUEST') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.oBody, null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'POPUP') {` && |\n| && + ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oResponse?.PARAMS?.S_POPUP?.XML ) , 'xml' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'POPUP_MODEL') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify( sap.z2ui5.oViewPopup.getModel().getData(), null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'POPOVER') {` && |\n| && + ` this.displayEditor( oEvent, sap?.z2ui5?.oResponse?.PARAMS?.S_POPOVER?.XML , 'xml' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'POPOVER_MODEL') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewPopover?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'NEST1') {` && |\n| && + ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest?._xContent.outerHTML) );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'NEST1_MODEL') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'NEST2') {` && |\n| && + ` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest2?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest2?._xContent.outerHTML) );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'NEST2_MODEL') {` && |\n| && + ` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest2?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` if (selItem == 'SOURCE') {` && |\n| && + ` let content= oEvent.getSource().getParent().getItems()[1].getItems()[0].getProperty( "content");` && |\n| && + ` let url = window.location.origin + "/sap/bc/adt/oo/classes/" + sap.z2ui5.responseData.S_FRONT.APP + "/source/main";` && |\n| && * ` content = '