Sha256: b157ad3ad2ae2431ac412230ca96e268e4a77ddbcffe765754ae9e27cd334fca
Contents?: true
Size: 639 Bytes
Versions: 23
Compression:
Stored size: 639 Bytes
Contents
module Redcar class EditTab < Tab attr_reader :edit_view def initialize(*args) super create_edit_view end def create_edit_view @edit_view = Redcar::EditView.new @edit_view.add_listener(:focussed, &method(:edit_view_focussed)) @edit_view.document.add_listener(:changed) { notify_listeners(:changed, self) } @edit_view.document.add_listener(:selection_range_changed) { notify_listeners(:selection_changed) } @edit_view.add_listener(:title_changed) { |newt| self.title = newt } end def edit_view_focussed notify_listeners(:focus) end end end
Version data entries
23 entries across 23 versions & 1 rubygems