Skip to content

Commit

Permalink
add cl_abap_browser (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp authored May 7, 2024
1 parent 3939365 commit bd57549
Show file tree
Hide file tree
Showing 15 changed files with 75 additions and 40 deletions.
7 changes: 7 additions & 0 deletions abaplint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
"check_include": true,
"uncaught_exception": true,
"cds_legacy_view": true,
"expand_macros": true,
"fully_type_itabs": true,
"cds_comment_style": true,
"change_if_to_case": true,
"dynpro_checks": true,
"easy_to_find_messages": true,
"align_type_expressions": true,
"no_external_form_calls": true,
"superfluous_value": true,
"cyclic_oo": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"license": "MIT",
"dependencies": {
"@abaplint/cli": "^2.106.8",
"@abaplint/cli": "^2.107.4",
"@abaplint/runtime": "^2.8.24",
"@abaplint/database-sqlite": "^2.8.0",
"@abaplint/transpiler-cli": "^2.8.24"
Expand Down
2 changes: 1 addition & 1 deletion src/alv/cl_alv_variant.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CLASS cl_alv_variant DEFINITION PUBLIC.

METHODS delete_variants
IMPORTING
it_variants TYPE any
it_variants TYPE any
RETURNING
VALUE(boolean) TYPE abap_bool.

Expand Down
28 changes: 28 additions & 0 deletions src/cl_abap_browser.clas.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
CLASS cl_abap_browser DEFINITION PUBLIC.
PUBLIC SECTION.
CLASS-METHODS show_xml
IMPORTING
xml_string TYPE string
title TYPE string OPTIONAL
container TYPE REF TO cl_gui_container OPTIONAL
dialog TYPE abap_bool OPTIONAL
printing TYPE abap_bool OPTIONAL.

CLASS-METHODS show_html
IMPORTING
html_string TYPE string
title TYPE string OPTIONAL
container TYPE REF TO cl_gui_container OPTIONAL
dialog TYPE abap_bool OPTIONAL
printing TYPE abap_bool OPTIONAL.
ENDCLASS.

CLASS cl_abap_browser IMPLEMENTATION.
METHOD show_xml.
RETURN.
ENDMETHOD.

METHOD show_html.
RETURN.
ENDMETHOD.
ENDCLASS.
6 changes: 3 additions & 3 deletions src/cl_gui_cfw.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ CLASS cl_gui_cfw DEFINITION PUBLIC.
CLASS-METHODS
compute_pixel_from_metric
IMPORTING
x_or_y TYPE c
in TYPE i
x_or_y TYPE c
in TYPE i
RETURNING
VALUE(val) TYPE i.

Expand All @@ -14,7 +14,7 @@ CLASS cl_gui_cfw DEFINITION PUBLIC.
CLASS-METHODS
set_new_ok_code
IMPORTING new_code
TYPE clike.
TYPE clike.
ENDCLASS.

CLASS cl_gui_cfw IMPLEMENTATION.
Expand Down
30 changes: 15 additions & 15 deletions src/cl_gui_frontend_services.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CLASS cl_gui_frontend_services DEFINITION PUBLIC.
write_field_separator TYPE char1 OPTIONAL
confirm_overwrite TYPE abap_bool OPTIONAL
CHANGING
data_tab TYPE any.
data_tab TYPE any.

CLASS-METHODS file_exist
IMPORTING
Expand Down Expand Up @@ -75,17 +75,17 @@ CLASS cl_gui_frontend_services DEFINITION PUBLIC.
CLASS-METHODS
file_save_dialog
IMPORTING
window_title TYPE string OPTIONAL
default_extension TYPE string OPTIONAL
default_file_name TYPE string OPTIONAL
file_filter TYPE string OPTIONAL
initial_directory TYPE string OPTIONAL
prompt_on_overwrite TYPE abap_bool OPTIONAL
window_title TYPE string OPTIONAL
default_extension TYPE string OPTIONAL
default_file_name TYPE string OPTIONAL
file_filter TYPE string OPTIONAL
initial_directory TYPE string OPTIONAL
prompt_on_overwrite TYPE abap_bool OPTIONAL
CHANGING
filename TYPE string
path TYPE string
fullpath TYPE string
user_action TYPE i OPTIONAL.
filename TYPE string
path TYPE string
fullpath TYPE string
user_action TYPE i OPTIONAL.

CLASS-METHODS
directory_browse
Expand Down Expand Up @@ -115,7 +115,7 @@ CLASS cl_gui_frontend_services DEFINITION PUBLIC.
CLASS-METHODS
directory_exist
IMPORTING
directory TYPE string
directory TYPE string
RETURNING
VALUE(result) TYPE abap_bool.

Expand All @@ -124,16 +124,16 @@ CLASS cl_gui_frontend_services DEFINITION PUBLIC.
IMPORTING
directory TYPE string
CHANGING
rc TYPE i.
rc TYPE i.

CLASS-METHODS
clipboard_export
IMPORTING
no_auth_check TYPE abap_bool OPTIONAL
EXPORTING
data TYPE any
data TYPE any
CHANGING
rc TYPE i.
rc TYPE i.

CLASS-METHODS
get_system_directory
Expand Down
2 changes: 1 addition & 1 deletion src/cl_gui_picture.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CLASS cl_gui_picture DEFINITION INHERITING FROM cl_gui_control PUBLIC.

METHODS load_picture_from_url
IMPORTING
url TYPE c
url TYPE c
EXPORTING
result TYPE i.
ENDCLASS.
Expand Down
8 changes: 4 additions & 4 deletions src/cl_gui_splitter_container.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ CLASS cl_gui_splitter_container DEFINITION PUBLIC.

METHODS set_column_width
IMPORTING
id TYPE i
width TYPE i
id TYPE i
width TYPE i
EXPORTING
result TYPE i
EXCEPTIONS
Expand All @@ -36,8 +36,8 @@ CLASS cl_gui_splitter_container DEFINITION PUBLIC.

METHODS get_container
IMPORTING
row TYPE i
column TYPE i
row TYPE i
column TYPE i
RETURNING
VALUE(container) TYPE REF TO cl_gui_container.
ENDCLASS.
Expand Down
4 changes: 2 additions & 2 deletions src/salv/cl_salv_aggregations.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ CLASS cl_salv_aggregations DEFINITION PUBLIC.
PUBLIC SECTION.
METHODS add_aggregation
IMPORTING
columnname TYPE any
aggregation TYPE i DEFAULT if_salv_c_aggregation=>total.
columnname TYPE any
aggregation TYPE i DEFAULT if_salv_c_aggregation=>total.
ENDCLASS.

CLASS cl_salv_aggregations IMPLEMENTATION.
Expand Down
2 changes: 1 addition & 1 deletion src/salv/cl_salv_columns_table.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CLASS cl_salv_columns_table DEFINITION PUBLIC.
METHODS set_color_column
IMPORTING value TYPE string.
METHODS get_column
IMPORTING columnname TYPE string
IMPORTING columnname TYPE string
RETURNING VALUE(value) TYPE REF TO cl_salv_column.
METHODS get
RETURNING VALUE(value) TYPE string.
Expand Down
2 changes: 1 addition & 1 deletion src/salv/cl_salv_functions_list.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CLASS cl_salv_functions_list DEFINITION PUBLIC.
PUBLIC SECTION.
METHODS set_all
IMPORTING flag
TYPE abap_bool OPTIONAL.
TYPE abap_bool OPTIONAL.

METHODS get_functions
RETURNING
Expand Down
4 changes: 2 additions & 2 deletions src/salv/cl_salv_hyperlinks.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ CLASS cl_salv_hyperlinks DEFINITION PUBLIC.
PUBLIC SECTION.
METHODS add_hyperlink
IMPORTING
handle TYPE any
hyperlink TYPE any OPTIONAL
handle TYPE any
hyperlink TYPE any OPTIONAL
RAISING
cx_salv_existing.

Expand Down
8 changes: 4 additions & 4 deletions src/salv/cl_salv_layout_service.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ CLASS cl_salv_layout_service DEFINITION PUBLIC.
PUBLIC SECTION.
CLASS-METHODS f4_layouts
IMPORTING
s_key TYPE any
layout TYPE any OPTIONAL
restrict TYPE any OPTIONAL
s_key TYPE any
layout TYPE any OPTIONAL
restrict TYPE any OPTIONAL
RETURNING
VALUE(value) TYPE salv_s_layout_info.


CLASS-METHODS get_layouts
IMPORTING
s_key TYPE any
s_key TYPE any
RETURNING
VALUE(t_layout) TYPE salv_t_layout_info.
ENDCLASS.
Expand Down
2 changes: 1 addition & 1 deletion src/salv/cl_salv_table.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CLASS cl_salv_table DEFINITION PUBLIC.
EXPORTING
r_salv_table TYPE any
CHANGING
t_table TYPE any.
t_table TYPE any.
METHODS get_selections RETURNING VALUE(val) TYPE REF TO cl_salv_table.
METHODS set_selected_rows IMPORTING val TYPE any.
METHODS set_selection_mode IMPORTING val TYPE i.
Expand Down
8 changes: 4 additions & 4 deletions src/tree/cl_gui_alv_tree.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ CLASS cl_gui_alv_tree DEFINITION INHERITING FROM cl_alv_tree_base PUBLIC.
it_toolbar_excluding TYPE any OPTIONAL
it_except_qinfo TYPE any OPTIONAL
CHANGING
it_outtab TYPE STANDARD TABLE
it_filter TYPE any OPTIONAL
it_fieldcatalog TYPE any OPTIONAL.
it_outtab TYPE STANDARD TABLE
it_filter TYPE any OPTIONAL
it_fieldcatalog TYPE any OPTIONAL.

METHODS delete_all_nodes
EXCEPTIONS
Expand Down Expand Up @@ -122,7 +122,7 @@ CLASS cl_gui_alv_tree DEFINITION INHERITING FROM cl_alv_tree_base PUBLIC.

METHODS get_children
IMPORTING
i_node_key TYPE lvc_nkey
i_node_key TYPE lvc_nkey
EXPORTING
et_children TYPE lvc_t_nkey.

Expand Down

0 comments on commit bd57549

Please sign in to comment.