Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
*&---------------------------------------------------------------------* | ||
*& Include ZABAPGIT_PAGE_SYNTAX_CHECK | ||
*&---------------------------------------------------------------------* | ||
|
||
*&---------------------------------------------------------------------* | ||
*& Include ZABAPGIT_PAGE_REPO_SETTINGS | ||
*&---------------------------------------------------------------------* | ||
|
||
CLASS lcl_gui_page_syntax_check DEFINITION FINAL INHERITING FROM lcl_gui_page. | ||
PUBLIC SECTION. | ||
METHODS: | ||
constructor | ||
IMPORTING io_repo TYPE REF TO lcl_repo. | ||
|
||
PROTECTED SECTION. | ||
CONSTANTS: | ||
BEGIN OF c_action, | ||
back TYPE string VALUE 'back', | ||
END OF c_action. | ||
|
||
DATA: mo_repo TYPE REF TO lcl_repo. | ||
|
||
METHODS: | ||
render_content REDEFINITION. | ||
|
||
ENDCLASS. | ||
|
||
CLASS lcl_gui_page_syntax_check IMPLEMENTATION. | ||
|
||
METHOD constructor. | ||
super->constructor( ). | ||
ms_control-page_title = 'SYNTAX CHECK'. | ||
mo_repo = io_repo. | ||
ENDMETHOD. " constructor. | ||
|
||
METHOD render_content. | ||
|
||
DATA: lt_result TYPE scit_alvlist, | ||
ls_result LIKE LINE OF lt_result. | ||
|
||
|
||
lt_result = zcl_abapgit_syntax_check=>run( mo_repo->get_package( ) ). | ||
|
||
CREATE OBJECT ro_html. | ||
ro_html->add( '<div class="toc">' ). | ||
|
||
IF lines( lt_result ) = 0. | ||
ro_html->add( 'No errors' ). | ||
ENDIF. | ||
|
||
LOOP AT lt_result INTO ls_result. | ||
ro_html->add( |{ ls_result-objtype } { ls_result-objname } { ls_result-kind } { ls_result-text }<br>| ). | ||
ENDLOOP. | ||
|
||
ro_html->add( '</div>' ). | ||
|
||
ENDMETHOD. "render_content | ||
|
||
ENDCLASS. "lcl_gui_page_debuginfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_PROG" serializer_version="v1.0.0"> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<PROGDIR> | ||
<NAME>ZABAPGIT_PAGE_SYNTAX_CHECK</NAME> | ||
<STATE>A</STATE> | ||
<VARCL>X</VARCL> | ||
<SUBC>I</SUBC> | ||
<RLOAD>E</RLOAD> | ||
<UCCHECK>X</UCCHECK> | ||
</PROGDIR> | ||
<TPOOL> | ||
<item> | ||
<ID>R</ID> | ||
<ENTRY>Include ZABAPGIT_PAGE_SYNTAX_CHECK</ENTRY> | ||
<LENGTH>34</LENGTH> | ||
</item> | ||
</TPOOL> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters