All files / src/ui/flow zcl_abapgit_gui_page_flowtsht.clas.abap

100% Statements 69/69
100% Branches 1/1
100% Functions 1/1
100% Lines 69/69

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 701x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
CLASS zcl_abapgit_gui_page_flowtsht DEFINITION
  PUBLIC
  INHERITING FROM zcl_abapgit_gui_component
  FINAL
  CREATE PRIVATE .
 
  PUBLIC SECTION.
 
    INTERFACES zif_abapgit_gui_renderable .
    INTERFACES zif_abapgit_gui_menu_provider .
 
    CLASS-METHODS create
      RETURNING
        VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
      RAISING
        zcx_abapgit_exception .
 
  PROTECTED SECTION.
  PRIVATE SECTION.
 
ENDCLASS.
 
 
 
CLASS zcl_abapgit_gui_page_flowtsht IMPLEMENTATION.
 
  METHOD create.
 
    DATA lo_component TYPE REF TO zcl_abapgit_gui_page_flowtsht.
 
    CREATE OBJECT lo_component.
 
    ri_page = zcl_abapgit_gui_page_hoc=>create(
      iv_page_title         = 'Flow Troubleshooting'
      ii_page_menu_provider = lo_component
      ii_child_component    = lo_component ).
 
  ENDMETHOD.
 
  METHOD zif_abapgit_gui_menu_provider~get_menu.
 
    ro_toolbar = zcl_abapgit_html_toolbar=>create( 'toolbar-flow-tsht' ).
 
    ro_toolbar->add(
      iv_txt = 'Back'
      iv_act = zif_abapgit_definitions=>c_action-go_back ).
 
  ENDMETHOD.
 
  METHOD zif_abapgit_gui_renderable~render.
 
    CREATE OBJECT ri_html TYPE zcl_abapgit_html.
 
    ri_html->add( '<div class="repo-overview">' ).
 
    ri_html->add( |<h1>Flow Troubleshooting</h1>| ).
    ri_html->add( |<h2>Why is my transport not shown?</h2>| ).
    ri_html->add( |<ul>| ).
    ri_html->add( |<li>Transport must contain repository objects</li>| ).
    ri_html->add( |<li>These objects must be in a package that is part of a repository</li>| ).
    ri_html->add( |<li>The repository must be flow enabled</li>| ).
    ri_html->add( |<li>The user(you) must have the repository as a favorite</li>| ).
    ri_html->add( |</ul>| ).
 
    ri_html->add( '</div>' ).
 
  ENDMETHOD.
 
ENDCLASS.