Initialize ADT context after start with package

- Open abapGit with package from ADT just once
- Initialzie ADT context because it is kept in shared memory
This commit is contained in:
Christian Guenter 2018-12-03 11:36:32 +01:00 committed by Lars Hvam
parent b15b503d49
commit 746b114223

View File

@ -278,6 +278,14 @@ CLASS zcl_abapgit_services_abapgit IMPLEMENTATION.
WITH KEY name = 'p_package_name'. WITH KEY name = 'p_package_name'.
IF sy-subrc = 0. IF sy-subrc = 0.
rv_package = <ls_field>-value. rv_package = <ls_field>-value.
" We want to open the repo just once. Therefore we delete the parameters
" and initialize the ADT context.
CLEAR <lv_parameters>.
CALL METHOD ('CL_ADT_GUI_INTEGRATION_CONTEXT')=>initialize_instance
EXPORTING
context_info = <ls_context>.
ENDIF. ENDIF.
CATCH cx_root. CATCH cx_root.