mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
GUI subclass zcx_abapgit_cancel from zcx_abapgit_exception (#2576)
* subclass zcx_abapgit_cancel from zcx_abapgit_excep * upper case
This commit is contained in:
parent
dbb1d0b8fb
commit
ecc1c85ee7
|
@ -344,10 +344,10 @@ CLASS ZCL_ABAPGIT_GUI IMPLEMENTATION.
|
|||
zcx_abapgit_exception=>raise( |Unknown action: { iv_action }| ).
|
||||
ENDCASE.
|
||||
|
||||
CATCH zcx_abapgit_exception INTO lx_exception.
|
||||
RAISE EVENT on_handle_error EXPORTING io_exception = lx_exception.
|
||||
CATCH zcx_abapgit_cancel ##NO_HANDLER.
|
||||
" Do nothing = gc_event_state-no_more_act
|
||||
CATCH zcx_abapgit_exception INTO lx_exception.
|
||||
RAISE EVENT on_handle_error EXPORTING io_exception = lx_exception.
|
||||
ENDTRY.
|
||||
|
||||
ENDMETHOD.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CLASS zcx_abapgit_cancel DEFINITION
|
||||
PUBLIC
|
||||
INHERITING FROM cx_static_check
|
||||
INHERITING FROM zcx_abapgit_exception
|
||||
FINAL
|
||||
CREATE PUBLIC .
|
||||
|
||||
|
@ -10,6 +10,5 @@ CLASS zcx_abapgit_cancel DEFINITION
|
|||
ENDCLASS.
|
||||
|
||||
|
||||
|
||||
CLASS zcx_abapgit_cancel IMPLEMENTATION.
|
||||
CLASS ZCX_ABAPGIT_CANCEL IMPLEMENTATION.
|
||||
ENDCLASS.
|
||||
|
|
|
@ -11,7 +11,6 @@ INTERFACE zif_abapgit_gui_event_handler
|
|||
ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel.
|
||||
zcx_abapgit_exception.
|
||||
|
||||
ENDINTERFACE.
|
||||
|
|
|
@ -26,8 +26,7 @@ CLASS zcl_abapgit_gui_page_db DEFINITION
|
|||
IMPORTING
|
||||
!is_key TYPE zif_abapgit_persistence=>ty_content
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS explain_content
|
||||
IMPORTING
|
||||
!is_data TYPE zif_abapgit_persistence=>ty_content
|
||||
|
|
|
@ -25,8 +25,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS abapgit_services_actions
|
||||
IMPORTING
|
||||
!is_event_data TYPE ty_event_data
|
||||
|
@ -34,8 +33,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS db_actions
|
||||
IMPORTING
|
||||
!is_event_data TYPE ty_event_data
|
||||
|
@ -43,8 +41,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS file_download
|
||||
IMPORTING
|
||||
!iv_package TYPE devclass
|
||||
|
@ -58,8 +55,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS remote_origin_manipulations
|
||||
IMPORTING
|
||||
!is_event_data TYPE ty_event_data
|
||||
|
@ -67,8 +63,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS sap_gui_actions
|
||||
IMPORTING
|
||||
!is_event_data TYPE ty_event_data
|
||||
|
@ -76,8 +71,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS zip_services
|
||||
IMPORTING
|
||||
!is_event_data TYPE ty_event_data
|
||||
|
@ -85,8 +79,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS repository_services
|
||||
IMPORTING
|
||||
!is_event_data TYPE ty_event_data
|
||||
|
@ -94,8 +87,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
!ei_page TYPE REF TO zif_abapgit_gui_renderable
|
||||
!ev_state TYPE i
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS get_page_diff
|
||||
IMPORTING
|
||||
!iv_getdata TYPE clike
|
||||
|
@ -129,8 +121,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
|
|||
RETURNING
|
||||
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS jump_display_transport
|
||||
IMPORTING
|
||||
!iv_getdata TYPE clike .
|
||||
|
|
|
@ -83,14 +83,12 @@ CLASS zcl_abapgit_popups DEFINITION
|
|||
EXPORTING ev_value_1 TYPE spo_value
|
||||
ev_value_2 TYPE spo_value
|
||||
CHANGING ct_fields TYPE ty_lt_fields
|
||||
RAISING zcx_abapgit_exception
|
||||
zcx_abapgit_cancel.
|
||||
RAISING zcx_abapgit_exception.
|
||||
METHODS validate_folder_logic
|
||||
IMPORTING
|
||||
iv_folder_logic TYPE string
|
||||
RAISING
|
||||
zcx_abapgit_exception.
|
||||
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@ CLASS zcl_abapgit_services_abapgit DEFINITION
|
|||
zcx_abapgit_exception .
|
||||
CLASS-METHODS install_abapgit
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS is_installed
|
||||
RETURNING
|
||||
VALUE(rv_devclass) TYPE tadir-devclass .
|
||||
|
|
|
@ -19,60 +19,50 @@ CLASS zcl_abapgit_services_git DEFINITION
|
|||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS reset
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS create_branch
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS switch_branch
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS delete_branch
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
|
||||
CLASS-METHODS delete_tag
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS switch_tag
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS tag_overview
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS commit
|
||||
IMPORTING
|
||||
!io_repo TYPE REF TO zcl_abapgit_repo_online
|
||||
!is_commit TYPE ty_commit_fields
|
||||
!io_stage TYPE REF TO zcl_abapgit_stage
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel.
|
||||
|
||||
zcx_abapgit_exception.
|
||||
PROTECTED SECTION.
|
||||
|
||||
CLASS-METHODS get_unnecessary_local_objs
|
||||
|
|
|
@ -11,8 +11,7 @@ CLASS zcl_abapgit_services_repo DEFINITION
|
|||
RETURNING
|
||||
VALUE(ro_repo) TYPE REF TO zcl_abapgit_repo_online
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS refresh
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
|
@ -22,42 +21,35 @@ CLASS zcl_abapgit_services_repo DEFINITION
|
|||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS purge
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS new_offline
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS remote_attach
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS remote_detach
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS remote_change
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS refresh_local_checksums
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS toggle_favorite
|
||||
IMPORTING
|
||||
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
|
||||
|
@ -72,27 +64,25 @@ CLASS zcl_abapgit_services_repo DEFINITION
|
|||
IMPORTING
|
||||
!iv_repository_key TYPE zif_abapgit_persistence=>ty_value
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS gui_deserialize
|
||||
IMPORTING
|
||||
!io_repo TYPE REF TO zcl_abapgit_repo
|
||||
RAISING
|
||||
zcx_abapgit_exception .
|
||||
PROTECTED SECTION.
|
||||
PRIVATE SECTION.
|
||||
|
||||
CLASS-METHODS popup_overwrite
|
||||
CHANGING
|
||||
!ct_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS popup_package_overwrite
|
||||
CHANGING
|
||||
!ct_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
|
|
|
@ -103,8 +103,7 @@ INTERFACE zif_abapgit_popups
|
|||
RETURNING
|
||||
VALUE(rs_transport_branch) TYPE zif_abapgit_definitions=>ty_transport_to_branch
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
METHODS popup_to_select_transports
|
||||
RETURNING
|
||||
VALUE(rt_trkorr) TYPE trwbo_request_headers .
|
||||
|
@ -117,7 +116,6 @@ INTERFACE zif_abapgit_popups
|
|||
EXPORTING
|
||||
VALUE(et_list) TYPE STANDARD TABLE
|
||||
RAISING
|
||||
zcx_abapgit_cancel
|
||||
zcx_abapgit_exception .
|
||||
METHODS branch_popup_callback
|
||||
IMPORTING
|
||||
|
@ -143,6 +141,5 @@ INTERFACE zif_abapgit_popups
|
|||
RETURNING
|
||||
VALUE(rv_transport) TYPE trkorr
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
ENDINTERFACE.
|
||||
|
|
|
@ -14,15 +14,13 @@ CLASS zcl_abapgit_zip DEFINITION
|
|||
zcx_abapgit_exception .
|
||||
CLASS-METHODS export_object
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS export_package
|
||||
EXPORTING
|
||||
!ev_xstr TYPE xstring
|
||||
!ev_package TYPE devclass
|
||||
RAISING
|
||||
zcx_abapgit_exception
|
||||
zcx_abapgit_cancel .
|
||||
zcx_abapgit_exception.
|
||||
CLASS-METHODS load
|
||||
IMPORTING
|
||||
!iv_xstr TYPE xstring
|
||||
|
|
Loading…
Reference in New Issue
Block a user