Class: MateExample::ToggleWordWrap
- Inherits:
-
Jface::Action
- Object
- Jface::Action
- MateExample::ToggleWordWrap
- Defined in:
- lib/javamateview/example.rb
Instance Attribute Summary collapse
-
#window ⇒ Object
Returns the value of attribute window.
Instance Method Summary collapse
Instance Attribute Details
#window ⇒ Object
Returns the value of attribute window.
171 172 173 |
# File 'lib/javamateview/example.rb', line 171 def window @window end |
Instance Method Details
#run ⇒ Object
173 174 175 176 |
# File 'lib/javamateview/example.rb', line 173 def run mt = @window.mate_text mt.set_word_wrap(!mt.get_word_wrap) end |