New and noteworthy:
- Made SWT the default DSL to avoid forcing developers to specify the DSL explicitly with the "dsl" method. Sample applications run successfully again as a result.
- Revised SWT styling support to rely on Ruby symbols instead of Eclipse SWT's bit ORing via the SWT constant DSL as that better matches Ruby's conventions and avoids method name clashing.
- Added swt_widget and swt_constant methods to String and Symbol to allow easy inflection of SWT Widgets and Constants via strings and symbols.
Before/After examples of the new SWT styling syntax:
table(SWT::BORDER) => table(:border)
text(SWT::PASSWORD | SWT::BORDER) => text(:password, :border)
layout_data GridData.new(SWT::FILL, SWT::FILL, true, true) =>
layout_data GridData.new(:fill.swt_constant, :fill.swt_constant, true, true)
Enjoy the release and stay tuned for the next one.