mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Add "Refresh" to repository list
Initialize repo list from database
This commit is contained in:
parent
8e02089f8f
commit
24b7e4faf6
|
@ -1,9 +1,10 @@
|
||||||
CLASS zcl_abapgit_gui_buttons DEFINITION
|
CLASS zcl_abapgit_gui_buttons DEFINITION
|
||||||
PUBLIC
|
PUBLIC
|
||||||
FINAL
|
FINAL
|
||||||
CREATE PUBLIC .
|
CREATE PUBLIC.
|
||||||
|
|
||||||
PUBLIC SECTION.
|
PUBLIC SECTION.
|
||||||
|
|
||||||
CLASS-METHODS new_online
|
CLASS-METHODS new_online
|
||||||
RETURNING VALUE(rv_html_string) TYPE string.
|
RETURNING VALUE(rv_html_string) TYPE string.
|
||||||
|
|
||||||
|
@ -28,6 +29,9 @@ CLASS zcl_abapgit_gui_buttons DEFINITION
|
||||||
CLASS-METHODS experimental
|
CLASS-METHODS experimental
|
||||||
RETURNING VALUE(rv_html_string) TYPE string.
|
RETURNING VALUE(rv_html_string) TYPE string.
|
||||||
|
|
||||||
|
CLASS-METHODS refresh
|
||||||
|
RETURNING VALUE(rv_html_string) TYPE string.
|
||||||
|
|
||||||
PROTECTED SECTION.
|
PROTECTED SECTION.
|
||||||
PRIVATE SECTION.
|
PRIVATE SECTION.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
@ -51,6 +55,11 @@ CLASS zcl_abapgit_gui_buttons IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
METHOD flow.
|
||||||
|
rv_html_string = zcl_abapgit_html=>icon( 'flow' ) && ' Flow'.
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD help.
|
METHOD help.
|
||||||
rv_html_string = zcl_abapgit_html=>icon(
|
rv_html_string = zcl_abapgit_html=>icon(
|
||||||
iv_name = 'question-circle-solid'
|
iv_name = 'question-circle-solid'
|
||||||
|
@ -68,8 +77,10 @@ CLASS zcl_abapgit_gui_buttons IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD flow.
|
METHOD refresh.
|
||||||
rv_html_string = zcl_abapgit_html=>icon( 'flow' ) && ' Flow'.
|
rv_html_string = zcl_abapgit_html=>icon(
|
||||||
|
iv_name = 'redo-alt-solid'
|
||||||
|
iv_hint = 'Refresh' ).
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@ CLASS zcl_abapgit_gui_page_repo_over DEFINITION
|
||||||
select TYPE string VALUE 'select',
|
select TYPE string VALUE 'select',
|
||||||
apply_filter TYPE string VALUE 'apply_filter',
|
apply_filter TYPE string VALUE 'apply_filter',
|
||||||
label_filter TYPE string VALUE 'label_filter',
|
label_filter TYPE string VALUE 'label_filter',
|
||||||
|
refresh_list TYPE string VALUE 'refresh_list',
|
||||||
END OF c_action,
|
END OF c_action,
|
||||||
c_label_filter_prefix TYPE string VALUE `label:`,
|
c_label_filter_prefix TYPE string VALUE `label:`,
|
||||||
c_raw_field_suffix TYPE string VALUE `_RAW` ##NO_TEXT.
|
c_raw_field_suffix TYPE string VALUE `_RAW` ##NO_TEXT.
|
||||||
|
@ -932,6 +933,11 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
save_settings( ).
|
save_settings( ).
|
||||||
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
|
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
|
||||||
|
|
||||||
|
WHEN c_action-refresh_list.
|
||||||
|
|
||||||
|
zcl_abapgit_repo_srv=>get_instance( )->init( ).
|
||||||
|
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
|
||||||
|
|
||||||
ENDCASE.
|
ENDCASE.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
@ -983,6 +989,11 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
ls_hotkey_action-hotkey = |a|.
|
ls_hotkey_action-hotkey = |a|.
|
||||||
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
|
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
|
||||||
|
|
||||||
|
ls_hotkey_action-description = |Refresh|.
|
||||||
|
ls_hotkey_action-action = c_action-refresh_list.
|
||||||
|
ls_hotkey_action-hotkey = |r|.
|
||||||
|
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
|
||||||
|
|
||||||
" registered/handled in js
|
" registered/handled in js
|
||||||
ls_hotkey_action-description = |Previous Repository|.
|
ls_hotkey_action-description = |Previous Repository|.
|
||||||
ls_hotkey_action-action = `#`.
|
ls_hotkey_action-action = `#`.
|
||||||
|
@ -1024,6 +1035,9 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
|
||||||
)->add(
|
)->add(
|
||||||
iv_txt = zcl_abapgit_gui_buttons=>settings( )
|
iv_txt = zcl_abapgit_gui_buttons=>settings( )
|
||||||
iv_act = zif_abapgit_definitions=>c_action-go_settings
|
iv_act = zif_abapgit_definitions=>c_action-go_settings
|
||||||
|
)->add(
|
||||||
|
iv_txt = zcl_abapgit_gui_buttons=>refresh( )
|
||||||
|
iv_act = c_action-refresh_list
|
||||||
)->add(
|
)->add(
|
||||||
iv_txt = zcl_abapgit_gui_buttons=>advanced( )
|
iv_txt = zcl_abapgit_gui_buttons=>advanced( )
|
||||||
io_sub = zcl_abapgit_gui_menus=>advanced( )
|
io_sub = zcl_abapgit_gui_menus=>advanced( )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user