glimmer-dsl-swt 0.6.5 → 4.17.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +248 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +3931 -23
  5. data/VERSION +1 -1
  6. data/bin/girb +21 -0
  7. data/bin/girb_runner.rb +21 -0
  8. data/bin/glimmer +21 -4
  9. data/lib/ext/glimmer.rb +21 -0
  10. data/lib/ext/glimmer/config.rb +38 -1
  11. data/lib/glimmer-dsl-swt.rb +26 -9
  12. data/lib/glimmer/Rakefile +21 -0
  13. data/lib/glimmer/data_binding/list_selection_binding.rb +21 -0
  14. data/lib/glimmer/data_binding/observable_widget.rb +21 -0
  15. data/lib/glimmer/data_binding/shine.rb +22 -1
  16. data/lib/glimmer/data_binding/table_items_binding.rb +25 -1
  17. data/lib/glimmer/data_binding/tree_items_binding.rb +21 -0
  18. data/lib/glimmer/data_binding/widget_binding.rb +21 -0
  19. data/lib/glimmer/dsl/swt/async_exec_expression.rb +21 -0
  20. data/lib/glimmer/dsl/swt/bind_expression.rb +21 -0
  21. data/lib/glimmer/dsl/swt/block_property_expression.rb +21 -0
  22. data/lib/glimmer/dsl/swt/color_expression.rb +21 -0
  23. data/lib/glimmer/dsl/swt/column_properties_expression.rb +21 -0
  24. data/lib/glimmer/dsl/swt/combo_selection_data_binding_expression.rb +21 -0
  25. data/lib/glimmer/dsl/swt/cursor_expression.rb +21 -0
  26. data/lib/glimmer/dsl/swt/custom_widget_expression.rb +20 -0
  27. data/lib/glimmer/dsl/swt/data_binding_expression.rb +21 -0
  28. data/lib/glimmer/dsl/swt/dialog_expression.rb +21 -0
  29. data/lib/glimmer/dsl/swt/display_expression.rb +21 -0
  30. data/lib/glimmer/dsl/swt/dnd_expression.rb +21 -0
  31. data/lib/glimmer/dsl/swt/dsl.rb +21 -0
  32. data/lib/glimmer/dsl/swt/exec_expression.rb +28 -1
  33. data/lib/glimmer/dsl/swt/font_expression.rb +21 -0
  34. data/lib/glimmer/dsl/swt/image_expression.rb +21 -0
  35. data/lib/glimmer/dsl/swt/layout_data_expression.rb +21 -0
  36. data/lib/glimmer/dsl/swt/layout_expression.rb +21 -0
  37. data/lib/glimmer/dsl/swt/list_selection_data_binding_expression.rb +21 -0
  38. data/lib/glimmer/dsl/swt/menu_bar_expression.rb +21 -0
  39. data/lib/glimmer/dsl/swt/menu_expression.rb +21 -0
  40. data/lib/glimmer/dsl/swt/message_box_expression.rb +21 -0
  41. data/lib/glimmer/dsl/swt/observe_expression.rb +21 -0
  42. data/lib/glimmer/dsl/swt/property_expression.rb +21 -0
  43. data/lib/glimmer/dsl/swt/rgb_expression.rb +21 -0
  44. data/lib/glimmer/dsl/swt/rgba_expression.rb +21 -0
  45. data/lib/glimmer/dsl/swt/shell_expression.rb +21 -0
  46. data/lib/glimmer/dsl/swt/swt_expression.rb +21 -0
  47. data/lib/glimmer/dsl/swt/sync_exec_expression.rb +21 -0
  48. data/lib/glimmer/dsl/swt/tab_item_expression.rb +21 -0
  49. data/lib/glimmer/dsl/swt/table_items_data_binding_expression.rb +21 -0
  50. data/lib/glimmer/dsl/swt/tree_items_data_binding_expression.rb +21 -0
  51. data/lib/glimmer/dsl/swt/tree_properties_expression.rb +21 -0
  52. data/lib/glimmer/dsl/swt/widget_expression.rb +21 -0
  53. data/lib/glimmer/dsl/swt/widget_listener_expression.rb +21 -0
  54. data/lib/glimmer/launcher.rb +26 -2
  55. data/lib/glimmer/package.rb +21 -0
  56. data/lib/glimmer/rake_task.rb +70 -68
  57. data/lib/glimmer/rake_task/list.rb +21 -0
  58. data/lib/glimmer/scaffold.rb +40 -3
  59. data/lib/glimmer/swt/color_proxy.rb +21 -0
  60. data/lib/glimmer/swt/cursor_proxy.rb +21 -0
  61. data/lib/glimmer/swt/display_proxy.rb +21 -0
  62. data/lib/glimmer/swt/dnd_proxy.rb +21 -0
  63. data/lib/glimmer/swt/font_proxy.rb +21 -0
  64. data/lib/glimmer/swt/image_proxy.rb +21 -0
  65. data/lib/glimmer/swt/layout_data_proxy.rb +21 -0
  66. data/lib/glimmer/swt/layout_proxy.rb +21 -0
  67. data/lib/glimmer/swt/menu_proxy.rb +21 -0
  68. data/lib/glimmer/swt/message_box_proxy.rb +21 -0
  69. data/lib/glimmer/swt/packages.rb +21 -0
  70. data/lib/glimmer/swt/scrolled_composite_proxy.rb +21 -0
  71. data/lib/glimmer/swt/shell_proxy.rb +21 -1
  72. data/lib/glimmer/swt/style_constantizable.rb +22 -0
  73. data/lib/glimmer/swt/swt_proxy.rb +21 -0
  74. data/lib/glimmer/swt/tab_item_proxy.rb +21 -0
  75. data/lib/glimmer/swt/table_column_proxy.rb +21 -0
  76. data/lib/glimmer/swt/table_proxy.rb +37 -4
  77. data/lib/glimmer/swt/tree_proxy.rb +21 -0
  78. data/lib/glimmer/swt/widget_listener_proxy.rb +21 -0
  79. data/lib/glimmer/swt/widget_proxy.rb +74 -37
  80. data/lib/glimmer/ui/custom_shell.rb +21 -0
  81. data/lib/glimmer/ui/custom_widget.rb +21 -0
  82. data/lib/glimmer/util/proc_tracker.rb +21 -0
  83. data/samples/elaborate/contact_manager.rb +21 -0
  84. data/samples/elaborate/contact_manager/contact.rb +21 -0
  85. data/samples/elaborate/contact_manager/contact_manager_presenter.rb +21 -0
  86. data/samples/elaborate/contact_manager/contact_repository.rb +21 -0
  87. data/samples/elaborate/login.rb +20 -2
  88. data/samples/elaborate/tic_tac_toe.rb +21 -0
  89. data/samples/elaborate/tic_tac_toe/board.rb +21 -0
  90. data/samples/elaborate/tic_tac_toe/cell.rb +21 -0
  91. data/samples/elaborate/user_profile.rb +76 -0
  92. data/samples/hello/hello_browser.rb +21 -0
  93. data/samples/hello/hello_combo.rb +21 -0
  94. data/samples/hello/hello_computed.rb +21 -0
  95. data/samples/hello/hello_computed/contact.rb +21 -0
  96. data/samples/hello/hello_drag_and_drop.rb +21 -0
  97. data/samples/hello/hello_list_multi_selection.rb +21 -0
  98. data/samples/hello/hello_list_single_selection.rb +21 -0
  99. data/samples/hello/hello_menu_bar.rb +21 -0
  100. data/samples/hello/hello_message_box.rb +21 -0
  101. data/samples/hello/hello_pop_up_context_menu.rb +21 -0
  102. data/samples/hello/hello_tab.rb +21 -0
  103. data/samples/hello/hello_world.rb +21 -0
  104. data/vendor/swt/linux/swt.jar +0 -0
  105. data/vendor/swt/mac/swt.jar +0 -0
  106. data/vendor/swt/windows/swt.jar +0 -0
  107. metadata +29 -7
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'os'
2
23
 
3
24
  # TODO refactor to nest under RakeTask namespace
@@ -1,40 +1,69 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'rake'
2
23
 
3
24
  require_relative 'package'
4
25
 
26
+ ENV['GLIMMER_LOGGER_ENABLED'] = 'false'
27
+ require_relative '../ext/glimmer/config.rb'
28
+
29
+ Glimmer::Config::SAMPLE_DIRECTORIES << File.expand_path('../../../samples/hello', __FILE__)
30
+ Glimmer::Config::SAMPLE_DIRECTORIES << File.expand_path('../../../samples/elaborate', __FILE__)
31
+
5
32
  namespace :glimmer do
6
33
  namespace :sample do
34
+ task :requires do
35
+ require 'text-table'
36
+ require 'facets/string/titlecase'
37
+ require 'facets/string/underscore'
38
+
39
+ require_relative 'launcher'
40
+ end
41
+
42
+ task :glimmer_gems do
43
+ glimmer_cw_gems = Gem.find_latest_files('glimmer-cw-*')
44
+ glimmer_cs_gems = Gem.find_latest_files('glimmer-cs-*')
45
+ glimmer_dsl_gems = Gem.find_latest_files('glimmer-dsl-*')
46
+ glimmer_gem_lib_files = glimmer_cw_gems + glimmer_cs_gems + glimmer_dsl_gems
47
+ glimmer_gem_lib_files = glimmer_gem_lib_files.map {|file| file.sub(/\.rb$/, '')}.uniq.reject {|file| file.include?('glimmer-cs-gladiator')}
48
+ glimmer_gem_lib_files.each {|file| require file}
49
+ end
50
+
7
51
  desc 'Runs a Glimmer internal sample [included in gem]. If no name is supplied, it runs all samples.'
8
- task :run, [:name] => :requires do |t, args|
52
+ task :run, [:name] => [:requires, :glimmer_gems] do |t, args|
9
53
  name = args[:name]
10
54
  name = name.underscore.downcase unless name.nil?
11
- samples = (Dir.glob(File.expand_path('../../../samples/hello/*.rb', __FILE__)) + Dir.glob(File.expand_path('../../../samples/elaborate/*.rb', __FILE__))).sort
55
+ samples = Glimmer::Config::SAMPLE_DIRECTORIES.map {|dir| Dir.glob(File.join(dir, '*.rb'))}.reduce(:+).sort
12
56
  samples = samples.select {|path| path.include?("#{name}.rb")} unless name.nil?
13
57
  Rake::Task['glimmer:sample:code'].invoke(name) if samples.size == 1
14
58
  Glimmer::Launcher.new(samples << '--quiet=false').launch
15
59
  end
16
60
 
17
- namespace :run do
18
- task :hello do
19
- samples = Dir.glob(File.expand_path('../../../samples/hello/*.rb', __FILE__)).sort
20
- Glimmer::Launcher.new(samples << '--quiet=false').launch
21
- end
22
-
23
- task :elaborate do
24
- samples = Dir.glob(File.expand_path('../../../samples/elaborate/*.rb', __FILE__)).sort
25
- Glimmer::Launcher.new(samples << '--quiet=false').launch
26
- end
27
- end
28
-
29
61
  desc 'Lists Glimmer internal samples [included in gem]. Filters by query if specified (query is optional)'
30
- task :list, [:query] do |t, args|
31
- Rake::Task['glimmer:sample:list:hello'].invoke(args[:query])
32
- Rake::Task['glimmer:sample:list:elaborate'].invoke(args[:query])
33
- end
34
-
35
- namespace :list do
36
- task :hello, [:query] => :requires do |t, args|
37
- array_of_arrays = Dir.glob(File.expand_path('../../../samples/hello/*.rb', __FILE__)).map do |path|
62
+ task :list, [:query] => [:requires, :glimmer_gems] do |t, args|
63
+ Glimmer::Config::SAMPLE_DIRECTORIES.each do |dir|
64
+ sample_group_name = File.basename(dir)
65
+ human_sample_group_name = sample_group_name.underscore.titlecase
66
+ array_of_arrays = Dir.glob(File.join(dir, '*.rb')).map do |path|
38
67
  File.basename(path, '.rb')
39
68
  end.select do |path|
40
69
  args[:query].nil? || path.include?(args[:query])
@@ -42,10 +71,10 @@ namespace :glimmer do
42
71
  [path, path.underscore.titlecase, "#{'bin/' if Glimmer::Launcher.dev_mode?}glimmer sample:run[#{path}]"]
43
72
  end.sort
44
73
  if array_of_arrays.empty?
45
- puts "No Glimmer Hello Samples match the query."
74
+ puts "No Glimmer #{human_sample_group_name} Samples match the query."
46
75
  else
47
76
  puts
48
- puts " Glimmer Hello Samples (run all via: #{'bin/' if Glimmer::Launcher.dev_mode?}glimmer sample:run:hello):"
77
+ puts " Glimmer #{human_sample_group_name} Samples:"
49
78
  puts Text::Table.new(
50
79
  :head => %w[Name Description Run],
51
80
  :rows => array_of_arrays,
@@ -56,56 +85,29 @@ namespace :glimmer do
56
85
  )
57
86
  end
58
87
  end
59
-
60
- task :elaborate, [:query] => :requires do |t, args|
61
- array_of_arrays = Dir.glob(File.expand_path('../../../samples/elaborate/*.rb', __FILE__)).map do |path|
62
- File.basename(path, '.rb')
63
- end.select do |path|
64
- args[:query].nil? || path.include?(args[:query])
65
- end.map do |path|
66
- [path, path.underscore.titlecase, "#{'bin/' if Glimmer::Launcher.dev_mode?}glimmer sample:run[#{path}]"]
67
- end.sort
68
- if array_of_arrays.empty?
69
- puts "No Glimmer Elaborate Samples match the query."
70
- else
71
- puts
72
- puts " Glimmer Elaborate Samples (run all via: #{'bin/' if Glimmer::Launcher.dev_mode?}glimmer sample:run:elaborate):"
73
- puts Text::Table.new(
74
- :head => %w[Name Description Run],
75
- :rows => array_of_arrays,
76
- :horizontal_padding => 1,
77
- :vertical_boundary => ' ',
78
- :horizontal_boundary => ' ',
79
- :boundary_intersection => ' '
80
- )
81
- end
82
- end
83
88
  end
84
-
89
+
85
90
  desc 'Outputs code for a Glimmer internal sample [included in gem] (name is required)'
86
- task :code, [:name] => :requires do |t, args|
87
- samples = (Dir.glob(File.expand_path('../../../samples/hello/*.rb', __FILE__)) + Dir.glob(File.expand_path('../../../samples/elaborate/*.rb', __FILE__))).sort
91
+ task :code, [:name] => [:requires, :glimmer_gems] do |t, args|
92
+ require 'tty-markdown' unless OS.windows?
93
+ samples = Glimmer::Config::SAMPLE_DIRECTORIES.map {|dir| Dir.glob(File.join(dir, '*.rb'))}.reduce(:+).sort
88
94
  sample = samples.detect {|path| path.include?("#{args[:name].to_s.underscore.downcase}.rb")}
89
95
  sample_additional_files = Dir.glob(File.join(sample.sub('.rb', ''), '**', '*.rb'))
90
- ([sample] + sample_additional_files).each do |file|
91
- puts
92
- puts "# #{file}"
93
- puts
94
- puts File.read(file)
95
- puts
96
- puts '# # #'
97
- puts
98
- end
96
+ code = ([sample] + sample_additional_files).map do |file|
97
+ <<~RUBY
98
+
99
+ # #{file}
100
+
101
+ #{File.read(file)}
102
+
103
+ # # #
104
+
105
+ RUBY
106
+ end.join("\n")
107
+ code = TTY::Markdown.parse("```ruby\n#{code}\n```") unless OS.windows?
108
+ puts code
99
109
  end
100
110
 
101
- task :requires do
102
- require 'text-table'
103
- require 'facets/string/titlecase'
104
- require 'facets/string/underscore'
105
-
106
- require_relative 'launcher'
107
- end
108
-
109
111
  end
110
112
 
111
113
  namespace :package do
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'facets'
2
23
  require 'text-table'
3
24
 
@@ -1,9 +1,32 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'fileutils'
2
23
  require 'os'
3
24
  require 'facets'
4
25
 
5
26
  # TODO refactor to nest under RakeTask namespace
6
27
 
28
+ MAIN_OBJECT = self
29
+
7
30
  class Scaffold
8
31
  class << self
9
32
  include FileUtils
@@ -179,6 +202,13 @@ class Scaffold
179
202
  def custom_shell_gem(custom_shell_name, namespace)
180
203
  gem_name = "glimmer-cs-#{compact_name(custom_shell_name)}"
181
204
  gem_summary = "#{human_name(custom_shell_name)} - Glimmer Custom Shell"
205
+ begin
206
+ custom_shell_keyword = dsl_widget_name(custom_shell_name)
207
+ MAIN_OBJECT.method(custom_shell_keyword)
208
+ return puts("CustomShell keyword `#{custom_shell_keyword}` is unavailable (occupied by a built-in Ruby method)! Please pick a different name.")
209
+ rescue NameError
210
+ # No Op (keyword is not taken by a built in Ruby method)
211
+ end
182
212
  if namespace
183
213
  gem_name += "-#{compact_name(namespace)}"
184
214
  gem_summary += " (#{human_name(namespace)})"
@@ -350,12 +380,19 @@ class Scaffold
350
380
  end
351
381
 
352
382
  def gem_bin_file(gem_name, custom_shell_name, namespace)
383
+ # TODO change this so that it does not mix Glimmer unto the main object
353
384
  <<~MULTI_LINE_STRING
354
385
  require_relative '../lib/#{gem_name}'
355
386
 
356
- include Glimmer
387
+ class #{class_name(custom_shell_name)}App
388
+ include Glimmer
389
+
390
+ def open
391
+ #{dsl_widget_name(custom_shell_name)}.open
392
+ end
393
+ end
357
394
 
358
- #{dsl_widget_name(custom_shell_name)}.open
395
+ #{class_name(custom_shell_name)}App.new.open
359
396
  MULTI_LINE_STRING
360
397
  end
361
398
 
@@ -394,7 +431,7 @@ class Scaffold
394
431
  " -name '#{human_name(custom_shell_name)}'" +
395
432
  " -title '#{human_name(custom_shell_name)}'" +
396
433
  " -Bmac.CFBundleName='#{human_name(custom_shell_name)}'" +
397
- " -Bmac.CFBundleIdentifier='org.#{namespace ? compact_name(namespace) : compact_name(custom_shell_name)}.application.#{compact_name(custom_shell_name)}'"
434
+ " -Bmac.CFBundleIdentifier='org.#{namespace ? compact_name(namespace) : compact_name(custom_shell_name)}.application.#{compact_name(custom_shell_name).capitalize}'"
398
435
  # " -BlicenseType=" +
399
436
  # " -Bmac.category=" +
400
437
  # " -Bmac.signing-key-developer-id-app="
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'glimmer/swt/swt_proxy'
2
23
  require 'glimmer/swt/display_proxy'
3
24
 
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'glimmer/error'
2
23
  require 'glimmer/swt/swt_proxy'
3
24
  require 'glimmer/swt/display_proxy'
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'glimmer/swt/widget_listener_proxy'
2
23
 
3
24
  module Glimmer
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'glimmer/swt/style_constantizable'
2
23
 
3
24
  module Glimmer
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'glimmer/error'
2
23
  require 'glimmer/swt/swt_proxy'
3
24
  require 'glimmer/swt/display_proxy'
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2007-2020 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  module Glimmer
2
23
  module SWT
3
24
  # Proxy for org.eclipse.swt.graphics.Image