glimmer-dsl-swt 4.20.13.15 → 4.20.13.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -10
- data/VERSION +1 -1
- data/glimmer-dsl-swt.gemspec +0 -0
- data/lib/glimmer/swt/display_proxy.rb +8 -6
- data/lib/glimmer/ui/custom_shell.rb +1 -1
- data/lib/glimmer/ui/custom_widget.rb +3 -3
- data/samples/hello/hello_custom_shell.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbde18522dded899e463ea9f5e1d94325707b9403392717e624b7475e6e6725
|
4
|
+
data.tar.gz: 53c6de1396110f443afca9378642c66b8813e7fd329ba3f860951ccc4ec11793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 186a4ebb62c01d54c91470623ea689e52b984e5fb01137bc78cc3113a2599fbfe20113b40e1afaa1adf1648af08e6df2f3bada47bb8afd2ab73730a1eb218a2b
|
7
|
+
data.tar.gz: e837367673f9b8964d97e34e5a1aa4162618b312aadf341808e3a50653dadaf1f387b4d7845caf584519c24a1d7c6b3cc9aa59c7f0f4be574875f3ac579be98e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.20.13.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.20.13.16
|
2
2
|
## JRuby Desktop Development GUI Framework
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
4
4
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
|
@@ -15,7 +15,7 @@
|
|
15
15
|
[<img src="https://covers.oreillystatic.com/images/9780596519650/lrg.jpg" width=105 /><br />
|
16
16
|
Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) and [Chalmers/Gothenburg University Software Engineering Master's Lecture Material](http://www.cse.chalmers.se/~bergert/slides/guest_lecture_DSLs.pdf)
|
17
17
|
|
18
|
-
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.13.
|
18
|
+
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.13.16 includes [SWT 4.20](https://download.eclipse.org/eclipse/downloads/drops4/R-4.20-202106111600/), which was released on June 11, 2021. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT. Note that SWT now supports AARCH64 on Mac and Linux, but it is not fully tested in Glimmer DSL for SWT yet, so deem its support experimental for the time being without guarantees for functionality until declared otherwise (please report any issues you may encounter).
|
19
19
|
|
20
20
|
**Starting in version 4.20.0.0, [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) comes with the new [***Shine***](/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#shine) syntax** for highly intuitive and visually expressive View/Model Attribute Mapping, relying on `<=>` for bidirectional (two-way) data-binding and `<=` for unidirectional (one-way) data-binding, providing an alternative to the `bind` keyword (keep in mind that it is still a beta, so default back to `bind` whenever needed).
|
21
21
|
|
@@ -199,11 +199,6 @@ Glimmer app:
|
|
199
199
|
|
200
200
|
[![Math Bowling App Screenshot](https://raw.githubusercontent.com/AndyObtiva/MathBowling/master/Math-Bowling-Screenshot.png)](https://github.com/AndyObtiva/MathBowling)
|
201
201
|
|
202
|
-
**Note:** I offer Glimmer DSL for SWT as a free and open-source [Ruby Gem](https://rubygems.org/gems/glimmer-dsl-swt) that represents my interests in Ruby Programming, Desktop GUI application development with SWT, Object Oriented Design, Design Patterns, and Software Architecture.
|
203
|
-
Additionally, I am sharing my professional experience and expertise in Eclipse SWT given that I am an [EclipseCon](http://andymaleh.blogspot.com/2007/03/eclipsecon-2007-day-3.html)/[EclipseWorld](http://andymaleh.blogspot.com/2008/11/eclipseworld-2008-highlights.html) presenter and have built professional applications in SWT/JFace/RCP for Obtiva and the Pampered Chef in the past. This is also done in the hopes that it would indirectly bring me work in a field I am extremely passionate about.
|
204
|
-
That said, please keep in mind that I myself am learning topics in Software Engineering too everyday, including newer editions of SWT and JRuby, which seem to pop up every quarter.
|
205
|
-
If you see anything that needs to be improved, please do not hesitate to contact me on [Gitter](https://gitter.im/AndyObtiva/glimmer) or submit [Issues](https://github.com/AndyObtiva/glimmer-dsl-swt/issues)/[Pull-Requests](https://github.com/AndyObtiva/glimmer-dsl-swt/pulls).
|
206
|
-
|
207
202
|
## Table of contents
|
208
203
|
|
209
204
|
- [Glimmer (JRuby Desktop Development GUI Framework)](#jruby-desktop-development-gui-framework)
|
@@ -326,7 +321,7 @@ jgem install glimmer-dsl-swt
|
|
326
321
|
|
327
322
|
Or this command if you want a specific version:
|
328
323
|
```
|
329
|
-
jgem install glimmer-dsl-swt -v 4.20.13.
|
324
|
+
jgem install glimmer-dsl-swt -v 4.20.13.16
|
330
325
|
```
|
331
326
|
|
332
327
|
`jgem` is JRuby's version of `gem` command.
|
@@ -354,7 +349,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
|
|
354
349
|
|
355
350
|
Add the following to `Gemfile`:
|
356
351
|
```
|
357
|
-
gem 'glimmer-dsl-swt', '~> 4.20.13.
|
352
|
+
gem 'glimmer-dsl-swt', '~> 4.20.13.16'
|
358
353
|
```
|
359
354
|
|
360
355
|
And, then run:
|
@@ -375,7 +370,7 @@ glimmer
|
|
375
370
|
```
|
376
371
|
|
377
372
|
```
|
378
|
-
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.13.
|
373
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.13.16
|
379
374
|
|
380
375
|
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
381
376
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.20.13.
|
1
|
+
4.20.13.16
|
data/glimmer-dsl-swt.gemspec
CHANGED
Binary file
|
@@ -200,12 +200,14 @@ module Glimmer
|
|
200
200
|
elsif observation_request.start_with?('on_')
|
201
201
|
event_name = observation_request.sub(/^on_/, '')
|
202
202
|
if OBSERVED_MENU_ITEMS.include?(event_name) && OS.mac?
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
203
|
+
auto_exec do
|
204
|
+
system_menu = swt_display.getSystemMenu
|
205
|
+
menu_item = system_menu.getItems.find {|menu_item| menu_item.getID == SWTProxy["ID_#{event_name.upcase}"]}
|
206
|
+
listener = ConcreteListener.new(&block)
|
207
|
+
display_mac_event_registration = menu_item.addListener(SWTProxy[:Selection], listener)
|
208
|
+
Glimmer::UI::CustomWidget.current_custom_widgets.last&.observer_registrations&.push(display_mac_event_registration)
|
209
|
+
display_mac_event_registration
|
210
|
+
end
|
209
211
|
end
|
210
212
|
end
|
211
213
|
end
|
@@ -30,8 +30,8 @@ module Glimmer
|
|
30
30
|
|
31
31
|
class << self
|
32
32
|
def launch(*args, &content)
|
33
|
+
launched_custom_shell = send(keyword, *args, &content)
|
33
34
|
auto_exec do
|
34
|
-
launched_custom_shell = send(keyword, *args, &content)
|
35
35
|
launched_custom_shell.swt_widget.set_data('launched', true)
|
36
36
|
launched_custom_shell.open
|
37
37
|
end
|
@@ -176,16 +176,16 @@ module Glimmer
|
|
176
176
|
options ||= {}
|
177
177
|
@options = self.class.options.merge(options)
|
178
178
|
@content = Util::ProcTracker.new(content) if content
|
179
|
-
execute_hook('before_body')
|
179
|
+
auto_exec { execute_hook('before_body') }
|
180
180
|
body_block = self.class.instance_variable_get("@body_block")
|
181
181
|
raise Glimmer::Error, 'Invalid custom widget for having no body! Please define body block!' if body_block.nil?
|
182
|
-
@body_root = instance_exec(&body_block)
|
182
|
+
@body_root = auto_exec { instance_exec(&body_block) }
|
183
183
|
raise Glimmer::Error, 'Invalid custom widget for having an empty body! Please fill body block!' if @body_root.nil?
|
184
184
|
@swt_widget = @body_root.swt_widget
|
185
185
|
auto_exec do
|
186
186
|
@swt_widget.set_data('custom_widget', self)
|
187
187
|
end
|
188
|
-
execute_hook('after_body')
|
188
|
+
auto_exec { execute_hook('after_body') }
|
189
189
|
auto_exec do
|
190
190
|
@dispose_listener_registration = @body_root.on_widget_disposed do
|
191
191
|
observer_registrations.compact.each(&:deregister)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.20.13.
|
4
|
+
version: 4.20.13.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Maleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|