Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
f3c48aa
Merge branch 'yadav1' of https://github.com/BobHanson/java2script.git
BobHanson Aug 4, 2017
20874cd
// TODO: check proper treatment of abstract classes and interfaces
BobHanson Aug 4, 2017
6da1d4e
fixes compiler warnings, prelim default vararg constructor
BobHanson Aug 5, 2017
8683615
all inner and anonymous classes moved to their proper place; anon enum
BobHanson Aug 6, 2017
dae86d5
anon enum
BobHanson Aug 6, 2017
fe8e855
nonfinal variables into anonymous class defs; in-place anonymous defs
BobHanson Aug 6, 2017
e23f896
oops -- can't do the inlining with inner classes, just anonymous
BobHanson Aug 6, 2017
3b02a8c
minor formatting
BobHanson Aug 6, 2017
b3b553f
back to static def for inner classes.
BobHanson Aug 6, 2017
03a2c6f
new java core files
BobHanson Aug 8, 2017
e6606c7
java core working generally
BobHanson Aug 8, 2017
46f7de0
first no-SAEM core.java success with test.Test_Final - more to do...
BobHanson Aug 8, 2017
1863e9c
Enum fixes; regex Matcher.js and Pattern.js replacements from SwingJS
BobHanson Aug 9, 2017
4e6cc90
reged Matches.js Pattern.js Enum fixes
BobHanson Aug 9, 2017
ef65df6
arrays, reflection
BobHanson Aug 11, 2017
b651a17
file cleanup
BobHanson Aug 11, 2017
cd75b77
array slice fix
BobHanson Aug 11, 2017
c1d8c68
fixes (char) cast to Object
BobHanson Aug 12, 2017
2a76570
fixes array instanceOf ...
BobHanson Aug 12, 2017
0fbe820
// BH 8/12/2017 7:08:39 AM instanceOf fix for arrays
BobHanson Aug 12, 2017
848d297
// BH 8/12/2017 7:08:39 AM instanceOf fix for arrays
BobHanson Aug 12, 2017
402a24f
missing reserved words
BobHanson Aug 13, 2017
9c33519
Clazz.newArray$ redesign
BobHanson Aug 14, 2017
ee5b899
Clazz.newArray$ redesign; adds Character code
BobHanson Aug 14, 2017
3178ef8
code clean up
BobHanson Aug 14, 2017
d4ea1b0
code clean up
BobHanson Aug 14, 2017
a2287c4
test suite work
BobHanson Aug 14, 2017
ce238da
test suite work
BobHanson Aug 14, 2017
9775234
j2sSwingJS.js work
BobHanson Aug 14, 2017
0285f5a
Java 8 catch a|b|c...; Array.newInstance
BobHanson Aug 16, 2017
cd24e06
Array static classes in j2sSwingJS
BobHanson Aug 16, 2017
930f083
Array class moved to Java
BobHanson Aug 17, 2017
244f9de
Array class moved to Java
BobHanson Aug 17, 2017
8e004b2
Test_Char, Test_Static, Test_Array
BobHanson Aug 17, 2017
8077bf5
// BH 8/17/2017 10:45:26 AM java.lang.reflect.Array moved to java;
BobHanson Aug 17, 2017
702bad8
array fixes
BobHanson Aug 19, 2017
c65139a
array fixes
BobHanson Aug 19, 2017
db764d5
Fix for varargs null in method call
BobHanson Aug 19, 2017
5cc26e0
regex still not working
BobHanson Aug 19, 2017
6cab9cd
regex still not working
BobHanson Aug 19, 2017
e62b738
RegExp, Formatter
BobHanson Aug 24, 2017
0260045
RegExp
BobHanson Aug 24, 2017
1ffe0e0
AST fixes
BobHanson Aug 24, 2017
4ae9de6
adds zlib; deprecation of .j2smap
BobHanson Aug 24, 2017
e7f36e4
String.format unqualified; saving j2sSwingJS.js
BobHanson Aug 24, 2017
7c547c0
working on Test_Var
BobHanson Aug 25, 2017
1878218
warning removal
BobHanson Aug 25, 2017
5420ebc
fix for package name variables
BobHanson Aug 25, 2017
8ad84ec
added tests Appendable, Bugs, and Var
BobHanson Aug 25, 2017
3ebec89
predefined package names that cannot be var names
BobHanson Aug 25, 2017
3d73757
nonqualified name methods into javajs/api/js
BobHanson Aug 25, 2017
232dffc
URL, zip file reading
BobHanson Aug 26, 2017
78c4caf
Url, zip, nonqualified name directories
BobHanson Aug 26, 2017
5758cb3
Zip output fix
BobHanson Aug 26, 2017
e930128
ZIP reading/writing; fix for super() to Object not adding $init$ call
BobHanson Aug 26, 2017
03beb8a
to replace
BobHanson Aug 26, 2017
0423e38
new tests
BobHanson Aug 26, 2017
b7575a7
code cleanup; removing ability to use @j2sIgnore with constructors
BobHanson Aug 26, 2017
bd12d77
TODO comment
BobHanson Aug 26, 2017
8decacc
// TODO: resource loading using ResourceBundle.getBundle throws error
BobHanson Aug 30, 2017
414366a
// TODO: resource loading using ResourceBundle.getBundle throws error
BobHanson Aug 30, 2017
4aacb1b
getResourceAsStream
BobHanson Aug 30, 2017
a5f217f
java.lang.Class implemented
BobHanson Aug 31, 2017
89c6e18
java.lang.Class implemented
BobHanson Aug 31, 2017
9a5b75c
java.lang.Class implemented
BobHanson Aug 31, 2017
0ccef27
java.lang.Class implemented
BobHanson Aug 31, 2017
b7dd139
java.lang.Class implemented
BobHanson Aug 31, 2017
c7e7f42
FileInputStream
BobHanson Sep 1, 2017
5ec90fb
Installation of SwingJS Part 1
BobHanson Sep 1, 2017
5b6ca2d
Installation of SwingJS Part 2/2
BobHanson Sep 1, 2017
479b634
original ByteArrayOutputStream replaced
BobHanson Sep 1, 2017
31af206
SwingJS, javax, sun files added
BobHanson Sep 1, 2017
d1774e2
removing test/dev/j2s files
BobHanson Sep 1, 2017
e02c968
Old SAEM @j2sIgnore instances removed
BobHanson Sep 1, 2017
54dff99
TODO check swingjs for @j2sNative
BobHanson Sep 1, 2017
75f4757
@j2sIgnore, @j2sNative calls checked for qualified names
BobHanson Sep 1, 2017
f05c5d9
removal of SAEM references
BobHanson Sep 1, 2017
e188948
SAEM removed
BobHanson Sep 1, 2017
b799976
adds java.lang.System to excluded classes for qualified names
BobHanson Sep 2, 2017
1b351c1
adds missing default constructors for second outer class in a file
BobHanson Sep 2, 2017
c255a82
adding swingjs.JSAppletViewer and swingjs.JSFrameViewer to nonqualified
BobHanson Sep 2, 2017
6c359e8
adding nonqualified classes and not adding default constructor when
BobHanson Sep 2, 2017
7a7df30
"construct" for nonqualified classes
BobHanson Sep 2, 2017
cf35c83
fix for super call not having correct arguments
BobHanson Sep 2, 2017
eed23e0
adding awt, javax, sun, etc.
BobHanson Sep 2, 2017
85ce37d
whitespace
BobHanson Sep 2, 2017
56d8e57
removing line endings in @j2sNative blocks to avoid return problems
BobHanson Sep 2, 2017
c281a05
removing java.lang.Thread from nonQualified classes
BobHanson Sep 2, 2017
57466b2
allowing for inner-class call to private method in outer class
BobHanson Sep 2, 2017
988869e
Updating java.util maps and others for qualified names
BobHanson Sep 2, 2017
64dc46e
Functional awt/swing with no ambiguities
BobHanson Sep 2, 2017
4880a16
working awt/swing applets
BobHanson Sep 2, 2017
448c9c4
new parameter order for Clazz.decorateClass
BobHanson Sep 5, 2017
b942403
TODO inner class refs
BobHanson Sep 5, 2017
9f21671
instanceOf need not force loading
BobHanson Sep 5, 2017
2c1ab08
Clazz.instanceOf should allow clazz to be a string
BobHanson Sep 5, 2017
977b0e7
unnecessary extra anonymous function in Clazz.load
BobHanson Sep 5, 2017
3714aec
String.equalsIgnoreCase$S not equalsIgnoreCase
BobHanson Sep 5, 2017
5bc4dde
updated tests
BobHanson Sep 5, 2017
4c1ebc1
updated test files
BobHanson Sep 5, 2017
5fc0bc8
removing unnecessary addition of Foo() if Foo(int...) present
BobHanson Sep 6, 2017
1475faa
fixing String + double/float/Double/Float
BobHanson Sep 6, 2017
6c535fe
test for fixing String + double/float/Double/Float
BobHanson Sep 6, 2017
7374c49
comments only
BobHanson Sep 6, 2017
ea586be
comment
BobHanson Sep 6, 2017
001b377
adds 32-bit java.util.BitSet extends javajs.util.BS
BobHanson Sep 6, 2017
ea2e8f2
documentation added to net.sf.j2s.core.java from SwingJS
BobHanson Sep 6, 2017
03e547e
TO int f() { return 'c' } returns string
BobHanson Sep 6, 2017
9036c23
wrong project for doc
BobHanson Sep 6, 2017
2e64e57
bug fixes working on ReturnStatement
BobHanson Sep 6, 2017
5be91cd
multiple issues with char/Character
BobHanson Sep 7, 2017
36c7671
full primitive casting
BobHanson Sep 7, 2017
cf454e2
full primitive casting test.Test_Char.java
BobHanson Sep 7, 2017
9d92d69
full primitive casting
BobHanson Sep 7, 2017
faafdf1
adds assert
BobHanson Sep 7, 2017
403faef
adds Clazz.assert(func_tf, func_msg)
BobHanson Sep 7, 2017
51c6069
minor refactoring
BobHanson Sep 7, 2017
60cf7f4
removes support for j2s.compiler.quirks
BobHanson Sep 7, 2017
583bf3a
*=,+=, etc.; Clazz.doubleToInt deprecated -- instead, .intValue()
BobHanson Sep 8, 2017
9ca09ed
warnings removed
BobHanson Sep 9, 2017
5c1a1b4
minor refactoring
BobHanson Sep 9, 2017
41ac2da
super-fast byte, short, int conversion
BobHanson Sep 10, 2017
0382e40
add support for (x?'c':99);cleaner $b$
BobHanson Sep 12, 2017
3b9b0b9
add support for (x?'c':99);cleaner $b$
BobHanson Sep 12, 2017
e1b2c5e
save
BobHanson Sep 12, 2017
7de13fe
minor
BobHanson Sep 12, 2017
2184ae3
minor
BobHanson Sep 12, 2017
24f811a
ClassLoader elaborated for assertion
BobHanson Sep 22, 2017
f21952c
refactored visitors
BobHanson Sep 24, 2017
ad33f2f
refactored JSUtil
BobHanson Sep 24, 2017
feed3e3
privatizing
BobHanson Sep 24, 2017
6fd6d35
@j2s Javadoc efficiency
BobHanson Sep 24, 2017
c74e2ea
apache harmony error messages -- removing internationalization
BobHanson Sep 24, 2017
60412c8
j2sNative fixes,efficiencies
BobHanson Sep 24, 2017
dd9a335
fix for ! Boolean; Clazz.static$ corrects dependency for static calls
BobHanson Sep 25, 2017
778d0d9
indicating deprecation of raw JS files in src
BobHanson Sep 25, 2017
491fa34
testmain.htm
BobHanson Sep 25, 2017
e3af98d
Test_DivEqual, Test_Boolean, Test_Cast
BobHanson Sep 25, 2017
99d9432
test for dynamic class loading for static references; assertion checks
BobHanson Sep 25, 2017
d3941fb
minor Formatter fixes
BobHanson Sep 25, 2017
ea3cc55
adding asserts to Enum
BobHanson Sep 25, 2017
dc7b9ed
assert checks
BobHanson Sep 25, 2017
60eabda
test_Cinit -- class initialization challenges
BobHanson Sep 27, 2017
783d877
implementation of C$.$clinit$ - untested
BobHanson Sep 30, 2017
ef07cf8
$clinit$ implementation
BobHanson Sep 30, 2017
67cafcc
$clinit$ implementation; Enum/Class integration
BobHanson Oct 3, 2017
5e0dec2
fixes for $clinit$
BobHanson Oct 3, 2017
d949ced
refactoring for more efficient use of C$;
BobHanson Oct 4, 2017
22b3a84
full validation; minimal load dependencies
BobHanson Oct 4, 2017
13174d1
full validation; minimal load dependencies; refactored
BobHanson Oct 4, 2017
da9e62a
$clinit$, P$, and p$ testing complete - full pass.
BobHanson Oct 5, 2017
61e6f86
$clinit$, P$, and p$ testing complete - full pass.
BobHanson Oct 5, 2017
ff003fe
$clinit$ fix
BobHanson Oct 5, 2017
101df68
refactoring
BobHanson Oct 6, 2017
8d2490a
refactoring
BobHanson Oct 6, 2017
dba81bb
refactoring out xhtml references into adapters.ExtendedAdapter
BobHanson Oct 6, 2017
0aac80a
minor refactoring
BobHanson Oct 6, 2017
1e4c730
refactoring almost complete
BobHanson Oct 8, 2017
af7fd30
refactoring $static($static...))
BobHanson Oct 8, 2017
84165e4
$new inner class C$ fix
BobHanson Oct 8, 2017
71be7dc
node-based class loading deprecated
BobHanson Oct 11, 2017
5c36c33
node-based class loading deprecated
BobHanson Oct 11, 2017
ce11423
more refactoring; oddness in interfacez array sometimes being actual
BobHanson Oct 12, 2017
9437187
fixing new String(byte[])
BobHanson Oct 13, 2017
088e6be
refactoring
BobHanson Oct 14, 2017
859c5be
refactoring
BobHanson Oct 14, 2017
f756083
refactoring; simplification; removes need for package.js
BobHanson Oct 14, 2017
3c76082
additional support and bug fixes for java.lang.Class native methods
BobHanson Oct 15, 2017
d242293
deprecating dependency compiler. There is nothing to check now that all
BobHanson Oct 15, 2017
c462b6c
deprecation of nodes and dependency scan
BobHanson Oct 15, 2017
7337c28
site.zip for easier testing. See swingjs/examples/test/testmain.htm
BobHanson Oct 15, 2017
116c388
refactoring for clarity and simplification
BobHanson Oct 15, 2017
90ad6fd
adding gnu.jpdf
BobHanson Oct 15, 2017
0c784ef
adding gnu.jpdf
BobHanson Oct 15, 2017
015275a
adding gnu.jpdf
BobHanson Oct 15, 2017
dab0e1c
Applet fixes for new qualified calling -- Event Queue working; applets
BobHanson Nov 13, 2017
424a7f6
removing unnecessary calls
BobHanson Nov 13, 2017
ade8c35
test applets working
BobHanson Nov 14, 2017
a3e98ed
test applets working
BobHanson Nov 14, 2017
cca98ce
test suite working -- adding alert when code is not a JApplet
BobHanson Nov 14, 2017
1022a0d
//BH 11/13/17 -- final adjustments allow
BobHanson Nov 14, 2017
7496f77
comments
BobHanson Nov 14, 2017
0526f58
//BH 11/18/2017 -- adds full name-qualified support for generics,
BobHanson Nov 18, 2017
4e61ce1
slightly better handling of Java.awt.Frame
BobHanson Nov 18, 2017
1ec20db
temp
BobHanson Nov 18, 2017
99e9719
ignore
BobHanson Nov 18, 2017
b0a0d04
Applets running
BobHanson Nov 19, 2017
b4d232b
comments
BobHanson Nov 19, 2017
e08083b
New Source files for test
BobHanson Nov 19, 2017
349b460
more source files for test
BobHanson Nov 19, 2017
fd8c6e4
runtime additions
BobHanson Nov 19, 2017
def715e
runtime additions -- applets running
BobHanson Nov 19, 2017
2b20e97
moving JAudioThread to javajs; fix for Clazz.load(P$....)
BobHanson Nov 19, 2017
944ed02
moving JSAudioThread, fixing static JQueryUI call
BobHanson Nov 19, 2017
6071900
moving JSAudioThreadOwner to JSAudioThread.Owner
BobHanson Nov 19, 2017
0629480
adding a2s package
BobHanson Nov 19, 2017
1f2f00d
fix for superclass being an inner class
BobHanson Nov 20, 2017
f865796
fixes for qualified names
BobHanson Nov 20, 2017
99c0ac5
html templates
BobHanson Nov 20, 2017
fb443d4
updates for runtime and transpiler
BobHanson Nov 20, 2017
9095c81
Clazz.new(XXXX.c$...) not just new XXXX
BobHanson Nov 20, 2017
8c109f5
qualified names in @j2sNative
BobHanson Nov 20, 2017
7d17aaf
Falstad AtomViewer applet running smoothly
BobHanson Nov 20, 2017
0b23d28
fixing j2s-qualified names in jQuery/JS interface functions
BobHanson Nov 20, 2017
2a51e5d
adding in JSAudioThreadOwner as JSAudioThread.Owner
BobHanson Nov 20, 2017
aea4897
fixes for double->int using |0 - needed (); audio working
BobHanson Nov 21, 2017
74db39f
fixes for j2s-qualified names; Falstad applets working, including
BobHanson Nov 22, 2017
c46fecb
fixing <? extends T> generics (TreeSet)
BobHanson Nov 22, 2017
79a437e
Falstad Circuit running
BobHanson Nov 22, 2017
a6b4836
adds validate() for applets.
BobHanson Nov 22, 2017
5fb83bc
Falstad circuit upgrade; moved to falstad/circuit, not falstad/Circuit.
BobHanson Nov 22, 2017
7864ae7
Java 6 fix!!! for LinkedHashMap - could it be that processing order of
BobHanson Nov 22, 2017
e249a97
working on PDF printing.
BobHanson Nov 22, 2017
11ba447
Fix for toString not overriding Object's toString when found in
BobHanson Nov 23, 2017
9cd37c3
Applets running, including PDF creation; refactoring transpiler;
BobHanson Nov 24, 2017
8dd5645
test Site.zip and src files 11/24/17
BobHanson Nov 24, 2017
09fc4b4
Bob's Nov. 24, 2017 transpiler jar for eclipse/dropins
BobHanson Nov 24, 2017
7d8a703
fix for some methods with generic parameters not aliasing
BobHanson Nov 27, 2017
9afa9d7
fixes missing aliases for some methods with generic params
BobHanson Nov 27, 2017
58c5267
working on generics
BobHanson Nov 28, 2017
f0dc958
class initialization should not set Objects to null
BobHanson Nov 30, 2017
f6b55a4
adds clazz.$init0$ to prepare primitives at the right time - before
BobHanson Dec 4, 2017
5e4d89a
fixes for initialization events
BobHanson Dec 4, 2017
2c45a59
fix for $init0$ and $init$ not fully running
BobHanson Dec 5, 2017
ada4c98
site after $init0$ and $init$ changes
BobHanson Dec 5, 2017
f7a0a34
adds support for void.class
BobHanson Dec 6, 2017
4eab58a
fixes from PhET testing
BobHanson Dec 7, 2017
90c47b5
fixes from PhET testing
BobHanson Dec 7, 2017
1a43dfd
PhET added to net.sf.j2s.core.test
BobHanson Dec 7, 2017
133dd5c
simplified .j2s
BobHanson Dec 7, 2017
f0b656b
project clean-up
BobHanson Dec 7, 2017
6baa383
PhET test site
BobHanson Dec 7, 2017
50e4e2b
test.Test_init
BobHanson Dec 7, 2017
5077b2e
refactoring of ASTScriptVisitor -
BobHanson Dec 7, 2017
5475978
Test_Init, Test_Generic_Java8, others.
BobHanson Dec 7, 2017
53120a5
net.sf.j2s.core clean up -- SWT business removed to unused\
BobHanson Dec 16, 2017
12ba72a
commented sections removed
BobHanson Dec 16, 2017
b020b0c
adapters.Bindings clean up
BobHanson Dec 16, 2017
13a7075
j2s runtime refactoring 1/2
BobHanson Dec 16, 2017
3da6320
j2s runtime refactoring 2/2
BobHanson Dec 16, 2017
56c837b
refactored run-time; fix for static initialization timing
BobHanson Dec 16, 2017
b264780
refactoring adapters; C$.superClazz to C$.superclazz for compression
BobHanson Dec 17, 2017
49b7d60
refactoring adapters, adds build_core_applet and Google closure compiler
BobHanson Dec 17, 2017
1d31e45
moving unused pieces to unused/
BobHanson Dec 18, 2017
0aaa901
update to new Clazz method names
BobHanson Dec 18, 2017
866e73b
refactored run-time Clazz methods; Jama -> gov.nist.jama
BobHanson Dec 18, 2017
066be40
refactored run-time Clazz methods; Jama -> gov.nist.jama
BobHanson Dec 18, 2017
40510b6
move of Jama to gov.nist.jama
BobHanson Dec 18, 2017
cc4868f
setting up release files
BobHanson Dec 18, 2017
dd471a0
organizing release files
BobHanson Dec 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tests/net.sf.j2s.test.junit/bin/*
*/*/bin
sources/net.sf.j2s.lib/j2slib
dist/*
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Quick Build Directions

```
cd workspace (where workspace is your Eclipse Neon Workspace)
git clone https://github.com/BobHanson/java2script.git
git checkout swingjs
```

Then, open Eclipse, open Navigator, and hit Refresh. java2script will show up as a blank generic trunk without a name (i.e. 'trunk[]')

![Eclipse Refresh](https://68.media.tumblr.com/47add4de1bc35f07f0e709fd6634289d/tumblr_or8mhqHsje1s5a4bko3_1280.png)

![Eclipse trunk](https://68.media.tumblr.com/866cc531b6b9d1c3dca8071732a66a26/tumblr_or8mihapDW1s5a4bko1_540.png)

Or, do the equivalent tasks on Eclipse's graphical git tool.

Go to net.sf.j2s.core directory, Clean Project, then export as a Deployable plug-ins and fragments.

![Eclipse Deployable](https://68.media.tumblr.com/c5714cadb166c7a887fbd00110e19afc/tumblr_or8mhqHsje1s5a4bko1_1280.png)

![Eclipse Optionsj](https://68.media.tumblr.com/0a7d77765983c11ca59b4739307359ee/tumblr_or8mhqHsje1s5a4bko2_1280.png)

Core is the only thing that was affected. Hence, everything else can be built the same exact way it was built before (assuming you were using the HEAD of the master branch of j2s).
2 changes: 1 addition & 1 deletion demos/org.java2script.demo.gtalk/.j2s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Java2Script Configuration
#Sun Mar 18 22:29:00 CST 2007
j2s.resources.list=../../plugins/net.sf.j2s.lib_1.0.0/j2slib/java.runtime.j2x,../../plugins/net.sf.j2s.lib_1.0.0/j2slib/swt.j2x,bin/org/java2script/demo/gtalk/GTalkRunnable.js,bin/org/java2script/demo/gtalk/AddFriendDialog.js,bin/org/java2script/demo/gtalk/AddFriendRunnable.js,bin/org/java2script/demo/gtalk/ChatDialog.js,bin/org/java2script/demo/gtalk/CloseChattingRunnable.js,bin/org/java2script/demo/gtalk/GoogleTalk.js,bin/org/java2script/demo/gtalk/JabberPool.js,bin/org/java2script/demo/gtalk/LoginRunnable.js,bin/org/java2script/demo/gtalk/LogoutRunnable.js,bin/org/java2script/demo/gtalk/ReceivingRunnable.js,bin/org/java2script/demo/gtalk/SendingRunnable.js,bin/org/java2script/demo/gtalk/UpdatingRunnable.js
j2s.resources.list=../../plugins/net.sf.j2s.lib_3.1.1/j2slib/java.runtime.j2x,../../plugins/net.sf.j2s.lib_3.1.1/j2slib/swt.j2x,bin/org/java2script/demo/gtalk/GTalkRunnable.js,bin/org/java2script/demo/gtalk/AddFriendDialog.js,bin/org/java2script/demo/gtalk/AddFriendRunnable.js,bin/org/java2script/demo/gtalk/ChatDialog.js,bin/org/java2script/demo/gtalk/CloseChattingRunnable.js,bin/org/java2script/demo/gtalk/GoogleTalk.js,bin/org/java2script/demo/gtalk/JabberPool.js,bin/org/java2script/demo/gtalk/LoginRunnable.js,bin/org/java2script/demo/gtalk/LogoutRunnable.js,bin/org/java2script/demo/gtalk/ReceivingRunnable.js,bin/org/java2script/demo/gtalk/SendingRunnable.js,bin/org/java2script/demo/gtalk/UpdatingRunnable.js
j2s.abandoned.resources.list=
j2s.output.path=bin
j2s.compiler.status=enable
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
<body>
<!-- A Link An Application (ALAA) -->
<div class="powered">Powered by <a href="http://j2s.sourceforge.net/">Java2Script</a></div>
<a class="alaa" href="javascript:if(a='org.java2script.demo.gtalk.GoogleTalk@bin/',window['ClazzLoader']!=null)$w$(a);else{var d=document,t='onreadystatechange',x=d.createElement('SCRIPT'),f=function(){var s=this.readyState;if(s==null||s=='loaded'||s=='complete'){$w$(a);}};x.src='http://archive.java2script.org/1.0.0-m5/j2slib.z.js';(typeof x[t]=='undefined')?x.onload=f:x[t]=f;d.getElementsByTagName('HEAD')[0].appendChild(x);void(0);}">org.java2script.demo.gtalk.GoogleTalk</a>
<a class="alaa" href="javascript:if(a='org.java2script.demo.gtalk.GoogleTalk@bin/',window['ClazzLoader']!=null)$w$(a);else{var d=document,t='onreadystatechange',x=d.createElement('SCRIPT'),f=function(){var s=this.readyState;if(s==null||s=='loaded'||s=='complete'){$w$(a);}};x.src='http://archive.java2script.org/3.1.1-m5/j2slib.z.js';(typeof x[t]=='undefined')?x.onload=f:x[t]=f;d.getElementsByTagName('HEAD')[0].appendChild(x);void(0);}">org.java2script.demo.gtalk.GoogleTalk</a>

<script type="text/javascript">
window["j2s.lib"] = {
base : "http://archive.java2script.org/",
alias : "1.0.0-m5",
alias : "3.1.1-m5",
version : "20070315",
/*forward : true,*/
mode : "dailybuild",
Expand Down
16 changes: 16 additions & 0 deletions dist/plugins/net.sf.j2s.ajax_3.1.1/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Java2Script AJAX Support
Bundle-SymbolicName: net.sf.j2s.ajax; singleton:=true
Bundle-Version: 3.1.1
Bundle-Activator: net.sf.j2s.ajax.AjaxPlugin
Bundle-Vendor: j2s.sourceforge.net
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.swt,
org.eclipse.jdt.core,
org.eclipse.core.resources,
org.eclipse.core.variables,
org.eclipse.jface
Export-Package: net.sf.j2s.ajax
Eclipse-LazyStart: true
Bundle-ClassPath: ajaxlib.jar
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxcore.jar
Binary file not shown.
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxlib.jar
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxlibsrc.zip
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxpipe.jar
Binary file not shown.
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxrpc.jar
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxrpcsrc.zip
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxstore.jar
Binary file not shown.
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxswt.jar
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/ajaxswtsrc.zip
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/j2stag.jar
Binary file not shown.
Binary file added dist/plugins/net.sf.j2s.ajax_3.1.1/j2stagsrc.zip
Binary file not shown.
44 changes: 44 additions & 0 deletions dist/plugins/net.sf.j2s.ajax_3.1.1/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.jdt.core.classpathVariableInitializer">
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_CORE"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_SWT"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_RPC"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_PIPE"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_STORE"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="J2S_ANNOTATION"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_CORE_SRC"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_SWT_SRC"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_RPC_SRC"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_PIPE_SRC"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="AJAX_STORE_SRC"/>
<classpathVariableInitializer
class="net.sf.j2s.ajax.AJAXVariableInitializer"
variable="J2S_ANNOTATION_SRC"/>
</extension>

</plugin>
Binary file added dist/plugins/net.sf.j2s.core_3.1.1.jar
Binary file not shown.
12 changes: 12 additions & 0 deletions dist/plugins/net.sf.j2s.lib_3.1.1/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Java2Script Library
Bundle-SymbolicName: net.sf.j2s.lib; singleton:=true
Bundle-Version: 3.1.1
Bundle-Activator: net.sf.j2s.lib.LibPlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,
net.sf.j2s.ui
Eclipse-AutoStart: true
Bundle-Vendor: j2s.sourceforge.net
Bundle-ClassPath: library.jar
Binary file added dist/plugins/net.sf.j2s.lib_3.1.1/library.jar
Binary file not shown.
Binary file not shown.
18 changes: 18 additions & 0 deletions dist/plugins/net.sf.j2s.lib_3.1.1/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
id="net.sf.j2s.innerjsresources"
name="Inner JS Resources"
point="net.sf.j2s.ui.externalResourceProvider">
<externalResourceProvider
class="net.sf.j2s.lib.providers.JavaRuntimeJSProvider"
id="net.sf.j2s.lib.providers.javaRuntimeJS"/>
<!--
<externalResourceProvider
class="net.sf.j2s.lib.providers.JavaSWTJSProvider"
id="net.sf.j2s.lib.providers.javaSWTJS"/>
-->
</extension>

</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package net.sf.j2s.lib;

import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;

/**
* The main plugin class to be used in the desktop.
*/
public class LibPlugin extends Plugin {

//The shared instance.
private static LibPlugin plugin;

/**
* The constructor.
*/
public LibPlugin() {
plugin = this;
}

/**
* This method is called upon plug-in activation
*/
public void start(BundleContext context) throws Exception {
super.start(context);
}

/**
* This method is called when the plug-in is stopped
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
plugin = null;
}

/**
* Returns the shared instance.
*/
public static LibPlugin getDefault() {
return plugin;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*******************************************************************************
* Copyright (c) 2007 java2script.org and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Zhou Renjian - initial API and implementation
*******************************************************************************/

package net.sf.j2s.lib.build;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
* @author zhou renjian
*
* 2006-5-3
*/
public class Bundle2StringUtil {

/**
* @param args
* @throws FileNotFoundException
*/
public static void main(String[] args) throws FileNotFoundException {
String bundleName = null;
String basePath = "bin/";
if (args.length != 0) {
basePath = args[0];
bundleName = args[1];
} else {
bundleName = "net.sf.j2s.java.core.messages";
}
String bundlePath = bundleName.replaceAll("\\.", "/") + ".properties";
String content = RegExCompress.readFileAll(new FileInputStream(
new File(basePath, bundlePath)));
String contentStr = content
.replaceAll("\\s*#.*[\\r\\n]+", "")
.replaceAll("\\\\", "\\\\\\\\").replaceAll(
"\\t", "\\\\t").replaceAll("\\r", "\\\\r").replaceAll("\\n",
"\\\\n").replaceAll("\\'", "\\\\'")
.replaceAll("\\\"", "\\\\\"");
String jsStr = "java.util.ResourceBundle.registerBundle(\""
+ bundleName + "\", \"" + contentStr + "\");";
System.out.println(jsStr);
if (args.length != 0) {
try {
bundlePath = bundleName.replaceAll("\\.", "/") + ".js";
FileOutputStream fos = new FileOutputStream(new File(basePath,
bundlePath));
fos.write(jsStr.getBytes());
fos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*******************************************************************************
* Copyright (c) 2007 java2script.org and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Zhou Renjian - initial API and implementation
*******************************************************************************/

package net.sf.j2s.lib.build;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
* @author zhou renjian
*
* 2006-7-29
*/
public class J2SConcat {
/**
* @param args
*/
public static void main(String[] args) {
boolean completelyCompressing = true;
int indexDelta = 1;
if (args.length > 0 && ("true".equals(args[0]) || "false".equals(args[0]))) {
completelyCompressing = "true".equals(args[0]);
indexDelta++;
}
File dest = new File(args[indexDelta - 1]);
StringBuffer buf = new StringBuffer();
String j2sKeySig = "/* http://j2s.sf.net/ */";
buf.append(j2sKeySig);
System.out.println("To " + dest.getAbsolutePath());
boolean isAllFileEarlier = dest.exists();
if (isAllFileEarlier) {
for (int i = 0; i < args.length - 1 - indexDelta; i++) {
File src = new File(args[indexDelta], args[i + 1 + indexDelta]);
if (!src.exists()) {
System.err.println("Source file " + src.getAbsolutePath() + " does not exist!");
return ;
}
// System.out.println("Checking " + args[i + 1 + indexDelta] + " ...");
if (src.lastModified() > dest.lastModified()) {
isAllFileEarlier = false;
break;
}
}
if (isAllFileEarlier) {
System.out.println("Already updated.");
return;
}
}
for (int i = 0; i < args.length - 1 - indexDelta; i++) {
File src = new File(args[indexDelta], args[i + 1 + indexDelta]);
try {
String s = RegExCompress.readFileAll(new FileInputStream(src));
if (s.startsWith(j2sKeySig)) {
s = s.substring(j2sKeySig.length());
}
if (s.startsWith("Clazz.load") || s.startsWith("$_L")) {
int idx1 = s.indexOf("{") + 1;
if (idx1 != -1) {
int idx2 = s.lastIndexOf("}");
if (idx2 != -1) {
s = s.substring(idx1, idx2);
}
}
}
/*
if (completelyCompressing) {
buf.append(RegExCompress.regexCompress(s));
} else {
buf.append(RegExCompress.regexCompress2(s));
}
*/
buf.append(s);
} catch (FileNotFoundException e) {
e.printStackTrace();
return;
}
}
try {
FileOutputStream fos = new FileOutputStream(dest);
fos.write(new byte[] {(byte) 0xef, (byte) 0xbb, (byte) 0xbf}); // UTF-8 header!
if (completelyCompressing) {
fos.write(RegExCompress.regexCompress(buf.toString()).getBytes("UTF-8"));
} else {
fos.write(RegExCompress.regexCompress2(buf.toString()).getBytes("UTF-8"));
}
fos.close();
} catch (IOException e) {
e.printStackTrace();
}

}
}
Loading