Skip to content

Commit 1f141fe

Browse files
committed
renaming
1 parent e666a59 commit 1f141fe

File tree

5 files changed

+12
-29
lines changed

5 files changed

+12
-29
lines changed

src/z2ui5_cl_demo_app_035.clas.abap

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ CLASS z2ui5_cl_demo_app_035 IMPLEMENTATION.
4040
)->input( client->_bind_edit( mv_path )
4141
)->label( 'Option' ).
4242

43-
data(temp3) = temp->input( value = client->_bind_edit( mv_type )
44-
suggestionitems = client->_bind_local( lcl_file_api=>get_editor_type( ) ) ).
43+
data(lt_types) = VALUE z2ui5_if_client=>ty_t_name_value( ).
44+
lt_types = value #( FOR row IN z2ui5_cl_util_func=>source_get_file_types( ) (
45+
n = shift_right( shift_left( row ) )
46+
v = shift_right( shift_left( row ) ) ) ).
47+
48+
data(temp3) = temp->input( value = client->_bind_edit( mv_type )
49+
suggestionitems = client->_bind_local( lt_types ) ).
4550
data(temp2) = temp3->_go_new( ).
4651

4752
temp2->_ns_m(

src/z2ui5_cl_demo_app_035.clas.locals_imp.abap

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ CLASS lcl_file_api DEFINITION FINAL.
2525
END OF ty_s_suggest.
2626
TYPES ty_t_suggest TYPE STANDARD TABLE OF ty_s_suggest WITH EMPTY KEY.
2727

28-
CLASS-METHODS get_editor_type
29-
RETURNING
30-
VALUE(r_result) TYPE ty_t_suggest.
31-
32-
3328
PROTECTED SECTION.
3429

3530
PRIVATE SECTION.
@@ -167,21 +162,4 @@ r_result = `METHOD SELECT_FILES.` && |\n| &&
167162
` the name of a 2002 American television series.`.
168163
ENDMETHOD.
169164

170-
METHOD get_editor_type.
171-
172-
DATA(lv_types) = `abap, abc, actionscript, ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru, clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, ` &&
173-
`dot, drools, eiffel, yaml, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang, groovy, haml, handlebars, haskell, haskell_cabal, haxe, hjson, html, html_elixir, html_ruby, ini, io, jack, jade, java, ja` &&
174-
`vascri` &&
175-
`pt, json, jsoniq, jsp, jsx, julia, kotlin, latex, lean, less, liquid, lisp, live_script, livescript, logiql, lsl, lua, luapage, lucene, makefile, markdown, mask, matlab, mavens_mate_log, maze, mel, mips_assembler, mipsassembler, mushcode, mysql, ni` &&
176-
`x, nsis, objectivec, ocaml, pascal, perl, pgsql, php, plain_text, powershell, praat, prolog, properties, protobuf, python, r, razor, rdoc, rhtml, rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql,` &&
177-
` sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript, velocity, verilog, vhdl, wollok, xml, xquery, terraform, slim, redshift, red, puppet, php_laravel_blade, mixal, jssm, fsharp, edifact,` &&
178-
` csp, cssound_score, cssound_orchestra, cssound_document`.
179-
SPLIT lv_types AT ',' INTO TABLE DATA(lt_types).
180-
181-
182-
r_result = VALUE #( FOR row IN lt_types ( name = shift_right( shift_left( row ) ) value = shift_right( shift_left( row ) ) ) ).
183-
184-
ENDMETHOD.
185-
186-
187165
ENDCLASS.

src/z2ui5_cl_demo_app_053.clas.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ CLASS Z2UI5_CL_DEMO_APP_053 IMPLEMENTATION.
151151

152152
IF mv_search_value IS NOT INITIAL.
153153

154-
z2ui5_cl_util_func=>get_tab_filter_by_val(
154+
z2ui5_cl_util_func=>itab_filter_by_val(
155155
EXPORTING
156156
val = mv_search_value
157157
CHANGING

src/z2ui5_cl_demo_app_056.clas.abap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ CLASS z2ui5_cl_demo_app_056 IMPLEMENTATION.
5757
CLEAR mt_tokens_removed.
5858
CLEAR mt_tokens_added.
5959

60-
mt_range = z2ui5_cl_util_func=>get_range_t_by_token_t( mt_token ).
60+
mt_range = z2ui5_cl_util_func=>filter_get_range_t_by_token_t( mt_token ).
6161
client->view_model_update( ).
6262

6363
WHEN `FILTER_VALUE_HELP`.
@@ -189,7 +189,7 @@ CLASS z2ui5_cl_demo_app_056 IMPLEMENTATION.
189189
DATA(lo_value_help) = CAST z2ui5_cl_popup_get_range( client->get_app( client->get( )-s_draft-id_prev_app ) ).
190190
IF lo_value_help->result( )-check_confirmed = abap_true.
191191
mt_range = lo_value_help->result( )-t_range.
192-
mt_token = z2ui5_cl_util_func=>get_token_t_by_range_t( mt_range ).
192+
mt_token = z2ui5_cl_util_func=>filter_get_token_t_by_range_t( mt_range ).
193193
client->view_model_update( ).
194194
ENDIF.
195195
CATCH cx_root.

src/z2ui5_cl_demo_app_162.clas.abap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CLASS z2ui5_cl_demo_app_162 DEFINITION PUBLIC.
1616
TYPES ty_t_table TYPE STANDARD TABLE OF ty_s_tab WITH EMPTY KEY.
1717

1818
DATA mt_table TYPE ty_t_table.
19-
DATA mt_sql TYPE z2ui5_cl_util_func=>ty_t_sql_multi.
19+
DATA mt_sql TYPE z2ui5_cl_util_func=>ty_t_filter_multi.
2020
* DATA mt_token TYPE z2ui5_cl_util_func=>ty_t_token.
2121

2222
* DATA mt_tokens_added TYPE z2ui5_cl_util_func=>ty_t_token.
@@ -146,7 +146,7 @@ CLASS z2ui5_cl_demo_app_162 IMPLEMENTATION.
146146

147147
IF mv_check_initialized = abap_false.
148148
mv_check_initialized = abap_true.
149-
mt_sql = z2ui5_cl_util_func=>get_sql_multi_by_data( mt_table ).
149+
mt_sql = z2ui5_cl_util_func=>filter_get_multi_by_data( mt_table ).
150150
view_display( ).
151151
RETURN.
152152
ENDIF.

0 commit comments

Comments
 (0)