Class: MateExample::RemoveAnnotations

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.



163
164
165
# File 'lib/javamateview/example.rb', line 163

def window
  @window
end

Instance Method Details

#runObject



165
166
167
# File 'lib/javamateview/example.rb', line 165

def run
  @window.mate_text.annotations.each {|a| @window.mate_text.removeAnnotation(a) }
end