New UserExit at REPO TOOLBAR for adding custom repo settings (#6249)

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Jorge Sancho 2023-05-04 09:08:05 +02:00 committed by GitHub
parent 6d58152426
commit 04a0d256b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View File

@ -379,4 +379,15 @@ CLASS zcl_abapgit_exit IMPLEMENTATION.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_exit~enhance_repo_toolbar.
IF gi_exit IS NOT INITIAL.
TRY.
gi_exit->enhance_repo_toolbar(
io_menu = io_menu
iv_key = iv_key
iv_act = iv_act ).
CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER.
ENDTRY.
ENDIF.
ENDMETHOD.
ENDCLASS.

View File

@ -132,4 +132,9 @@ INTERFACE zif_abapgit_exit
IMPORTING
!is_repo_meta TYPE zif_abapgit_persistence=>ty_repo
!ii_html TYPE REF TO zif_abapgit_html .
METHODS enhance_repo_toolbar
IMPORTING
!io_menu TYPE REF TO zcl_abapgit_html_toolbar
!iv_key TYPE zif_abapgit_persistence=>ty_value
!iv_act TYPE string.
ENDINTERFACE.

View File

@ -1416,6 +1416,11 @@ CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
iv_act = |{ zif_abapgit_definitions=>c_action-repo_infos }?key={ iv_key }|
iv_cur = boolc( iv_act = zif_abapgit_definitions=>c_action-repo_infos ) ).
zcl_abapgit_exit=>get_instance( )->enhance_repo_toolbar(
io_menu = ro_menu
iv_key = iv_key
iv_act = iv_act ).
ENDMETHOD.