Class: Syskit::GUI::ModelViews::TaskContext

Inherits:
TaskContextBase show all
Defined in:
lib/syskit/gui/model_views/task_context.rb

Constant Summary

Constants inherited from ComponentNetworkBaseView

ComponentNetworkBaseView::Button, ComponentNetworkBaseView::DATA_SERVICE_WITHOUT_NAMES_TEMPLATE, ComponentNetworkBaseView::DATA_SERVICE_WITH_NAMES_TEMPLATE

Instance Attribute Summary

Attributes inherited from TaskContextBase

#orogen_rendering, #task_model_view

Attributes inherited from Component

#interface_options

Attributes inherited from ComponentNetworkBaseView

#current_model, #page, #plan

Instance Method Summary collapse

Methods inherited from TaskContextBase

#initialize, #render, #render_doc

Methods inherited from Component

#initialize, #render, #render_doc

Methods inherited from ComponentNetworkBaseView

#buttonClicked, #clear, common_graph_buttons, #compute_system_network, #disable, #enable, find_definition_place, graph_annotation_buttons, html_defined_in, #initialize, #instanciate_model, #list_services, make_annotation_buttons, #push_plan, #render, #render_data_services, #save_svg, task_annotation_buttons

Constructor Details

This class inherits a constructor from Syskit::GUI::ModelViews::TaskContextBase

Instance Method Details

#render_require_section(model) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/syskit/gui/model_views/task_context.rb', line 4

def render_require_section(model)
    if model.extension_file
        ComponentNetworkBaseView.html_defined_in(
            page, model,
            definition_location: [model.extension_file, 1],
            with_require: false,
            format: "<b>Extended in</b> %s")
        page.push nil, "<code>using_task_library \"#{model.orogen_model.project.name}\"</code>"
    else
        page.push nil, "There is no extension file for this model. You can run <tt>syskit gen orogen #{model.orogen_model.project.name}</tt> to create one, and press the 'Reload Models' button above"
        page.push nil, "<code>using_task_library \"#{model.orogen_model.project.name}\"</code>"
    end
end