Sha256: e30dc5a28d26a3536067aa83001f38e30056600e9cb1bfa495d6eb51a32168da

Contents?: true

Size: 653 Bytes

Versions: 41

Compression:

Stored size: 653 Bytes

Contents

module Redcar
  class HtmlTab < Tab
    attr_reader :html_view

    def initialize(*args)
      super
      create_html_view
    end

    def self.web_content_icon
      WEB_ICON
    end

    def close
      html_view.controller.close if html_view.controller
      super
    end

    def create_html_view
      @html_view = HtmlView.new(self)
    end

    def controller_action(action, params)
      notify_listeners(:controller_action, action, params)
    end

    def go_to_location(url)
      controller.go_to_location(url)
    end
  end

  class ConfigTab < HtmlTab
    DEFAULT_ICON = CONFIG_ICON

    def icon
      DEFAULT_ICON
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
redcar-0.13 plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.13.5dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.13.4dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.13.3dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.13.2dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.13.1dev plugins/html_view/lib/html_view/html_tab.rb
redcar-0.12.1 plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.13.0dev plugins/html_view/lib/html_view/html_tab.rb
redcar-0.12 plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.27dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.26dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.25dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.24dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.23dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.22dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.21dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.20dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.19dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.18dev plugins/html_view/lib/html_view/html_tab.rb
redcar-dev-0.12.17dev plugins/html_view/lib/html_view/html_tab.rb