Class: MateExample::ReplaceContents2

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.



287
288
289
# File 'lib/javamateview/example.rb', line 287

def window
  @window
end

Instance Method Details

#runObject



289
290
291
# File 'lib/javamateview/example.rb', line 289

def run
  @window.mate_text.getMateDocument.set(source*50)
end

#sourceObject



293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/javamateview/example.rb', line 293

def source
  foo=<<-HTML
<div class="nav">
  <ul>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
  </ul>
</div>
  
HTML
end