Module: Glimmer::Config

Defined in:
lib/glimmer/swing/ext/glimmer/config.rb

Constant Summary collapse

DEFAULT_IMPORT_JAVA_PACKAGES =
[
  'java.awt',
  'java.awt.color',
  'java.awt.datatransfer',
  'java.awt.dnd',
  'java.awt.event',
  'java.awt.font',
  'java.awt.geom',
  'java.awt.im',
  'java.awt.im.spi',
  'java.awt.image',
  'java.awt.image.renderable',
  'java.awt.print',
  'javax.swing',
  'javax.swing.border',
  'javax.swing.colorchooser',
  'javax.swing.event',
  'javax.swing.filechooser',
  'javax.swing.plaf',
  'javax.swing.plaf.basic',
  'javax.swing.plaf.metal',
  'javax.swing.plaf.multi',
  'javax.swing.plaf.nimbus',
  'javax.swing.plaf.synth',
  'javax.swing.table',
  'javax.swing.text',
  'javax.swing.text.html',
  'javax.swing.text.html.parser',
  'javax.swing.text.rtf',
  'javax.swing.tree',
  'javax.swing.undo',
]

Class Method Summary collapse

Class Method Details

.import_java_packagesObject

Returns whether Glimmer will import SWT packages into including class



66
67
68
69
# File 'lib/glimmer/swing/ext/glimmer/config.rb', line 66

def import_java_packages
  @@import_java_packages = DEFAULT_IMPORT_JAVA_PACKAGES if !defined?(@@import_java_packages) || (defined?(@@import_java_packages) && @@import_java_packages == true)
  @@import_java_packages
end

.import_java_packages=(value) ⇒ Object

Tells Glimmer to import Java packages into including class (default: true)



61
62
63
# File 'lib/glimmer/swing/ext/glimmer/config.rb', line 61

def import_java_packages=(value)
  @@import_java_packages = value
end