Class: MateExample::SetJavaScript

Inherits:
Jface::Action
  • Object
show all
Defined in:
lib/javamateview/example.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#windowObject

Returns the value of attribute window.



252
253
254
# File 'lib/javamateview/example.rb', line 252

def window
  @window
end

Instance Method Details

#runObject



254
255
256
# File 'lib/javamateview/example.rb', line 254

def run
  @window.mate_text.set_grammar_by_name("JavaScript")
end