mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 13:03:01 +08:00

This commit adds an indirection for function module GUI_IS_AVAILABLE via interface ZIF_ABAPGIT_GUI_FUNCTIONS and factory ZCL_ABAPGIT_UI_FACTORY. For tests the implementation can be replaced with ZCL_ABAPGIT_UI_INJECTOR=>SET_GUI_FUNCTIONS
24 lines
371 B
ABAP
24 lines
371 B
ABAP
CLASS zcl_abapgit_gui_functions DEFINITION
|
|
PUBLIC
|
|
CREATE PUBLIC .
|
|
|
|
PUBLIC SECTION.
|
|
INTERFACES:
|
|
zif_abapgit_gui_functions.
|
|
|
|
ENDCLASS.
|
|
|
|
|
|
|
|
CLASS zcl_abapgit_gui_functions IMPLEMENTATION.
|
|
|
|
METHOD zif_abapgit_gui_functions~gui_is_available.
|
|
|
|
CALL FUNCTION 'GUI_IS_AVAILABLE'
|
|
IMPORTING
|
|
return = rv_gui_is_available.
|
|
|
|
ENDMETHOD.
|
|
|
|
ENDCLASS.
|