Sha256: 000ffedf5191f43ceecff465ca6c9cfd6cbd1b8940ef1c4e6ff74be605690872
Contents?: true
Size: 577 Bytes
Versions: 41
Compression:
Stored size: 577 Bytes
Contents
module Redcar class ApplicationSWT class Speedbar class ButtonItem def initialize(speedbar, composite, item) button = Swt::Widgets::Button.new(composite, 0) button.set_text(item.text) button.add_selection_listener do speedbar.execute_listener_in_model(item) end item.add_listener(:changed_text) do |new_text| button.set_text(item.text) end speedbar.keyable_widgets << button speedbar.focussable_widgets << button end end end end end
Version data entries
41 entries across 41 versions & 2 rubygems