cheri 0.0.9 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/examples/grid_bag_layout_demo.rb +23 -0
- data/examples/grid_table_align.rb +34 -0
- data/examples/grid_table_columns.rb +24 -0
- data/lib/cheri.jar +0 -0
- data/lib/cheri/builder/context.rb +9 -8
- data/lib/cheri/builder/main.rb +5 -3
- data/lib/cheri/builder/swing/connecter.rb +30 -5
- data/lib/cheri/builder/swing/main-old.rb +467 -0
- data/lib/cheri/builder/swing/main.rb +21 -6
- data/lib/cheri/cheri.rb +3 -14
- data/lib/cheri/explorer/explorer.rb +3 -1
- data/lib/cheri/java/builder/main.rb +4 -1
- data/lib/cheri/java/java.rb +11 -11
- data/lib/cheri/jruby.rb +2 -1
- data/lib/cheri/jruby/explorer/dialogs-old.rb +407 -0
- data/lib/cheri/jruby/explorer/dialogs.rb +119 -210
- data/lib/cheri/jruby/explorer/explorer.rb +34 -30
- data/lib/cheri/jruby/explorer/viewer.rb +115 -202
- data/lib/cheri/jruby/explorer/viewers.rb +214 -304
- data/lib/cheri/jruby/jruby.rb +17 -2
- metadata +7 -2
data/lib/cheri/jruby/jruby.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
|
2
|
+
# Copyright (C) 2007,2008,2009 William N Dortch <bill.dortch@gmail.com>
|
3
3
|
#
|
4
4
|
# Permission is hereby granted, free of charge, to any person obtaining
|
5
5
|
# a copy of this software and associated documentation files (the
|
@@ -22,6 +22,21 @@
|
|
22
22
|
#++
|
23
23
|
#
|
24
24
|
|
25
|
+
# WORKAROUND for JRUBY-3476 (no java_class for obj with singleton class)
|
26
|
+
# fixes reported Cheri "bug" #21960
|
27
|
+
|
28
|
+
x = java.lang.Object.new
|
29
|
+
# force singleton class
|
30
|
+
def x.foo; end
|
31
|
+
# redefine java_class if it doesn't work
|
32
|
+
class java::lang::Object
|
33
|
+
def java_class
|
34
|
+
self.class.java_class
|
35
|
+
end
|
36
|
+
end unless x.java_class
|
37
|
+
|
38
|
+
# END WORKAROUND
|
39
|
+
|
25
40
|
module Cheri
|
26
41
|
module JRuby
|
27
42
|
#:stopdoc:
|
@@ -44,7 +59,7 @@ class << self
|
|
44
59
|
proxy ? JU.get_proxy_class(name) : @unproxied[name] ||= JC.for_name(name)
|
45
60
|
end
|
46
61
|
def runtime #:nodoc:
|
47
|
-
@runtime ||= ::
|
62
|
+
@runtime ||= ::JRuby.runtime
|
48
63
|
end
|
49
64
|
def start_time #:nodoc:
|
50
65
|
runtime.start_time
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: cheri
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0
|
7
|
-
date:
|
6
|
+
version: 0.5.0
|
7
|
+
date: 2009-03-16 00:00:00 -07:00
|
8
8
|
summary: Cheri Builder Platform
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -33,6 +33,9 @@ files:
|
|
33
33
|
- README
|
34
34
|
- MIT-LICENSE
|
35
35
|
- examples/chat.rb
|
36
|
+
- examples/grid_bag_layout_demo.rb
|
37
|
+
- examples/grid_table_align.rb
|
38
|
+
- examples/grid_table_columns.rb
|
36
39
|
- examples/hello_world_1.rb
|
37
40
|
- examples/table_1.rb
|
38
41
|
- lib/cheri
|
@@ -60,6 +63,7 @@ files:
|
|
60
63
|
- lib/cheri/builder/swing
|
61
64
|
- lib/cheri/builder/swing/connecter.rb
|
62
65
|
- lib/cheri/builder/swing/constants.rb
|
66
|
+
- lib/cheri/builder/swing/main-old.rb
|
63
67
|
- lib/cheri/builder/swing/main.rb
|
64
68
|
- lib/cheri/builder/swing/types.rb
|
65
69
|
- lib/cheri/builder/xml
|
@@ -113,6 +117,7 @@ files:
|
|
113
117
|
- lib/cheri/jruby
|
114
118
|
- lib/cheri/jruby/explorer
|
115
119
|
- lib/cheri/jruby/explorer/common.rb
|
120
|
+
- lib/cheri/jruby/explorer/dialogs-old.rb
|
116
121
|
- lib/cheri/jruby/explorer/dialogs.rb
|
117
122
|
- lib/cheri/jruby/explorer/explorer.rb
|
118
123
|
- lib/cheri/jruby/explorer/splash.rb
|