abapGit/src/utils/zif_abapgit_log.intf.abap
Martin Fuchs 4aab0166ac Pass log to deserialization API and show log (#2729)
* Pass log interface for de-serialization

Interface ZIF_ABAPGIT_LOG is now passed for deseriaization API.
This includes:
- Log messages for FUGR: Imported function modules and includes
- Improved error messages for TABL compare
- Log objects w/o changes
- Log is shown in the UI if available ("Log" entry appears if a log exists, no persistence!)
This PR enhances #2534 and #2694

Another important change: In case an object fails (or a single function module in a group fails), the import continues with the next object!

* small pretty printer changes

small pretty printer changes

* fix abaplint issues

reduce line sizes and ensure 7.02 compatibility

* show errors and warnings from pull

Errors and warnings after a pull are now part of the "message list" above the object list in the main screen and will be shown immediately. The new"Log" button shows errors, warnings and success messages on demand.
The log title is now part of the ZIF_ABAPGIT_LOG interface.

* fix abaplint issue

fix abaplint issue
2019-06-21 23:05:10 -07:00

84 lines
2.2 KiB
ABAP

INTERFACE zif_abapgit_log
PUBLIC .
TYPES:
BEGIN OF ty_log_out,
type TYPE symsgty,
text TYPE string,
obj_type TYPE trobjtype,
obj_name TYPE sobj_name,
END OF ty_log_out .
TYPES:
tty_log_out TYPE STANDARD TABLE OF ty_log_out
WITH NON-UNIQUE DEFAULT KEY .
TYPES:
BEGIN OF ty_msg,
text TYPE string,
type TYPE symsgty,
END OF ty_msg .
TYPES:
tty_msg TYPE STANDARD TABLE OF ty_msg
WITH NON-UNIQUE DEFAULT KEY .
TYPES:
BEGIN OF ty_item_status_out,
item TYPE zif_abapgit_definitions=>ty_item,
status TYPE symsgty,
messages TYPE tty_msg,
END OF ty_item_status_out .
TYPES:
tty_item_status_out TYPE SORTED TABLE OF ty_item_status_out
WITH UNIQUE KEY item-obj_type item-obj_name .
METHODS add
IMPORTING
!iv_msg TYPE csequence
!iv_type TYPE symsgty DEFAULT 'E'
!iv_rc TYPE balsort OPTIONAL
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
METHODS add_error
IMPORTING
!iv_msg TYPE csequence
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
METHODS add_info
IMPORTING
!iv_msg TYPE csequence
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
METHODS add_warning
IMPORTING
!iv_msg TYPE csequence
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
METHODS add_success
IMPORTING
!iv_msg TYPE csequence
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
METHODS add_exception
IMPORTING
!ix_exc TYPE REF TO cx_root
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
METHODS clear .
METHODS count
RETURNING
VALUE(rv_count) TYPE i .
METHODS has_rc
IMPORTING
!iv_rc TYPE balsort
RETURNING
VALUE(rv_yes) TYPE abap_bool .
METHODS get_messages
RETURNING
VALUE(rt_msg) TYPE tty_log_out .
METHODS get_item_status
EXPORTING
!et_item_status TYPE tty_item_status_out .
METHODS get_status
RETURNING
VALUE(rv_status) TYPE symsgty .
METHODS get_title
RETURNING
VALUE(rv_title) TYPE string .
METHODS set_title
IMPORTING
!iv_title TYPE string .
ENDINTERFACE.