README.markdown in glimmer-0.3.3 vs README.markdown in glimmer-0.3.4
- old
+ new
@@ -100,18 +100,18 @@
### Option 1: Direct Install
Run this command to install directly:
```
-jgem install glimmer -v 0.3.3
+jgem install glimmer -v 0.3.4
```
### Option 2: Bundler
Add the following to `Gemfile`:
```
-gem 'glimmer', '~> 0.3.3'
+gem 'glimmer', '~> 0.3.4'
```
And, then run:
```
bundle install
@@ -335,9 +335,26 @@
https://help.eclipse.org/2019-12/topic/org.eclipse.platform.doc.isv/guide/swt_widgets_controls.htm?cp=2_0_7_0_0
Here is a list of SWT style bits:
https://wiki.eclipse.org/SWT_Widget_Style_Bits
+
+## SWT Packages
+
+Glimmer automatically imports all SWT Java packages upon adding `include Glimmer` to a class or module.
+
+Still, if you'd like to import manually elsewhere, you may add the following lines to your code:
+
+```ruby
+include_package 'org.eclipse.swt'
+include_package 'org.eclipse.swt.widgets'
+include_package 'org.eclipse.swt.layout'
+include_package 'org.eclipse.swt.graphics'
+```
+
+This allows you to call Java SWT classes from Ruby without indicating the package explicitly.
+
+For example, `org.eclipse.swt.graphics.Color` becomes `Color`
## Girb (Glimmer irb)
With Glimmer installed, you may run want to run `girb` instead of standard `irb` to have SWT preloaded and the Glimmer library required and included for quick Glimmer coding/testing.