Compare commits
850 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60a3f5bc64 | ||
|
|
4b171eda01 | ||
|
|
c759448e0d | ||
|
|
81abd14ca0 | ||
|
|
bcdcfc6278 | ||
|
|
1b8adc04a2 | ||
|
|
f306afc1c0 | ||
|
|
8fbcdf83c0 | ||
|
|
943b5566ce | ||
|
|
387cab5f5b | ||
|
|
288a7e2d1e | ||
|
|
459b08785a | ||
|
|
1ca38d0e9d | ||
|
|
00ae5656cd | ||
|
|
4d96cae462 | ||
|
|
34fa2378f9 | ||
|
|
790cf17df4 | ||
|
|
15f66c32d1 | ||
|
|
eafc1422b3 | ||
|
|
c677e3600a | ||
|
|
76765aa580 | ||
|
|
bd0df2a052 | ||
|
|
1c88b2f8a6 | ||
|
|
7236448766 | ||
|
|
594c9ed01f | ||
|
|
e19bb00950 | ||
|
|
a99f7bac50 | ||
|
|
7426919ce1 | ||
|
|
60e853a371 | ||
|
|
bdbba22ebf | ||
|
|
d213704f9d | ||
|
|
6b1c37ee8c | ||
|
|
6c04fd835e | ||
|
|
0f58116e47 | ||
|
|
d6817a2687 | ||
|
|
bc727bfd3b | ||
|
|
4354c3f6e3 | ||
|
|
8a523bd35c | ||
|
|
2aaeffd621 | ||
|
|
9b96a6a547 | ||
|
|
cfb63b2f47 | ||
|
|
082343e17d | ||
|
|
5f0ecdd12f | ||
|
|
e30875c59b | ||
|
|
086ab1bedc | ||
|
|
0f5ae4499c | ||
|
|
2149457854 | ||
|
|
5475b9302f | ||
|
|
e40b297a75 | ||
|
|
3cee35d8ec | ||
|
|
990254f01a | ||
|
|
4530bba422 | ||
|
|
d578f83f30 | ||
|
|
edb9c14b8c | ||
|
|
50f48a8476 | ||
|
|
4f488daefd | ||
|
|
5585d3e79e | ||
|
|
c94efca695 | ||
|
|
6b434f7272 | ||
|
|
25cce5a312 | ||
|
|
7f55dd4f2f | ||
|
|
b2149dd6c8 | ||
|
|
d8f03e7d34 | ||
|
|
29443cad9a | ||
|
|
52c8ea5a97 | ||
|
|
341b116927 | ||
|
|
6253136ee9 | ||
|
|
d8dbcf3152 | ||
|
|
197a2ddfef | ||
|
|
ad58c1d116 | ||
|
|
2f47ee7bbd | ||
|
|
18ff8e7ca8 | ||
|
|
2032a83d3f | ||
|
|
9e860f3435 | ||
|
|
a63f32a8c8 | ||
|
|
dcf598a1cd | ||
|
|
c89f2d7bff | ||
|
|
d31cf82da2 | ||
|
|
36d9f8ae34 | ||
|
|
996e6846f4 | ||
|
|
25183c156a | ||
|
|
228aeef766 | ||
|
|
d7358fec67 | ||
|
|
51a58bf5dc | ||
|
|
10fc71f9ef | ||
|
|
4e651ab482 | ||
|
|
53b1f1ca29 | ||
|
|
35b925db8c | ||
|
|
a2d4800aa0 | ||
|
|
1fab872b02 | ||
|
|
21e269f4c2 | ||
|
|
0590d5d822 | ||
|
|
0de2dd962c | ||
|
|
fb9dbf3a88 | ||
|
|
52dd839b3e | ||
|
|
58317112cf | ||
|
|
45da1acf72 | ||
|
|
cb48ba0b84 | ||
|
|
6a54f22ae0 | ||
|
|
34719749c5 | ||
|
|
9dff8d691f | ||
|
|
f6cd370370 | ||
|
|
795b53a014 | ||
|
|
9298831bab | ||
|
|
b1b8994004 | ||
|
|
1db3e0312e | ||
|
|
a23159ffac | ||
|
|
a2a9e39ec7 | ||
|
|
3f5c0cbbd8 | ||
|
|
253b81dfe8 | ||
|
|
e8974fee90 | ||
|
|
3849600cdd | ||
|
|
dda3b0af66 | ||
|
|
95f5222445 | ||
|
|
b1c4a6ff3f | ||
|
|
e39c4cbfe7 | ||
|
|
5fa8ada075 | ||
|
|
b5743bd6e9 | ||
|
|
ac1f463988 | ||
|
|
efd43c045a | ||
|
|
34c4172bfe | ||
|
|
3505c577b7 | ||
|
|
74d9cf0fb8 | ||
|
|
91caa3b23f | ||
|
|
1d9a30a4d2 | ||
|
|
928a098209 | ||
|
|
94649662ec | ||
|
|
a393c3b01f | ||
|
|
9c14ecd49b | ||
|
|
e75f92c54d | ||
|
|
22a73d8b7d | ||
|
|
f28432c20a | ||
|
|
122daf56a7 | ||
|
|
997f677fc5 | ||
|
|
0f5687c1eb | ||
|
|
dc2957bef6 | ||
|
|
744c80add4 | ||
|
|
f3c34ce9b6 | ||
|
|
f90394b6fb | ||
|
|
a88e734cac | ||
|
|
2d0b1225eb | ||
|
|
4d2c491b2b | ||
|
|
29488f1216 | ||
|
|
b905401ddc | ||
|
|
7582e6a1eb | ||
|
|
cc8641d33a | ||
|
|
99f0eac1a2 | ||
|
|
87e027e6c7 | ||
|
|
06e37c03fb | ||
|
|
5a8bea5106 | ||
|
|
baa4663714 | ||
|
|
40a81c63b8 | ||
|
|
552c37000d | ||
|
|
31308ae8e4 | ||
|
|
0d7bfcafab | ||
|
|
6483f9c7f8 | ||
|
|
8fc946854c | ||
|
|
7a9585170d | ||
|
|
000b184507 | ||
|
|
92ea783f35 | ||
|
|
26f6b1692a | ||
|
|
e0d2bfab81 | ||
|
|
89fa477ecf | ||
|
|
871bbff9ce | ||
|
|
67464baa7a | ||
|
|
0a521a9457 | ||
|
|
16870a7767 | ||
|
|
2064095b24 | ||
|
|
6a4903d458 | ||
|
|
e7d171eac3 | ||
|
|
d2c931b222 | ||
|
|
ccf03a6e2c | ||
|
|
f0e6f0762b | ||
|
|
34982c7509 | ||
|
|
85e1e1e290 | ||
|
|
ef7000f82e | ||
|
|
b14fec6973 | ||
|
|
36f5b8dd54 | ||
|
|
04950cd846 | ||
|
|
049436370f | ||
|
|
5588717cc4 | ||
|
|
791e25aabf | ||
|
|
e50f766540 | ||
|
|
463acdac66 | ||
|
|
c07de94ae3 | ||
|
|
2f8d598ab1 | ||
|
|
47b467dff2 | ||
|
|
0850f3ec01 | ||
|
|
d90b02d794 | ||
|
|
ec343fa4bc | ||
|
|
349adae76a | ||
|
|
1d59997abe | ||
|
|
ee02298743 | ||
|
|
745c0e3248 | ||
|
|
ecc1d3a67c | ||
|
|
fb6d03b012 | ||
|
|
9330807714 | ||
|
|
eddda26255 | ||
|
|
dd80e77a74 | ||
|
|
5d3228cbb3 | ||
|
|
8ffbb1eee1 | ||
|
|
606d3d6cd1 | ||
|
|
211621e750 | ||
|
|
62267e3f02 | ||
|
|
868fd3b043 | ||
|
|
03b38c0c8d | ||
|
|
59ae4174f0 | ||
|
|
80de0f058a | ||
|
|
7231a4ca3b | ||
|
|
3123299828 | ||
|
|
d9c6682945 | ||
|
|
0320ba0b9e | ||
|
|
af509dd90d | ||
|
|
f2f18a01e5 | ||
|
|
e936f852bf | ||
|
|
9ed3284766 | ||
|
|
16aa57cb4b | ||
|
|
d039601207 | ||
|
|
69e0e018d4 | ||
|
|
b596dd66fa | ||
|
|
569029da79 | ||
|
|
70624128b4 | ||
|
|
ed99040266 | ||
|
|
c0500f7d74 | ||
|
|
71eb016652 | ||
|
|
21883705f7 | ||
|
|
2bba3afabc | ||
|
|
180875046c | ||
|
|
efd62d5c81 | ||
|
|
b9638d0527 | ||
|
|
93225a0b60 | ||
|
|
f58e193de0 | ||
|
|
6c53645a84 | ||
|
|
8dc49502e3 | ||
|
|
85138023c1 | ||
|
|
210b864811 | ||
|
|
de0532a7ec | ||
|
|
658a01dd3f | ||
|
|
da14ef4113 | ||
|
|
1ffbc44821 | ||
|
|
e64aa947c4 | ||
|
|
9f61f3723c | ||
|
|
50a5499c50 | ||
|
|
7d7cf3f8af | ||
|
|
9f247462f6 | ||
|
|
db6bef2c70 | ||
|
|
6683daa8c7 | ||
|
|
5a1a07a54f | ||
|
|
a6c8f28b4e | ||
|
|
323cfc4f26 | ||
|
|
c60ef2ef3b | ||
|
|
68703b507d | ||
|
|
abed5710b0 | ||
|
|
4d6c508c34 | ||
|
|
df04313221 | ||
|
|
28b2c4aeaf | ||
|
|
2f7409dee4 | ||
|
|
72f1136161 | ||
|
|
e7b4bb5f00 | ||
|
|
a2078f04e8 | ||
|
|
43051c98f3 | ||
|
|
893d1c4148 | ||
|
|
f2c8d25c73 | ||
|
|
a7d5fce367 | ||
|
|
bc9a3dae9e | ||
|
|
cbf1c89d60 | ||
|
|
907d90158a | ||
|
|
f377bd69c3 | ||
|
|
8db7ed98ea | ||
|
|
ce3f3dd8d3 | ||
|
|
69f8b9fce0 | ||
|
|
bb833cb3e5 | ||
|
|
4e2c4fb4bd | ||
|
|
849e0ffb04 | ||
|
|
015a08b3e8 | ||
|
|
e9076296a9 | ||
|
|
8db365aa80 | ||
|
|
454f269528 | ||
|
|
f2143c7bee | ||
|
|
5c6f569aa5 | ||
|
|
9f36c3b7c7 | ||
|
|
1716627be0 | ||
|
|
12fd79632c | ||
|
|
1e36589fc9 | ||
|
|
e9a892dd41 | ||
|
|
6cea928f70 | ||
|
|
98685a4d93 | ||
|
|
6fe817326c | ||
|
|
68e605f7a4 | ||
|
|
491fc45d00 | ||
|
|
bbac59f218 | ||
|
|
7aae40a95f | ||
|
|
0cecb67ae7 | ||
|
|
ab227cb671 | ||
|
|
2c3b8ec969 | ||
|
|
0e63b7609a | ||
|
|
803f241db6 | ||
|
|
85ab3e2820 | ||
|
|
6759fbba86 | ||
|
|
452ff15c37 | ||
|
|
ec8b80fefc | ||
|
|
b0133ca5b4 | ||
|
|
fc59049c53 | ||
|
|
cb4eb96188 | ||
|
|
a0d2321424 | ||
|
|
ec4b93457e | ||
|
|
f0bc3cdc91 | ||
|
|
8eb2e02296 | ||
|
|
5118c7cd7f | ||
|
|
7bcfb5965d | ||
|
|
fddda74b98 | ||
|
|
38f19ad4b7 | ||
|
|
7de6d649be | ||
|
|
8f7e2b9357 | ||
|
|
44dcc74e78 | ||
|
|
740031d711 | ||
|
|
ecbe1aeb4e | ||
|
|
401e04572a | ||
|
|
8537533873 | ||
|
|
df32a451da | ||
|
|
285a7ec5e3 | ||
|
|
66b3af8b02 | ||
|
|
540b83b6b1 | ||
|
|
429a95440a | ||
|
|
333adf3ae1 | ||
|
|
caa22f1483 | ||
|
|
49c8929c4a | ||
|
|
d3972610f4 | ||
|
|
c85afdbe86 | ||
|
|
1465cf8909 | ||
|
|
adcd85f803 | ||
|
|
a21aaaa7dc | ||
|
|
418461fae2 | ||
|
|
dd2a864f51 | ||
|
|
3a7c0b423c | ||
|
|
d01291bb6e | ||
|
|
8678995ece | ||
|
|
5a17e28602 | ||
|
|
2531ec2c03 | ||
|
|
f623a9cb53 | ||
|
|
66c2adbaa4 | ||
|
|
92ac5f1b9f | ||
|
|
3ae2c2ca54 | ||
|
|
df2736e9cc | ||
|
|
ffbe5e4f50 | ||
|
|
0408a1adae | ||
|
|
b2ffad7180 | ||
|
|
90e6379916 | ||
|
|
be7b82ffe4 | ||
|
|
107bbcc8f4 | ||
|
|
4fa4c137a2 | ||
|
|
347534f43b | ||
|
|
f3a403d0d4 | ||
|
|
bc7e37f4df | ||
|
|
1b42c56aeb | ||
|
|
7d2872604d | ||
|
|
579cc2111a | ||
|
|
09220bdd58 | ||
|
|
d9d3a81168 | ||
|
|
b99ff1ffeb | ||
|
|
a9d034a33c | ||
|
|
fac7f6fd8a | ||
|
|
fa8846d054 | ||
|
|
8175eb6c0e | ||
|
|
ecacc1fb5f | ||
|
|
b1e7b0352e | ||
|
|
f134b5139a | ||
|
|
c6c8882d70 | ||
|
|
f60d27c8f6 | ||
|
|
9964ed243c | ||
|
|
1cfe36b8a1 | ||
|
|
72ffb28a4d | ||
|
|
ad3ca8d8f2 | ||
|
|
ed94b2e90b | ||
|
|
f52b203b13 | ||
|
|
4b983d3b39 | ||
|
|
1c5962a62c | ||
|
|
a75a5f00d6 | ||
|
|
a2201c5ae7 | ||
|
|
0f7dc30816 | ||
|
|
55ef4bc22e | ||
|
|
e5e6ca9d62 | ||
|
|
55925534ec | ||
|
|
a7c6406a8f | ||
|
|
1dc1dcab49 | ||
|
|
d1aacc7cdf | ||
|
|
0dac6431d2 | ||
|
|
bc9f364917 | ||
|
|
fb52866502 | ||
|
|
2549cb015c | ||
|
|
7add953cfe | ||
|
|
4fddc7cbee | ||
|
|
b5c0324f6a | ||
|
|
e585263735 | ||
|
|
246d79484d | ||
|
|
118a4cdb15 | ||
|
|
16155a7d48 | ||
|
|
443bd6a8ef | ||
|
|
c5fd243bce | ||
|
|
97fb020199 | ||
|
|
8f0558c530 | ||
|
|
ccd6d11b80 | ||
|
|
ecc1626f21 | ||
|
|
04b0ebb9c1 | ||
|
|
c09e705e04 | ||
|
|
68c9df4110 | ||
|
|
7a442ce178 | ||
|
|
ab5f1cb24b | ||
|
|
67339c0aab | ||
|
|
9315b88d67 | ||
|
|
4f96480e17 | ||
|
|
8fe5a021a3 | ||
|
|
3a72f5c241 | ||
|
|
98ab03e7e5 | ||
|
|
a2481b51f8 | ||
|
|
50964694fe | ||
|
|
9148e3b4c1 | ||
|
|
2229fb0a55 | ||
|
|
d80199b403 | ||
|
|
1a0a9d1a6f | ||
|
|
7633aaa177 | ||
|
|
fe28b4f768 | ||
|
|
6f5e28aca1 | ||
|
|
c63de8e0a8 | ||
|
|
8e3e3658c5 | ||
|
|
ebc51f0813 | ||
|
|
f7bfb9b472 | ||
|
|
7fe650bc36 | ||
|
|
1e22a7ec76 | ||
|
|
043fde10e5 | ||
|
|
4dcb55b4b5 | ||
|
|
6e86513c3a | ||
|
|
76df5ec473 | ||
|
|
9d02d6ab31 | ||
|
|
1c9496b191 | ||
|
|
b089627fe8 | ||
|
|
6c19542a36 | ||
|
|
adce6fc49a | ||
|
|
7eacf5061e | ||
|
|
5b60edebb8 | ||
|
|
bd1d9eea88 | ||
|
|
59f2891c07 | ||
|
|
02332d6aa7 | ||
|
|
c8006a68d5 | ||
|
|
c8bd8e9a0f | ||
|
|
b6ae33fc2e | ||
|
|
5cdf6e6e08 | ||
|
|
2be5ac062d | ||
|
|
453d1a42b0 | ||
|
|
e98b7ce059 | ||
|
|
f2851186bb | ||
|
|
d40b6daac9 | ||
|
|
2e52e9dff2 | ||
|
|
056f3ea7aa | ||
|
|
b670ed41d6 | ||
|
|
f48920fb62 | ||
|
|
e7058ee0c3 | ||
|
|
82a7a9f030 | ||
|
|
5fc92453b6 | ||
|
|
a8d5a91270 | ||
|
|
ec0853a113 | ||
|
|
4204f82a1a | ||
|
|
5e2a37a5a0 | ||
|
|
6b2595360b | ||
|
|
32addb490d | ||
|
|
4f54397ad8 | ||
|
|
f3455aa584 | ||
|
|
ca37022cf0 | ||
|
|
9c306e4183 | ||
|
|
d7e6943136 | ||
|
|
20563e146d | ||
|
|
e5401e4491 | ||
|
|
b345a7f5f8 | ||
|
|
ac161a1e17 | ||
|
|
42be28cece | ||
|
|
d799afdc04 | ||
|
|
fe4cab6eeb | ||
|
|
ffbeca8c2e | ||
|
|
0b215ddf60 | ||
|
|
297ae75019 | ||
|
|
6caae4568d | ||
|
|
71365ab05c | ||
|
|
c6083c20e5 | ||
|
|
b15796424e | ||
|
|
fc58b54ba3 | ||
|
|
4138ab60c8 | ||
|
|
717114d206 | ||
|
|
8fcf72ddc8 | ||
|
|
929f1f0d78 | ||
|
|
57bd8dc7e1 | ||
|
|
c8a68bace6 | ||
|
|
c03ab32ab5 | ||
|
|
2e7b00b7d5 | ||
|
|
6f9021ff80 | ||
|
|
9f7bdd313a | ||
|
|
f6337de7b6 | ||
|
|
1807fe2b97 | ||
|
|
4cea49cf1c | ||
|
|
2fecfdfb50 | ||
|
|
9e461a5bdd | ||
|
|
0dc0bf82b2 | ||
|
|
ff12384283 | ||
|
|
fb095c0504 | ||
|
|
646224fc01 | ||
|
|
062847f5cd | ||
|
|
2928b8143b | ||
|
|
4b1e242299 | ||
|
|
1d67e1d25c | ||
|
|
eee15b163e | ||
|
|
b6aabd98fc | ||
|
|
b56f92d23b | ||
|
|
3ca95fc7a6 | ||
|
|
165244b534 | ||
|
|
2cd5cbcaca | ||
|
|
44aa1a1519 | ||
|
|
4350001c77 | ||
|
|
3dd5cb3c26 | ||
|
|
fc36794c8e | ||
|
|
513053fd42 | ||
|
|
6858434567 | ||
|
|
463af2bb25 | ||
|
|
c3552d0201 | ||
|
|
38e8cbedc6 | ||
|
|
c8a7806d4f | ||
|
|
a1e4e3ec94 | ||
|
|
875eea0ac0 | ||
|
|
3020470ba9 | ||
|
|
69530c282e | ||
|
|
d9b194669c | ||
|
|
092df72269 | ||
|
|
e786504157 | ||
|
|
c39e794a3a | ||
|
|
459a0ea703 | ||
|
|
3477036199 | ||
|
|
b427ee34cb | ||
|
|
92fbd1ca18 | ||
|
|
d9f838f739 | ||
|
|
545b7e4f62 | ||
|
|
68141df565 | ||
|
|
597abb5082 | ||
|
|
da33a7de28 | ||
|
|
9812da470c | ||
|
|
659ca734bb | ||
|
|
63c98ed888 | ||
|
|
ddc444d7b2 | ||
|
|
edb7cf2a91 | ||
|
|
355534b206 | ||
|
|
ddfbf23583 | ||
|
|
de1b872a4e | ||
|
|
28aaf9add2 | ||
|
|
46533a9546 | ||
|
|
b2e851f920 | ||
|
|
647d4a829d | ||
|
|
370ae84e73 | ||
|
|
a4ef2ba11d | ||
|
|
d487d2b19e | ||
|
|
646d12c63f | ||
|
|
3eca12f7b7 | ||
|
|
77dfe98c4e | ||
|
|
ae1dc3db15 | ||
|
|
b0419018b0 | ||
|
|
8166ad7ece | ||
|
|
4e22cb6970 | ||
|
|
e0a15fc51d | ||
|
|
ebdad848b8 | ||
|
|
79a295755e | ||
|
|
367e60a438 | ||
|
|
51a345480a | ||
|
|
54e427219c | ||
|
|
c8b6411661 | ||
|
|
4b2e9eb231 | ||
|
|
f7ea37f1b9 | ||
|
|
6ee252719c | ||
|
|
3927ae9832 | ||
|
|
9ce33168b1 | ||
|
|
14ea0be212 | ||
|
|
8174b8b497 | ||
|
|
441ef80eda | ||
|
|
d971ab32c3 | ||
|
|
f76aa54270 | ||
|
|
9f4b8c2379 | ||
|
|
710733eaa5 | ||
|
|
6358686351 | ||
|
|
d1de009d84 | ||
|
|
9b311f9a7b | ||
|
|
6b53043eea | ||
|
|
4a2921184f | ||
|
|
29440e8636 | ||
|
|
756eea5eec | ||
|
|
d46ed5c358 | ||
|
|
ab464bccd1 | ||
|
|
3d9b153464 | ||
|
|
83e7d32161 | ||
|
|
b6b71da22d | ||
|
|
e4e8777d6b | ||
|
|
fdfb7acee2 | ||
|
|
50a610e81c | ||
|
|
fe4ebb456f | ||
|
|
803014e138 | ||
|
|
1d328ffab8 | ||
|
|
e80aebd528 | ||
|
|
09ef78ff9e | ||
|
|
63d86bcfda | ||
|
|
deaa5d9446 | ||
|
|
5f00e2cd20 | ||
|
|
ca45a0c6cc | ||
|
|
309cfe4fd1 | ||
|
|
87d8424968 | ||
|
|
39d8c22579 | ||
|
|
1833c872a0 | ||
|
|
7861fdb862 | ||
|
|
b4ad1bd707 | ||
|
|
aba715ae04 | ||
|
|
f47678e4ab | ||
|
|
bef3a59d4c | ||
|
|
969313d8cc | ||
|
|
3735e1a4b2 | ||
|
|
83dafe98b2 | ||
|
|
14ecb7850f | ||
|
|
9da2b45a82 | ||
|
|
b0c44a6c6e | ||
|
|
3cc7c78362 | ||
|
|
bdd62705f2 | ||
|
|
b640b025c8 | ||
|
|
8ab0a4d7a9 | ||
|
|
99ff6e5eb2 | ||
|
|
3c4879eb9a | ||
|
|
d9929c525b | ||
|
|
86e3d89e57 | ||
|
|
3ae3654210 | ||
|
|
790bc3042d | ||
|
|
168e2b0ff2 | ||
|
|
37306315b2 | ||
|
|
26c780da72 | ||
|
|
2697216f3a | ||
|
|
aa6165d767 | ||
|
|
fc7983c405 | ||
|
|
136ad92f3d | ||
|
|
e2c297b29f | ||
|
|
8bb4a8ec15 | ||
|
|
d41b0a77b2 | ||
|
|
827a25e39d | ||
|
|
b6db0aad85 | ||
|
|
33a47ac00d | ||
|
|
1437ee2bae | ||
|
|
cd9045f4e8 | ||
|
|
f0ef7211c5 | ||
|
|
ec7f8bf1cb | ||
|
|
5e6c038292 | ||
|
|
a16656700d | ||
|
|
f1c6258165 | ||
|
|
29241c7694 | ||
|
|
95008ab775 | ||
|
|
630d73eb0a | ||
|
|
cac629a070 | ||
|
|
48d3ec1660 | ||
|
|
99706867d4 | ||
|
|
b9c79ae213 | ||
|
|
70202307c0 | ||
|
|
615777b6da | ||
|
|
a3cdb4dcfb | ||
|
|
698094c02b | ||
|
|
fe1d1630dc | ||
|
|
befe056b42 | ||
|
|
a08096e862 | ||
|
|
6804a4e8ef | ||
|
|
2cb9d9610e | ||
|
|
f0d12afc79 | ||
|
|
b298e3e210 | ||
|
|
1d45ee2056 | ||
|
|
7ecbd27b2f | ||
|
|
3715f48dfe | ||
|
|
ea4f164aae | ||
|
|
b00baea4a1 | ||
|
|
64b449dd2a | ||
|
|
731dd43ab4 | ||
|
|
ae4e755124 | ||
|
|
059e448264 | ||
|
|
45f8e241e3 | ||
|
|
f1f86e9fa2 | ||
|
|
cf5e518aff | ||
|
|
38dff2ce4b | ||
|
|
36a04a49a7 | ||
|
|
179908ef64 | ||
|
|
1c42f2e0d3 | ||
|
|
9129869b7b | ||
|
|
bf2763ee4e | ||
|
|
9015c7d020 | ||
|
|
7c923b06e9 | ||
|
|
695e7abd65 | ||
|
|
f3e3c0e552 | ||
|
|
ff511fc3b1 | ||
|
|
57dabb4fcb | ||
|
|
6ec4c76bb7 | ||
|
|
27a4da4686 | ||
|
|
0e04930c24 | ||
|
|
1e49d39e6b | ||
|
|
2a6a483ba0 | ||
|
|
161f43b05a | ||
|
|
1e09fae226 | ||
|
|
6b67fc8340 | ||
|
|
932d8f3242 | ||
|
|
948cea9d3f | ||
|
|
109504ddc4 | ||
|
|
f5cc909878 | ||
|
|
f60907fd0a | ||
|
|
189c383d48 | ||
|
|
14b6adc782 | ||
|
|
0e5cf24bb3 | ||
|
|
18c2b3a604 | ||
|
|
aeb1b5f21c | ||
|
|
3b50ea9003 | ||
|
|
6144fe8e3e | ||
|
|
8242ae771a | ||
|
|
52da428ead | ||
|
|
4a362b1ee2 | ||
|
|
9d5ff382c1 | ||
|
|
c448d362ba | ||
|
|
f092fd7939 | ||
|
|
054a64704a | ||
|
|
a7cdf34685 | ||
|
|
fe12031643 | ||
|
|
e2890ec21a | ||
|
|
b267c3b746 | ||
|
|
49ad80cabb | ||
|
|
2d8b7bbf47 | ||
|
|
1aa82b740b | ||
|
|
540f1f640a | ||
|
|
6b68aa3dcb | ||
|
|
bedd4eef34 | ||
|
|
6f9ae46ab8 | ||
|
|
f3c71ee7ef | ||
|
|
3630a38b8f | ||
|
|
fe12d75a7a | ||
|
|
a1269f9d94 | ||
|
|
072306e2f0 | ||
|
|
5091305900 | ||
|
|
ca985b5697 | ||
|
|
e2b3310cb6 | ||
|
|
ffcb07d286 | ||
|
|
6d08d079f0 | ||
|
|
1788cb3419 | ||
|
|
0c7e3a5aaf | ||
|
|
ad5fef1fce | ||
|
|
4e01039ec9 | ||
|
|
e174ee8284 | ||
|
|
b6dbc8cf63 | ||
|
|
44444bd9c0 | ||
|
|
b28ffeff6e | ||
|
|
b57ca9ed91 | ||
|
|
449d7efefd | ||
|
|
c2fe3112f6 | ||
|
|
609c288c72 | ||
|
|
7c754d9268 | ||
|
|
12198cdafd | ||
|
|
3da24841be | ||
|
|
4c82d94e47 | ||
|
|
897278fce0 | ||
|
|
d0c78cb9cf | ||
|
|
1c84fa3582 | ||
|
|
731e9ea8a9 | ||
|
|
d748c0e679 | ||
|
|
64a14d6a9b | ||
|
|
bea7a516fb | ||
|
|
5e94e3bf69 | ||
|
|
73379adb82 | ||
|
|
3e4831d05d | ||
|
|
cf105cf085 | ||
|
|
22260fb95d | ||
|
|
192678a793 | ||
|
|
fe81f4fc03 | ||
|
|
d1eae8a7fe | ||
|
|
74b3de5c3b | ||
|
|
09fd47bcef | ||
|
|
6ff4206fe4 | ||
|
|
d35e1bbd88 | ||
|
|
91e177bfd9 | ||
|
|
50c4a23cac | ||
|
|
b8633a3b01 | ||
|
|
74faacc945 | ||
|
|
2d1fcda0d7 | ||
|
|
20de63f383 | ||
|
|
7b4a7f7bdc | ||
|
|
1dce4ceddd | ||
|
|
b4ae1216b3 | ||
|
|
873a9176c7 | ||
|
|
97c80b8c84 | ||
|
|
f7be937495 | ||
|
|
eba63ce088 | ||
|
|
16436dc54d | ||
|
|
9d9f5afb8e | ||
|
|
b2066f470b | ||
|
|
95dc5f8473 | ||
|
|
8ad3454b18 | ||
|
|
02a6cd7914 | ||
|
|
c3732ffc5d | ||
|
|
fcbf2d1245 | ||
|
|
a44852b8fe | ||
|
|
7f530b42c8 | ||
|
|
e91ae90285 | ||
|
|
1193f0f9db | ||
|
|
fae39068e8 | ||
|
|
a8fc1db8c1 | ||
|
|
e9e432633b | ||
|
|
26625ab7f5 | ||
|
|
038a30dde3 | ||
|
|
398aa66a77 | ||
|
|
c5b951e990 | ||
|
|
2703662478 | ||
|
|
18dbebd143 | ||
|
|
3916f38bd4 | ||
|
|
1bdca97b29 | ||
|
|
e2a366414c | ||
|
|
f7cbc30ff9 | ||
|
|
b4be323f02 | ||
|
|
2720870af6 | ||
|
|
5a843be073 | ||
|
|
1dce7af76f | ||
|
|
9620b88f07 | ||
|
|
29aa2aecb4 | ||
|
|
1267284a6f | ||
|
|
696e17c0ba | ||
|
|
07198ddeda | ||
|
|
3f961d6062 | ||
|
|
74ee57a572 | ||
|
|
d44be8e3a0 | ||
|
|
a0b0fb42fd | ||
|
|
ef9b3891fc | ||
|
|
9d7b3f41e0 | ||
|
|
86ac930e55 | ||
|
|
f521ab4f1a | ||
|
|
b6c292d65d | ||
|
|
762ea5875b | ||
|
|
3a96c0f73d | ||
|
|
6aa1d81c2f | ||
|
|
7690c18be2 | ||
|
|
9e5e0e9d44 | ||
|
|
f8d7c817f6 | ||
|
|
705c4c6b85 | ||
|
|
85148f4cf0 | ||
|
|
3a5617e9f7 | ||
|
|
c201c739e4 | ||
|
|
7d7546ef37 | ||
|
|
07ef2f8f38 | ||
|
|
ac061d0424 | ||
|
|
a82afd549a | ||
|
|
6a55242693 | ||
|
|
18f3386a98 | ||
|
|
4db94beee6 | ||
|
|
ac0b8d6ebe |
11
.hgtags
@@ -7,3 +7,14 @@ bfe4572fd301a6fcd120373cdb2eff5d2da0c72c jdk7-b29
|
||||
bee4731164a06ddece1297ae58db24aca6a1c626 jdk7-b30
|
||||
cd8b8f500face60d1566d850857a7fccadbd383a jdk7-b31
|
||||
a9f1805e3ba9ca520cad199d522c84af5433e85a jdk7-b32
|
||||
6838c1a3296aaa3572364d2ce7d70826cee96286 jdk7-b33
|
||||
90cf935adb353bb0af4b46fb0677e841fd24c000 jdk7-b34
|
||||
6d909d5803e3a22850e6c4e5a75b888742ee7e20 jdk7-b35
|
||||
d718a441936196b93d8bc9f084933af9a4c2a350 jdk7-b36
|
||||
c2036bf76829c03b99108fffab52e20910a9be4f jdk7-b37
|
||||
a2879b2837f5a4c87e9542efe69ef138194af8ff jdk7-b38
|
||||
126f365cec6c3c2c72de934fa1c64b5f082b55b5 jdk7-b39
|
||||
3c53424bbe3bb77e01b468b4b0140deec33e11fc jdk7-b40
|
||||
3cb2a607c347934f8e7e86f840a094c28b08d9ea jdk7-b41
|
||||
caf58ffa084568990cbb3441f9ae188e36b31770 jdk7-b42
|
||||
41bd0a702bc8ec6feebd725a63e7c3227f82ab11 jdk7-b43
|
||||
|
||||
@@ -7,3 +7,14 @@ cbc8ad9dd0e085a607427ea35411990982f19a36 jdk7-b25
|
||||
2dab2f712e1832c92acfa63ec0337048b9422c20 jdk7-b30
|
||||
3300a35a0bd56d695b92fe0b34f03ebbfc939064 jdk7-b31
|
||||
64da805be725721bf2004e7409a0d7a16fc8ddbc jdk7-b32
|
||||
bb1ef4ee3d2c8cbf43a37d372325a7952be590b9 jdk7-b33
|
||||
46a989ab932992b2084b946eeb322fa99b9fee6c jdk7-b34
|
||||
143c1abedb7d3095eff0f9ee5fec9bf48e3490fc jdk7-b35
|
||||
4b4f5fea8d7d0743f0c30d91fcd9bf9d96e5d2ad jdk7-b36
|
||||
744554f5a3290e11c71cd2ddb1aff49e431f9ed0 jdk7-b37
|
||||
cc47a76899ed33a2c513cb688348244c9b5a1288 jdk7-b38
|
||||
ab523b49de1fc73fefe6855ce1e0349bdbd7af29 jdk7-b39
|
||||
44be42de6693063fb191989bf0e188de2fa51e7c jdk7-b40
|
||||
541bdc5ad32fc33255944d0a044ad992f3d915e8 jdk7-b41
|
||||
94052b87287303527125026fe4b2698cf867ea83 jdk7-b42
|
||||
848e684279d2ba42577d9621d5b2e5af3823d12d jdk7-b43
|
||||
|
||||
4
Makefile
@@ -74,7 +74,7 @@ include ./make/deploy-rules.gmk
|
||||
all::
|
||||
@$(START_ECHO)
|
||||
|
||||
all:: openjdk_check sanity all_product_build
|
||||
all:: openjdk_check sanity
|
||||
|
||||
ifeq ($(SKIP_FASTDEBUG_BUILD), false)
|
||||
all:: fastdebug_build
|
||||
@@ -88,6 +88,8 @@ ifneq ($(SKIP_OPENJDK_BUILD), true)
|
||||
all:: openjdk_build
|
||||
endif
|
||||
|
||||
all:: all_product_build
|
||||
|
||||
all::
|
||||
@$(FINISH_ECHO)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</head>
|
||||
<body style="background-color:lightcyan">
|
||||
<!-- ====================================================== -->
|
||||
+ <table width="100%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img alt="OpenJDK"
|
||||
@@ -39,6 +39,11 @@
|
||||
<li><a href="#introduction">Introduction</a></li>
|
||||
<li><a href="#MBE">Minimum Build Environments</a></li>
|
||||
<li><a href="#SDBE">Specific Developer Build Environments</a></li>
|
||||
<ul>
|
||||
<li><a href="#fedora">Fedora Linux</a> </li>
|
||||
<li><a href="#centos">CentOS Linux</a> </li>
|
||||
<li><a href="#ubuntu">Ubuntu Linux</a> </li>
|
||||
</ul>
|
||||
<li><a href="#directories">Source Directory Structure</a> </li>
|
||||
<li><a href="#building">Build Information</a>
|
||||
<ul>
|
||||
@@ -93,7 +98,8 @@
|
||||
<h2><a name="MBE">Minimum Build Environments</a></h2>
|
||||
<blockquote>
|
||||
This file often describes specific requirements for what we call the
|
||||
"minimum build environments" (MBE) for the JDK.
|
||||
"minimum build environments" (MBE) for this
|
||||
specific release of the JDK,
|
||||
Building with the MBE will generate the most compatible
|
||||
bits that install on, and run correctly on, the most variations
|
||||
of the same base OS and hardware architecture.
|
||||
@@ -111,22 +117,22 @@
|
||||
<tr>
|
||||
<th>Base OS and Architecture</th>
|
||||
<th>OS</th>
|
||||
<th>Compiler</th>
|
||||
<th>C/C++ Compiler</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Linux X86 (32bit)</td>
|
||||
<td>Red Hat Enterprise Linux 4 </td>
|
||||
<td>Linux X86 (32-bit)</td>
|
||||
<td>Fedora 9</td>
|
||||
<td>gcc 4 </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Linux X64 (64bit)</td>
|
||||
<td>Red Hat Enterprise Linux 4 </td>
|
||||
<td>Linux X64 (64-bit)</td>
|
||||
<td>Fedora 9</td>
|
||||
<td>gcc 4 </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Solaris SPARC (32bit)</td>
|
||||
<td>Solaris SPARC (32-bit)</td>
|
||||
<td>Solaris 10 + patches
|
||||
<br>
|
||||
See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank">
|
||||
@@ -135,7 +141,7 @@
|
||||
<td>Sun Studio 12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Solaris SPARCV9 (64bit)</td>
|
||||
<td>Solaris SPARCV9 (64-bit)</td>
|
||||
<td>Solaris 10 + patches
|
||||
<br>
|
||||
See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank">
|
||||
@@ -144,7 +150,7 @@
|
||||
<td>Sun Studio 12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Solaris X86 (32bit)</td>
|
||||
<td>Solaris X86 (32-bit)</td>
|
||||
<td>Solaris 10 + patches
|
||||
<br>
|
||||
See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank">
|
||||
@@ -153,7 +159,7 @@
|
||||
<td>Sun Studio 12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Solaris X64 (64bit)</td>
|
||||
<td>Solaris X64 (64-bit)</td>
|
||||
<td>Solaris 10 + patches
|
||||
<br>
|
||||
See <a href="http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/JavaSE" target="_blank">
|
||||
@@ -162,17 +168,28 @@
|
||||
<td>Sun Studio 12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Windows X86 (32bit)</td>
|
||||
<td>Windows X86 (32-bit)</td>
|
||||
<td>Windows XP</td>
|
||||
<td>Microsoft Visual Studio .NET 2003 Professional</td>
|
||||
<td>Microsoft Visual Studio C++ 2008 Standard Edition</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Windows X64 (64bit)</td>
|
||||
<td>Windows X64 (64-bit)</td>
|
||||
<td>Windows Server 2003 - Enterprise x64 Edition</td>
|
||||
<td>Microsoft Platform SDK - April 2005</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>
|
||||
These same sources do indeed build on many more systems than the
|
||||
above older generation systems, again the above is just a minimum.
|
||||
<p>
|
||||
Compilation problems with newer or different C/C++ compilers is a
|
||||
common problem.
|
||||
Similarly, compilation problems related to changes to the
|
||||
<tt>/usr/include</tt> or system header files is also a
|
||||
common problem with newer or unreleased OS versions.
|
||||
Please report these types of problems as bugs so that they
|
||||
can be dealt with accordingly.
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
<hr>
|
||||
@@ -182,14 +199,64 @@
|
||||
we will try to provide what information we have available to us.
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
<h3><a name="fedora">Fedora</a></h3>
|
||||
<h3><a name="fedora">Fedora 9</a></h3>
|
||||
<blockquote>
|
||||
TBD
|
||||
After installing
|
||||
<a href="http://www.fedoraproject.org/">Fedora 9</a>
|
||||
you need to make sure you have
|
||||
the "Software Development" bundle installed, plus the
|
||||
following packages:
|
||||
<blockquote>
|
||||
<ul>
|
||||
<li>cups devel: Cups Development Package</li>
|
||||
<li>freetype 2.3+ devel: Freetype 2.3 Development Package</li>
|
||||
<li>hg: Mercurial, if you need to clone or manage source repositories</li>
|
||||
<li>ksh: May be needed when using <tt>webrev</tt></li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<p>
|
||||
Always a good idea to do a complete Software Update/Refresh
|
||||
after you get all the packages installed.
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
<h3><a name="debian">Debian</a></h3>
|
||||
<h3><a name="centos">CentOS 5.2</a></h3>
|
||||
<blockquote>
|
||||
TBD
|
||||
After installing
|
||||
<a href="http://www.centos.org/">CentOS 5.2</a>
|
||||
you need to make sure you have
|
||||
the following Development bundles installed:
|
||||
<blockquote>
|
||||
<ul>
|
||||
<li>Development Libraries</li>
|
||||
<li>Development Tools</li>
|
||||
<li>Java Development</li>
|
||||
<li>X Software Development</li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<p>
|
||||
Plus the following packages:
|
||||
<blockquote>
|
||||
<ul>
|
||||
<li>cups devel: Cups Development Package</li>
|
||||
<li>alsa devel: Alsa Development Package</li>
|
||||
<li>ant: Ant Package</li>
|
||||
<li>Xi devel: libXi.so Development Package</li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<p>
|
||||
The freetype 2.3 packages don't seem to be available,
|
||||
but the freetype 2.3 sources can be downloaded, built,
|
||||
and installed easily enough from
|
||||
<a href="http://downloads.sourceforge.net/freetype">
|
||||
the freetype site</a>.
|
||||
Build and install with something like:
|
||||
<blockquote>
|
||||
<tt>./configure && make && sudo -u root make install</tt>
|
||||
</blockquote>
|
||||
<p>
|
||||
Mercurial packages could not be found easily, but a Google
|
||||
search should find ones, and they usually include Python if
|
||||
it's needed.
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
<h3><a name="ubuntu">Ubuntu</a></h3>
|
||||
@@ -433,7 +500,7 @@
|
||||
not work due to a lack of support for MS-DOS drive letter paths
|
||||
like <tt>C:/</tt> or <tt>C:\</tt>.
|
||||
Use a 3.80 version, or find a newer
|
||||
version that has this problem fixed, like 3.82.
|
||||
version that has this problem fixed.
|
||||
The older 3.80 version of make.exe can be downloaded with this
|
||||
<a href="http://cygwin.paracoda.com/release/make/make-3.80-1.tar.bz2" target="_blank">
|
||||
link</a>.
|
||||
@@ -520,8 +587,8 @@
|
||||
</li>
|
||||
<li>
|
||||
Install
|
||||
<a href="#ant">Ant</a>, set
|
||||
<tt><a href="#ANT_HOME">ANT_HOME</a></tt>.
|
||||
<a href="#ant">Ant</a>,
|
||||
make sure it is in your PATH.
|
||||
</li>
|
||||
</ol>
|
||||
</blockquote>
|
||||
@@ -537,7 +604,7 @@
|
||||
Approximately 1.4 GB of free disk
|
||||
space is needed for a 32-bit build.
|
||||
<p>
|
||||
If you are building the 64bit version, you should
|
||||
If you are building the 64-bit version, you should
|
||||
run the command "isainfo -v" to verify that you have a
|
||||
64-bit installation, it should say <tt>sparcv9</tt> or
|
||||
<tt>amd64</tt>.
|
||||
@@ -585,8 +652,8 @@
|
||||
</li>
|
||||
<li>
|
||||
Install
|
||||
<a href="#ant">Ant</a>, set
|
||||
<tt><a href="#ANT_HOME">ANT_HOME</a></tt>.
|
||||
<a href="#ant">Ant</a>,
|
||||
make sure it is in your PATH.
|
||||
</li>
|
||||
</ol>
|
||||
</blockquote>
|
||||
@@ -595,11 +662,11 @@
|
||||
<h3><a name="windows">Basic Windows System Setup</a></h3>
|
||||
<blockquote>
|
||||
<strong>i586 only:</strong>
|
||||
The minimum recommended hardware for building the 32bit or X86
|
||||
The minimum recommended hardware for building the 32-bit or X86
|
||||
Windows version is an Pentium class processor or better, at least
|
||||
512 MB of RAM, and approximately 600 MB of free disk space.
|
||||
<strong>
|
||||
NOTE: The Windows 2000 build machines need to use the
|
||||
NOTE: The Windows build machines need to use the
|
||||
file system NTFS.
|
||||
Build machines formatted to FAT32 will not work
|
||||
because FAT32 doesn't support case-sensitivity in file names.
|
||||
@@ -664,7 +731,10 @@
|
||||
</li>
|
||||
<li>
|
||||
Install the
|
||||
<a href="#msvc">Microsoft Visual Studio .NET 2003 Professional</a> or the
|
||||
<a href="#msvc">Microsoft Visual Studio Compilers</a> (32-bit).
|
||||
</li>
|
||||
<li>
|
||||
Install the
|
||||
<a href="#mssdk">Microsoft Platform SDK</a>.
|
||||
</li>
|
||||
<li>
|
||||
@@ -677,7 +747,8 @@
|
||||
</li>
|
||||
<li>
|
||||
Install
|
||||
<a href="#ant">Ant</a>, set
|
||||
<a href="#ant">Ant</a>,
|
||||
make sure it is in your PATH and set
|
||||
<tt><a href="#ANT_HOME">ANT_HOME</a></tt>.
|
||||
</li>
|
||||
</ol>
|
||||
@@ -732,7 +803,9 @@
|
||||
you must first download and install the appropriate
|
||||
binary plug bundles for the OpenJDK, go to the
|
||||
<a href="http://openjdk.java.net" target="_blank">OpenJDK</a> site and select
|
||||
the "<b>Bundles(7)</b>" link and download the binaryplugs for
|
||||
the
|
||||
"<b>Bundles(7)</b>"
|
||||
link and download the binaryplugs for
|
||||
your particular platform.
|
||||
The file downloaded is a jar file that must be extracted by running
|
||||
the jar file with:
|
||||
@@ -766,16 +839,14 @@
|
||||
<blockquote>
|
||||
All OpenJDK builds require access to least Ant 1.6.5.
|
||||
The Ant tool is available from the
|
||||
<a href="http://ant.apache.org/antlibs/bindownload.cgi" target="_blank">
|
||||
<a href="http://ant.apache.org" target="_blank">
|
||||
Ant download site</a>.
|
||||
You should always set
|
||||
You should always make sure <tt>ant</tt> is in your PATH, and
|
||||
on Windows you may also need to set
|
||||
<tt><a href="#ANT_HOME">ANT_HOME</a></tt>
|
||||
to point to the location of
|
||||
the Ant installation, this is the directory pathname
|
||||
that contains a <tt>bin and lib</tt>.
|
||||
It's also a good idea to also place its <tt>bin</tt> directory
|
||||
in the <tt>PATH</tt> environment variable, although it's
|
||||
not absolutely required.
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
<h4><a name="cacerts">Certificate Authority File (cacert)</a></h4>
|
||||
@@ -807,25 +878,9 @@
|
||||
<blockquote>
|
||||
<strong><a name="gcc">Linux gcc/binutils</a></strong>
|
||||
<blockquote>
|
||||
The GNU gcc compiler version should be 3.2.2 or newer.
|
||||
The binutils package should be 2.11.93.0.2-11 or newer.
|
||||
The GNU gcc compiler version should be 4 or newer.
|
||||
The compiler used should be the default compiler installed
|
||||
in <tt>/usr/bin</tt>.
|
||||
<p>
|
||||
Older Linux systems may require a gcc and bunutils update.
|
||||
The Redhat Enterprise Advanced Server 2.1 update 2 system
|
||||
is one of these systems.
|
||||
RedHat Linux users can obtain this binutils package from
|
||||
<a href="http://www.redhat.com"
|
||||
target="_blank">Redhat web site</a>.
|
||||
You will need to remove the default compiler and binutils
|
||||
packages and install the required packages
|
||||
into the default location on the system.
|
||||
However if you have a new video card driver, like
|
||||
Geforce 4 it is best to use
|
||||
the same compiler as the kernel was built with to
|
||||
build the new video card driver module.
|
||||
So you should build the modules before making this change.
|
||||
</blockquote>
|
||||
<strong><a name="studio">Solaris: Sun Studio</a></strong>
|
||||
<blockquote>
|
||||
@@ -848,19 +903,20 @@
|
||||
are also an option, although these compilers have not
|
||||
been extensively used yet.
|
||||
</blockquote>
|
||||
<strong><a name="msvc">Windows i586: Microsoft Visual Studio .NET 2003 Professional</a></strong>
|
||||
<strong><a name="msvc">Windows i586: Microsoft Visual Studio Compilers</a></strong>
|
||||
<blockquote>
|
||||
The 32-bit OpenJDK Windows build
|
||||
requires Microsoft Visual Studio .NET 2003 (VS2003) Professional
|
||||
requires
|
||||
Microsoft Visual Studio C++ 2008 (VS2008) Standard
|
||||
Edition compiler.
|
||||
The compiler and other tools are expected to reside
|
||||
in the location defined by the variable <tt>VS71COMNTOOLS</tt> which
|
||||
is set by the Microsoft Visual Studio .NET installer.
|
||||
in the location defined by the variable
|
||||
<tt>VS90COMNTOOLS</tt> which
|
||||
is set by the Microsoft Visual Studio installer.
|
||||
<p>
|
||||
Once the compiler is installed,
|
||||
it is recommended that you run <tt>VCVARS32.BAT</tt>
|
||||
to set the compiler environment variables
|
||||
<tt>MSVCDIR</tt>,
|
||||
<tt>INCLUDE</tt>,
|
||||
<tt>LIB</tt>, and
|
||||
<tt>PATH</tt>
|
||||
@@ -868,11 +924,12 @@
|
||||
OpenJDK.
|
||||
The above environment variables <b>MUST</b> be set.
|
||||
<p>
|
||||
The Microsoft Visual Studio .NET 2005 (VS2005) compiler
|
||||
will not work at this time due to the new runtime dll
|
||||
and the manifest requirements.
|
||||
<b>WARNING:</b> Make sure you check out the
|
||||
<a href="#cygwin">CYGWIN link.exe WARNING</a>.
|
||||
The path <tt>/usr/bin</tt> must be after the path to the
|
||||
Visual Studio product.
|
||||
</blockquote>
|
||||
<strong><a name="mssdk">Windows X64: Microsoft Platform SDK April 2005</a></strong>
|
||||
<strong><a name="mssdk">Windows: Microsoft Platform SDK</a></strong>
|
||||
<blockquote>
|
||||
On <b>X64</b>, the Microsoft Platform Software
|
||||
Development Kit (SDK), April 2005 Edition compiler,
|
||||
@@ -893,10 +950,9 @@
|
||||
OpenJDK.
|
||||
The above environment variables <b>MUST</b> be set.
|
||||
<p>
|
||||
Note that this compiler may say it's version is a
|
||||
Microsoft Visual Studio .NET 2005 (VS2005), but be careful,
|
||||
it will not match the official VS2005 product.
|
||||
This Platform SDK compiler is only used on X64 builds.
|
||||
This Platform SDK compiler is only used on X64 builds
|
||||
but other parts of the Platform SDK may be used
|
||||
for the X86 builds.
|
||||
</blockquote>
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
@@ -1079,6 +1135,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Binary Name</td>
|
||||
<td>Category</td>
|
||||
<td>Package</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
@@ -1087,50 +1144,59 @@
|
||||
<tr>
|
||||
<td>ar.exe</td>
|
||||
<td>Devel</td>
|
||||
<td>binutils: The GNU assembler, linker and binary
|
||||
<td>binutils</td>
|
||||
<td>The GNU assembler, linker and binary
|
||||
utilities</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>make.exe</td>
|
||||
<td>Devel</td>
|
||||
<td>make: The GNU version of the 'make' utility<br>
|
||||
<td>make</td>
|
||||
<td>The GNU version of the 'make' utility built for CYGWIN.<br>
|
||||
<b>NOTE</b>: See <a href="#gmake">the GNU make section</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>m4.exe</td>
|
||||
<td>Interpreters</td>
|
||||
<td>m4: GNU implementation of the traditional Unix macro
|
||||
<td>m4</td>
|
||||
<td>GNU implementation of the traditional Unix macro
|
||||
processor</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cpio.exe</td>
|
||||
<td>Utils</td>
|
||||
<td>cpio: A program to manage archives of files</td>
|
||||
<td>cpio</td>
|
||||
<td>A program to manage archives of files</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>gawk.exe</td>
|
||||
<td>Utils</td>
|
||||
<td>awk: Pattern-directed scanning and processing language</td>
|
||||
<td>awk</td>
|
||||
<td>Pattern-directed scanning and processing language</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>file.exe</td>
|
||||
<td>Utils</td>
|
||||
<td>file: Determines file type using 'magic' numbers</td>
|
||||
<td>file</td>
|
||||
<td>Determines file type using 'magic' numbers</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>zip.exe</td>
|
||||
<td>Archive</td>
|
||||
<td>zip: Package and compress (archive) files</td>
|
||||
<td>zip</td>
|
||||
<td>Package and compress (archive) files</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>unzip.exe</td>
|
||||
<td>Archive</td>
|
||||
<td>unzip: Extract compressed files in a ZIP archive</td>
|
||||
<td>unzip</td>
|
||||
<td>Extract compressed files in a ZIP archive</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>free.exe</td>
|
||||
<td>Procps</td>
|
||||
<td>free: Display amount of free and used memory in the system</td>
|
||||
<td>System</td>
|
||||
<td>procps</td>
|
||||
<td>Display amount of free and used memory in the system</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1144,6 +1210,13 @@
|
||||
section on
|
||||
<a href="http://cygwin.com/faq/faq.using.html#faq.using.bloda" target="_blank">
|
||||
BLODA (applications that interfere with CYGWIN)</a>.
|
||||
<p>
|
||||
<b>WARNING:</b>
|
||||
Be very careful with <b><tt>link.exe</tt></b>, it will conflict
|
||||
with the Visual Studio version. You need the Visual Studio
|
||||
version of <tt>link.exe</tt>, not the CYGWIN one.
|
||||
So it's important that the Visual Studio paths in PATH preceed
|
||||
the CYGWIN path <tt>/usr/bin</tt>.
|
||||
</blockquote>
|
||||
<strong><a name="dxsdk">Microsoft DirectX 9.0 SDK header files and libraries</a></strong>
|
||||
<blockquote>
|
||||
@@ -1164,37 +1237,37 @@
|
||||
<strong><a name="msvcrt"><tt>MSVCRT.DLL</tt></a></strong>
|
||||
<blockquote>
|
||||
<strong>i586 only:</strong>
|
||||
The OpenJDK 32bit build requires access to
|
||||
<tt>MSVCRT.DLL</tt> version 6.00.8337.0 or newer.
|
||||
The OpenJDK 32-bit build requires access to a redistributable
|
||||
<tt>MSVCRT.DLL</tt>.
|
||||
If the <tt>MSVCRT.DLL</tt> is not installed in
|
||||
the system32 directory set the
|
||||
<a href="#ALT_MSVCRT_DLL_PATH"><tt>ALT_MSVCRT_DLL_PATH</tt></a>
|
||||
variable to the location.
|
||||
variable to the location of this file.
|
||||
<p>
|
||||
<strong>X64 only:</strong>
|
||||
The OpenJDK 64bit build requires access to
|
||||
<tt>MSVCRT.DLL</tt> version 7.0.3790.0 or newer, which is
|
||||
The OpenJDK 64-bit build requires access to a redistributable
|
||||
<tt>MSVCRT.DLL</tt>, which is
|
||||
usually supplied by the
|
||||
<a href="#mssdk">Platform SDK</a>.
|
||||
If it is not available from the Platform SDK,
|
||||
set the
|
||||
<a href="#ALT_MSVCRT_DLL_PATH"><tt>ALT_MSVCRT_DLL_PATH</tt></a>
|
||||
variable to the location.
|
||||
variable to the location of this file.
|
||||
</blockquote>
|
||||
<strong><tt><a name="msvcr71">MSVCR71.DLL</a></tt></strong>
|
||||
<strong><tt><a name="msvcr90">MSVCR90.DLL</a></tt></strong>
|
||||
<blockquote>
|
||||
<strong>i586 only:</strong>
|
||||
The
|
||||
OpenJDK
|
||||
build requires access to
|
||||
MSVCR71.DLL version 7.10.3052.4 or newer which should be
|
||||
build requires access to a redistributable
|
||||
<tt>MSVCR90.DLL</tt> which should be
|
||||
supplied by the
|
||||
<a href="#msvc">Visual Studio product</a>
|
||||
If the <tt>MSVCR71.DLL</tt> is not available from the
|
||||
<a href="#msvc">Visual Studio product</a>.
|
||||
If the <tt>MSVCR90.DLL</tt> is not available from the
|
||||
Visual Studio product
|
||||
set the
|
||||
<a href="#ALT_MSVCR71_DLL_PATH"><tt>ALT_MSVCR71_DLL_PATH</tt></a>
|
||||
variable to the location.
|
||||
<a href="#ALT_MSVCR90_DLL_PATH"><tt>ALT_MSVCR90_DLL_PATH</tt></a>
|
||||
variable to the location of this file.
|
||||
</blockquote>
|
||||
</blockquote>
|
||||
<!-- ------------------------------------------------------ -->
|
||||
@@ -1282,13 +1355,38 @@
|
||||
document) that can impact the build are:
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><a name="ALT_BINARY_PLUGS_PATH"><tt>ALT_BINARY_PLUGS_PATH</tt></a></dt>
|
||||
<dt><a name="path"><tt>PATH</tt></a> </dt>
|
||||
<dd>Typically you want to set the <tt>PATH</tt> to include:
|
||||
<ul>
|
||||
<li>The location of the GNU make binary</li>
|
||||
<li>The location of the Bootstrap JDK <tt>java</tt>
|
||||
(see <a href="#bootjdk">Bootstrap JDK</a>)</li>
|
||||
<li>The location of the C/C++ compilers
|
||||
(see <a href="#compilers"><tt>compilers</tt></a>)</li>
|
||||
<li>The location or locations for the Unix command utilities
|
||||
(e.g. <tt>/usr/bin</tt>)</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt><tt>MILESTONE</tt> </dt>
|
||||
<dd>
|
||||
The location of the binary plugs installation.
|
||||
See <a href="#binaryplugs">Binary Plugs</a> for more information.
|
||||
You should always have a local copy of a
|
||||
recent Binary Plugs install image
|
||||
and set this variable to that location.
|
||||
The milestone name for the build (<i>e.g.</i>"beta").
|
||||
The default value is "internal".
|
||||
</dd>
|
||||
<dt><tt>BUILD_NUMBER</tt> </dt>
|
||||
<dd>
|
||||
The build number for the build (<i>e.g.</i> "b27").
|
||||
The default value is "b00".
|
||||
</dd>
|
||||
<dt><a name="arch_data_model"><tt>ARCH_DATA_MODEL</tt></a></dt>
|
||||
<dd>The <tt>ARCH_DATA_MODEL</tt> variable
|
||||
is used to specify whether the build is to generate 32-bit or 64-bit
|
||||
binaries.
|
||||
The Solaris build supports either 32-bit or 64-bit builds, but
|
||||
Windows and Linux will support only one, depending on the specific
|
||||
OS being used.
|
||||
Normally, setting this variable is only necessary on Solaris.
|
||||
Set <tt>ARCH_DATA_MODEL</tt> to <tt>32</tt> for generating 32-bit binaries,
|
||||
or to <tt>64</tt> for generating 64-bit binaries.
|
||||
</dd>
|
||||
<dt><a name="ALT_BOOTDIR"><tt>ALT_BOOTDIR</tt></a></dt>
|
||||
<dd>
|
||||
@@ -1297,25 +1395,89 @@
|
||||
You should always install your own local Bootstrap JDK and
|
||||
always set <tt>ALT_BOOTDIR</tt> explicitly.
|
||||
</dd>
|
||||
<dt><a name="ALT_BUILD_BINARY_PLUGS_PATH"><tt>ALT_BUILD_BINARY_PLUGS_PATH</tt></a></dt>
|
||||
<dt><a name="ALT_BINARY_PLUGS_PATH"><tt>ALT_BINARY_PLUGS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
These are useful in managing builds on multiple platforms.
|
||||
The default network location for all of the binary plug images
|
||||
for all platforms.
|
||||
If <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>
|
||||
is not set, this directory will be used and should contain
|
||||
the following directories:
|
||||
<tt>solaris-sparc</tt>,
|
||||
<tt>solaris-i586</tt>,
|
||||
<tt>solaris-sparcv9</tt>,
|
||||
<tt>solaris-amd64</tt>,
|
||||
<tt>linux-i586</tt>,
|
||||
<tt>linux-amd64</tt>,
|
||||
<tt>windows-i586</tt>,
|
||||
and
|
||||
<tt>windows-amd64</tt>.
|
||||
Where each of these directories contain the binary plugs image
|
||||
for that platform.
|
||||
The location of the binary plugs installation.
|
||||
See <a href="#binaryplugs">Binary Plugs</a> for more information.
|
||||
You should always have a local copy of a
|
||||
recent Binary Plugs install image
|
||||
and set this variable to that location.
|
||||
</dd>
|
||||
<dt><a name="ALT_JDK_IMPORT_PATH"><tt>ALT_JDK_IMPORT_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of a previously built JDK installation.
|
||||
See <a href="#importjdk">Optional Import JDK</a> for more information.
|
||||
</dd>
|
||||
<dt><a name="ALT_OUTPUTDIR"><tt>ALT_OUTPUTDIR</tt></a> </dt>
|
||||
<dd>
|
||||
An override for specifying the (absolute) path of where the
|
||||
build output is to go.
|
||||
The default output directory will be build/<i>platform</i>.
|
||||
</dd>
|
||||
<dt><a name="ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a> </dt>
|
||||
<dd>
|
||||
The location of the C/C++ compiler.
|
||||
The default varies depending on the platform.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_CACERTS_FILE">ALT_CACERTS_FILE</a></tt></dt>
|
||||
<dd>
|
||||
The location of the <a href="#cacerts">cacerts</a> file.
|
||||
The default will refer to
|
||||
<tt>jdk/src/share/lib/security/cacerts</tt>.
|
||||
</dd>
|
||||
<dt><a name="ALT_CUPS_HEADERS_PATH"><tt>ALT_CUPS_HEADERS_PATH</tt></a> </dt>
|
||||
<dd>
|
||||
The location of the CUPS header files.
|
||||
See <a href="#cups">CUPS information</a> for more information.
|
||||
If this path does not exist the fallback path is
|
||||
<tt>/usr/include</tt>.
|
||||
</dd>
|
||||
<dt><a name="ALT_FREETYPE_LIB_PATH"><tt>ALT_FREETYPE_LIB_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of the FreeType shared library.
|
||||
See <a href="#freetype">FreeType information</a> for details.
|
||||
</dd>
|
||||
<dt><a name="ALT_FREETYPE_HEADERS_PATH"><tt>ALT_FREETYPE_HEADERS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of the FreeType header files.
|
||||
See <a href="#freetype">FreeType information</a> for details.
|
||||
</dd>
|
||||
<dt><a name="ALT_JDK_DEVTOOLS_PATH"><tt>ALT_JDK_DEVTOOLS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The default root location of the devtools.
|
||||
The default value is
|
||||
<tt>$(ALT_SLASH_JAVA)/devtools</tt>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_DEVTOOLS_PATH">ALT_DEVTOOLS_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
The location of tools like the
|
||||
<a href="#zip"><tt>zip</tt> and <tt>unzip</tt></a>
|
||||
binaries, but might also contain the GNU make utility
|
||||
(<tt><i>gmake</i></tt>).
|
||||
So this area is a bit of a grab bag, especially on Windows.
|
||||
The default value depends on the platform and
|
||||
Unix Commands being used.
|
||||
On Linux the default will be
|
||||
<tt>$(ALT_JDK_DEVTOOLS_PATH)/linux/bin</tt>,
|
||||
on Solaris
|
||||
<tt>$(ALT_JDK_DEVTOOLS_PATH)/<i>{sparc,i386}</i>/bin</tt>,
|
||||
and on Windows with CYGWIN
|
||||
<tt>/usr/bin</tt>.
|
||||
</dd>
|
||||
<dt><a name="ALT_UNIXCCS_PATH"><tt>ALT_UNIXCCS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
<strong>Solaris only:</strong>
|
||||
An override for specifying where the Unix CCS
|
||||
command set are located.
|
||||
The default location is <tt>/usr/ccs/bin</tt>
|
||||
</dd>
|
||||
<dt><a name="ALT_SLASH_JAVA"><tt>ALT_SLASH_JAVA</tt></a></dt>
|
||||
<dd>
|
||||
The default root location for many of the ALT path locations
|
||||
of the following ALT variables.
|
||||
The default value is
|
||||
<tt>"/java"</tt> on Solaris and Linux,
|
||||
<tt>"J:"</tt> on Windows.
|
||||
</dd>
|
||||
<dt><a name="ALT_BUILD_JDK_IMPORT_PATH"><tt>ALT_BUILD_JDK_IMPORT_PATH</tt></a></dt>
|
||||
<dd>
|
||||
@@ -1337,166 +1499,57 @@
|
||||
Where each of these directories contain the import JDK image
|
||||
for that platform.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_CACERTS_FILE">ALT_CACERTS_FILE</a></tt></dt>
|
||||
<dt><a name="ALT_BUILD_BINARY_PLUGS_PATH"><tt>ALT_BUILD_BINARY_PLUGS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of the <a href="#cacerts">cacerts</a> file.
|
||||
The default will refer to
|
||||
<tt>jdk/src/share/lib/security/cacerts</tt>.
|
||||
These are useful in managing builds on multiple platforms.
|
||||
The default network location for all of the binary plug images
|
||||
for all platforms.
|
||||
If <tt><a href="#ALT_BINARY_PLUGS_PATH">ALT_BINARY_PLUGS_PATH</a></tt>
|
||||
is not set, this directory will be used and should contain
|
||||
the following directories:
|
||||
<tt>solaris-sparc</tt>,
|
||||
<tt>solaris-i586</tt>,
|
||||
<tt>solaris-sparcv9</tt>,
|
||||
<tt>solaris-amd64</tt>,
|
||||
<tt>linux-i586</tt>,
|
||||
<tt>linux-amd64</tt>,
|
||||
<tt>windows-i586</tt>,
|
||||
and
|
||||
<tt>windows-amd64</tt>.
|
||||
Where each of these directories contain the binary plugs image
|
||||
for that platform.
|
||||
</dd>
|
||||
<dt><a name="ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a> </dt>
|
||||
<dt><strong>Windows specific:</strong></dt>
|
||||
<dd>
|
||||
The location of the C/C++ compiler.
|
||||
The default varies depending on the platform.
|
||||
</dd>
|
||||
<dt><a name="ALT_CUPS_HEADERS_PATH"><tt>ALT_CUPS_HEADERS_PATH</tt></a> </dt>
|
||||
<dd>
|
||||
The location of the CUPS header files.
|
||||
See <a href="#cups">CUPS information</a> for more information.
|
||||
If this path does not exist the fallback path is
|
||||
<tt>/usr/include</tt>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_DEVTOOLS_PATH">ALT_DEVTOOLS_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
The location of tools like the
|
||||
<a href="#zip"><tt>zip</tt> and <tt>unzip</tt></a>
|
||||
binaries, but might also contain the GNU make utility
|
||||
(<tt><i>gmake</i></tt>).
|
||||
So this area is a bit of a grab bag, especially on Windows.
|
||||
The default value depends on the platform and
|
||||
Unix Commands being used.
|
||||
On Linux the default will be
|
||||
<tt>$(ALT_JDK_DEVTOOLS_PATH)/linux/bin</tt>,
|
||||
on Solaris
|
||||
<tt>$(ALT_JDK_DEVTOOLS_PATH)/<i>{sparc,i386}</i>/bin</tt>,
|
||||
on Windows with MKS
|
||||
<tt>%SYSTEMDRIVE%/UTILS</tt>,
|
||||
and on Windows with CYGWIN
|
||||
<tt>/usr/bin</tt>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_DXSDK_PATH">ALT_DXSDK_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
<strong>Windows Only:</strong>
|
||||
The location of the
|
||||
<a href="#dxsdk">Microsoft DirectX 9 SDK</a>.
|
||||
The default will be to try and use the DirectX environment
|
||||
variable <tt>DXSDK_DIR</tt>,
|
||||
failing that, look in <tt>C:/DXSDK</tt>.
|
||||
</dd>
|
||||
<dt><a name="ALT_FREETYPE_HEADERS_PATH"><tt>ALT_FREETYPE_HEADERS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of the FreeType header files.
|
||||
See <a href="#freetype">FreeType information</a> for details.
|
||||
</dd>
|
||||
<dt><a name="ALT_FREETYPE_LIB_PATH"><tt>ALT_FREETYPE_LIB_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of the FreeType shared library.
|
||||
See <a href="#freetype">FreeType information</a> for details.
|
||||
</dd>
|
||||
<dt><a name="ALT_JDK_DEVTOOLS_PATH"><tt>ALT_JDK_DEVTOOLS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The default root location of the devtools.
|
||||
The default value is
|
||||
<tt>$(ALT_SLASH_JAVA)/devtools</tt>.
|
||||
</dd>
|
||||
<dt><a name="ALT_JDK_IMPORT_PATH"><tt>ALT_JDK_IMPORT_PATH</tt></a></dt>
|
||||
<dd>
|
||||
The location of a previously built JDK installation.
|
||||
See <a href="#importjdk">Optional Import JDK</a> for more information.
|
||||
</dd>
|
||||
<dt><a name="ALT_MSDEVTOOLS_PATH"><tt>ALT_MSDEVTOOLS_PATH</tt></a> </dt>
|
||||
<dd>
|
||||
<strong>Windows Only:</strong>
|
||||
The location of the Microsoft Visual Studio .NET 2003
|
||||
tools 'bin' directory.
|
||||
The default is usually derived from
|
||||
<a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_MSVCR71_DLL_PATH">ALT_MSVCR71_DLL_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
<strong>Windows i586 only:</strong>
|
||||
The location of the
|
||||
<a href="#msvcr71"><tt>MSVCR71.DLL</tt></a>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_MSVCRT_DLL_PATH">ALT_MSVCRT_DLL_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
<strong>Windows Only:</strong>
|
||||
The location of the
|
||||
<a href="#msvcrt"><tt>MSVCRT.DLL</tt></a>.
|
||||
</dd>
|
||||
<dt><a name="ALT_OUTPUTDIR"><tt>ALT_OUTPUTDIR</tt></a> </dt>
|
||||
<dd>
|
||||
An override for specifying the (absolute) path of where the
|
||||
build output is to go.
|
||||
The default output directory will be build/<i>platform</i>.
|
||||
</dd>
|
||||
<dt><a name="ALT_SLASHJAVA"><tt>ALT_SLASHJAVA</tt></a></dt>
|
||||
<dd>
|
||||
The default root location for many of the ALT path locations
|
||||
of the following ALT variables.
|
||||
The default value is
|
||||
<tt>"/java"</tt> on Solaris and Linux,
|
||||
<tt>"J:"</tt> on Windows.
|
||||
</dd>
|
||||
<dt><a name="ALT_UNIXCCS_PATH"><tt>ALT_UNIXCCS_PATH</tt></a></dt>
|
||||
<dd>
|
||||
<strong>Solaris only:</strong>
|
||||
An override for specifying where the Unix CCS
|
||||
command set are located.
|
||||
The default location is <tt>/usr/ccs/bin</tt>
|
||||
</dd>
|
||||
<dt><a name="ALT_UNIXCOMMAND_PATH"><tt>ALT_UNIXCOMMAND_PATH</tt></a> </dt>
|
||||
<dd>
|
||||
An override for specifying where the
|
||||
Unix command set are located.
|
||||
The default location varies depending on the platform,
|
||||
<tt>"%SYSTEMDRIVE%/MKSNT"</tt> or
|
||||
<tt>$(ROOTDIR)</tt> on Windows with MKS, otherwise it's
|
||||
<tt>"/bin"</tt> or <tt>/usr/bin</tt>.
|
||||
</dd>
|
||||
<dt><a name="ALT_USRBIN_PATH"><tt>ALT_USRBIN_PATH</tt></a></dt>
|
||||
<dd>
|
||||
An override for specifying where the
|
||||
Unix <tt>/usr/bin</tt> commands are located. You usually do not need
|
||||
to set this variable: the default location is <tt>/usr/bin</tt>)
|
||||
</dd>
|
||||
<dt><a name="ANT_HOME"><tt>ANT_HOME</tt></a></dt>
|
||||
<dd>
|
||||
The location of the Ant installation.
|
||||
See <a href="#ant">Ant</a> for more information.
|
||||
You should always set <tt>ANT_HOME</tt> explicitly.
|
||||
</dd>
|
||||
<dt><a name="arch_data_model"><tt>ARCH_DATA_MODEL</tt></a></dt>
|
||||
<dd>The <tt>ARCH_DATA_MODEL</tt> variable
|
||||
is used to specify whether the build is to generate 32-bit or 64-bit
|
||||
binaries.
|
||||
The Solaris build supports either 32-bit or 64-bit builds, but
|
||||
Windows and Linux will support only one, depending on the specific
|
||||
OS being used.
|
||||
Normally, setting this variable is only necessary on Solaris.
|
||||
Set <tt>ARCH_DATA_MODEL</tt> to <tt>32</tt> for generating 32-bit binaries,
|
||||
or to <tt>64</tt> for generating 64-bit binaries.
|
||||
</dd>
|
||||
<dt><tt>BUILD_NUMBER</tt> </dt>
|
||||
<dd>
|
||||
The build number for the build (<i>e.g.</i> "b27").
|
||||
The default value is "b00".
|
||||
</dd>
|
||||
<dt><tt>MILESTONE</tt> </dt>
|
||||
<dd>
|
||||
The milestone name for the build (<i>e.g.</i>"beta").
|
||||
The default value is "internal".
|
||||
</dd>
|
||||
<dt><a name="path"><tt>PATH</tt></a> </dt>
|
||||
<dd>Typically you want to set the <tt>PATH</tt> to include:
|
||||
<ul>
|
||||
<li>The location of the GNU make binary</li>
|
||||
<li>The location of the Bootstrap JDK <tt>java</tt>
|
||||
(see <a href="#bootjdk">Bootstrap JDK</a>)</li>
|
||||
<li>The location of the C/C++ compilers
|
||||
(see <a href="#compilers"><tt>compilers</tt></a>)</li>
|
||||
<li>The location or locations for the Unix command utilities
|
||||
(e.g. <tt>/usr/bin</tt>)</li>
|
||||
</ul>
|
||||
<dl>
|
||||
<dt><a name="ALT_MSDEVTOOLS_PATH"><tt>ALT_MSDEVTOOLS_PATH</tt></a> </dt>
|
||||
<dd>
|
||||
The location of the
|
||||
Microsoft Visual Studio
|
||||
tools 'bin' directory.
|
||||
The default is usually derived from
|
||||
<a href="#ALT_COMPILER_PATH"><tt>ALT_COMPILER_PATH</tt></a>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_DXSDK_PATH">ALT_DXSDK_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
The location of the
|
||||
<a href="#dxsdk">Microsoft DirectX 9 SDK</a>.
|
||||
The default will be to try and use the DirectX environment
|
||||
variable <tt>DXSDK_DIR</tt>,
|
||||
failing that, look in <tt>C:/DXSDK</tt>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_MSVCRT_DLL_PATH">ALT_MSVCRT_DLL_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
The location of the
|
||||
<a href="#msvcrt"><tt>MSVCRT.DLL</tt></a>.
|
||||
</dd>
|
||||
<dt><tt><a name="ALT_MSVCR90_DLL_PATH">ALT_MSVCR90_DLL_PATH</a></tt> </dt>
|
||||
<dd>
|
||||
<strong>i586 only:</strong>
|
||||
The location of the
|
||||
<a href="#msvcr90"><tt>MSVCR90.DLL</tt></a>.
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
@@ -1584,8 +1637,8 @@
|
||||
This is caused by a missing libstdc++.a library.
|
||||
This is installed as part of a specific package
|
||||
(e.g. libstdc++.so.devel.386).
|
||||
By default some 64bit Linux versions (e.g. Fedora)
|
||||
only install the 64bit version of the libstdc++ package.
|
||||
By default some 64-bit Linux versions (e.g. Fedora)
|
||||
only install the 64-bit version of the libstdc++ package.
|
||||
Various parts of the JDK build require a static
|
||||
link of the C++ runtime libraries to allow for maximum
|
||||
portability of the built images.
|
||||
|
||||
@@ -7,3 +7,14 @@ e84e9018bebbf3e5bafc5706e7882a15cb1c7d99 jdk7-b27
|
||||
c0252adbb2abbfdd6c35595429ac6fbdd98e20ac jdk7-b30
|
||||
ef6af34d75a7b44e77083f1d4ee47631fa09d3b4 jdk7-b31
|
||||
80a0f46a6203e727012bd579fe38a609b83decce jdk7-b32
|
||||
6a5b9d2f8b20de54e3bfe33cd12bd0793caedc4e jdk7-b33
|
||||
0a812b9824e5d17b073765d1505594b49ff88a10 jdk7-b34
|
||||
3867c4d14a5bfdbb37c97b4874ccb0ee5343111c jdk7-b35
|
||||
0723891eb8d1c27e67c54163af0b4cea05a4e036 jdk7-b36
|
||||
59d5848bdedebe91cc2753acce78911bcb4a66db jdk7-b37
|
||||
08be802754b0296c91a7713b6d85a015dbcd5349 jdk7-b38
|
||||
55078b6661e286e90387d1d9950bd865f5cc436e jdk7-b39
|
||||
184e21992f47a8d730df1adc5b21a108f3125489 jdk7-b40
|
||||
c90eeda9594ed2983403e2049aed8d503126c62e jdk7-b41
|
||||
ccd6a16502e0650d91d85c4b86be05cbcd461a87 jdk7-b42
|
||||
9cd740d48a4855321d69f137a7109c00bcda76be jdk7-b43
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2004 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2002-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2002-2004 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2002 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 1999-2007 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@@ -58,11 +58,24 @@ PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME)
|
||||
|
||||
# The following DLL's are considered MS runtime libraries and should
|
||||
# not to be REBASEd, see deploy/make/common/Release.gmk.
|
||||
# msvcrt.dll, msvcr71.dll: Microsoft runtimes
|
||||
# msvcrt.dll, msvcrnn.dll [msvcr71 or msvcr80 or msvcr90] : Microsoft runtimes
|
||||
MS_RUNTIME_LIBRARIES = msvcrt.dll
|
||||
MSVCRNN_DLL =
|
||||
ifeq ($(ARCH_DATA_MODEL), 32)
|
||||
ifeq ($(COMPILER_VERSION), VS2003)
|
||||
MS_RUNTIME_LIBRARIES += msvcr71.dll
|
||||
MSVCRNN_DLL = msvcr71.dll
|
||||
MSVCPNN_DLL = msvcp71.dll
|
||||
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL)
|
||||
endif
|
||||
ifeq ($(COMPILER_VERSION), VS2005)
|
||||
MSVCRNN_DLL = msvcr80.dll
|
||||
MSVCPNN_DLL = msvcp80.dll
|
||||
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL)
|
||||
endif
|
||||
ifeq ($(COMPILER_VERSION), VS2008)
|
||||
MSVCRNN_DLL = msvcr90.dll
|
||||
MSVCPNN_DLL = msvcp90.dll
|
||||
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL)
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -148,6 +161,20 @@ ifeq ($(CC_VERSION),msvc)
|
||||
CC_LOWER_OPT = -O1
|
||||
endif
|
||||
endif
|
||||
ifeq ($(COMPILER_VERSION), VS2008)
|
||||
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
|
||||
AUTOMATIC_PCH_OPTION =
|
||||
GX_OPTION = -EHsc
|
||||
ifeq ($(ARCH_DATA_MODEL), 32)
|
||||
CC_HIGHEST_OPT = -O2
|
||||
CC_HIGHER_OPT = -O1
|
||||
CC_LOWER_OPT = -O1
|
||||
else
|
||||
CC_HIGHEST_OPT = -O2
|
||||
CC_HIGHER_OPT = -O1
|
||||
CC_LOWER_OPT = -O1
|
||||
endif
|
||||
endif
|
||||
CC_NO_OPT = -Od
|
||||
else # CC_VERSION
|
||||
# GCC not supported, but left for historical reference...
|
||||
@@ -179,7 +206,7 @@ endif
|
||||
# -MTd Use static debug version (better than -MDd, no runtime issues)
|
||||
# -D_DEBUG Change use of malloc/free/etc to use special debug ones (-MTd)
|
||||
#
|
||||
# NOTE: We also will use /D _STATIC_CPPLIB so we don't need msvcp71.dll
|
||||
# NOTE: We also will use /D _STATIC_CPPLIB so we don't need msvcpnn.dll
|
||||
#
|
||||
ifeq ($(MS_RUNTIME_STATIC),true)
|
||||
MS_RUNTIME_OPTION=-MT
|
||||
@@ -217,7 +244,7 @@ ifeq ($(CC_VERSION),msvc)
|
||||
# -YX -Fp/.../foobar.pch Use precompiled headers (try someday?)
|
||||
# -nologo Don't print out startup message
|
||||
# /D _STATIC_CPPLIB
|
||||
# Use static link for the C++ runtime (so msvcp71.dll not needed)
|
||||
# Use static link for the C++ runtime (so msvcpnn.dll not needed)
|
||||
#
|
||||
CFLAGS_COMMON += -Zi -nologo
|
||||
CFLAGS_OPT = $(POPT)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@@ -47,24 +47,17 @@ ifeq ($(PLATFORM), windows)
|
||||
# unset any GNU Make settings of MFLAGS and MAKEFLAGS which may mess up nmake
|
||||
NMAKE = MFLAGS= MAKEFLAGS= $(COMPILER_PATH)nmake -nologo
|
||||
|
||||
# Compiler version and type (Always get word after "Version")
|
||||
CC_VER := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(SED) 's/.*\(Version.*\)/\1/' | $(NAWK) '{print $$2}')
|
||||
|
||||
# SDK-64 and MSVC6 put REBASE.EXE in a different places - go figure...
|
||||
ifeq ($(ARCH_DATA_MODEL), 32)
|
||||
CC_VER := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(NAWK) '{print $$8}')
|
||||
LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
|
||||
CC_TYPE := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(NAWK) '{print $$5}')
|
||||
CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
|
||||
REQUIRED_CCTYPE = Optimizing
|
||||
REQUIRED_CC_VER = 13.10.3077
|
||||
REQUIRED_LINK_VER = 7.10.3077
|
||||
ifeq ($(CC_MAJORVER), 12)
|
||||
# This should be: CC_VER=12.00.8168 LINK_VER=6.00.8447
|
||||
COMPILER_NAME=Visual C++ 6.0 Professional + VC6-SP 3
|
||||
COMPILER_VERSION=VC6
|
||||
REBASE = $(COMPILER_PATH)rebase
|
||||
MTL = $(COMPILER_PATH)midl
|
||||
endif
|
||||
ifeq ($(CC_MAJORVER), 13)
|
||||
# This should be: CC_VER=13.10.3077 LINK_VER=7.10.3077
|
||||
REQUIRED_CC_VER = 13.10.3077
|
||||
REQUIRED_LINK_VER = 7.10.3077
|
||||
COMPILER_NAME=Visual Studio .NET 2003 Professional C++
|
||||
COMPILER_VERSION=VS2003
|
||||
REBASE = $(COMPILER_PATH)../../Common7/Tools/Bin/rebase
|
||||
@@ -74,9 +67,10 @@ ifeq ($(PLATFORM), windows)
|
||||
endif
|
||||
endif
|
||||
ifeq ($(CC_MAJORVER), 14)
|
||||
# This should be: CC_VER=14.00.0000 LINK_VER=8.00.0000
|
||||
# NOTE: This compiler has not been tried yet on 32bit systems
|
||||
COMPILER_NAME=Visual Studio .NET 2005
|
||||
# This should be: CC_VER=14.00.50727.42 LINK_VER=8.00.50727.42
|
||||
REQUIRED_CC_VER = 14.00.50727.42
|
||||
REQUIRED_LINK_VER = 8.00.50727.42
|
||||
COMPILER_NAME=Visual Studio 8
|
||||
COMPILER_VERSION=VS2005
|
||||
REBASE = $(COMPILER_PATH)../../Common8/Tools/Bin/rebase
|
||||
MTL = $(COMPILER_PATH)../../Common8/Tools/Bin/midl
|
||||
@@ -84,10 +78,22 @@ ifeq ($(PLATFORM), windows)
|
||||
COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
|
||||
endif
|
||||
endif
|
||||
ifeq ($(CC_MAJORVER), 15)
|
||||
# This should be: CC_VER=15.00.21022.08 LINK_VER=9.00.21022.08
|
||||
REQUIRED_CC_VER = 15.00.21022.08
|
||||
REQUIRED_LINK_VER = 9.00.21022.08
|
||||
COMPILER_NAME=Visual Studio 9
|
||||
COMPILER_VERSION=VS2008
|
||||
#rebase and midl moved out of Visual Studio into the SDK:
|
||||
REBASE = $(MSDEVTOOLS_PATH)/rebase
|
||||
MTL = $(MSDEVTOOLS_PATH)/midl.exe
|
||||
ifndef COMPILER_PATH
|
||||
COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
CC_VER := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(NAWK) '{print $$7}')
|
||||
# else ARCH_DATA_MODEL is 64
|
||||
LINK_VER := $(shell $(LINK) | $(HEAD) -n 1 | $(NAWK) '{print $$6}')
|
||||
CC_TYPE := $(shell $(CC) 2>&1 | $(HEAD) -n 1 | $(NAWK) '{print $$4}')
|
||||
CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
|
||||
CC_MINORVER :=$(call MinorVersion,$(CC_VER))
|
||||
CC_MICROVER :=$(call MicroVersion,$(CC_VER))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@@ -67,16 +67,6 @@ ifeq ($(PLATFORM),windows)
|
||||
UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
|
||||
endif
|
||||
|
||||
# Utilities ant and findbugs
|
||||
ifndef ANT_HOME
|
||||
ANT_HOME = $(JDK_DEVTOOLS_DIR)/share/ant/latest
|
||||
endif
|
||||
ANT = $(ANT_HOME)/bin/ant
|
||||
ifndef FINDBUGS_HOME
|
||||
FINDBUGS_HOME = $(JDK_DEVTOOLS_DIR)/share/findbugs/latest
|
||||
endif
|
||||
FINDBUGS = $(FINDBUGS_HOME)/bin/findbugs
|
||||
|
||||
# Utilities
|
||||
ADB = $(UTILS_COMMAND_PATH)adb
|
||||
AR = $(UTILS_CCS_BIN_PATH)ar
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2000-2005 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -93,23 +93,13 @@ jdk_import="${ALT_JDK_IMPORT_PATH}"
|
||||
jdk_devtools="${slashjava}/devtools"
|
||||
share="${jdk_devtools}/share"
|
||||
|
||||
# Needed for langtools, maybe other parts of the build
|
||||
ANT_HOME="${share}/ant/latest"
|
||||
export ANT_HOME
|
||||
FINDBUGS_HOME="${share}/findbugs/latest"
|
||||
export FINDBUGS_HOME
|
||||
|
||||
# The 3 bin directories in common to all platforms
|
||||
sharebin="${share}/bin"
|
||||
antbin="${ANT_HOME}/bin"
|
||||
findbugsbin="${FINDBUGS_HOME}/bin"
|
||||
|
||||
# Check input
|
||||
dirMustExist "${bootdir}" ALT_BOOTDIR
|
||||
dirMustExist "${slashjava}" ALT_SLASH_JAVA
|
||||
dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
|
||||
dirMustExist "${ANT_HOME}" ANT_HOME
|
||||
dirMustExist "${FINDBUGS_HOME}" FINDBUGS_HOME
|
||||
|
||||
# Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
|
||||
osname=`uname -s`
|
||||
@@ -133,7 +123,7 @@ if [ "${osname}" = SunOS ] ; then
|
||||
ALT_COMPILER_PATH="${compiler_path}"
|
||||
export ALT_COMPILER_PATH
|
||||
dirMustExist "${compiler_path}" ALT_COMPILER_PATH
|
||||
path4sdk=${compiler_path}:${sharebin}:${antbin}:${findbugsbin}
|
||||
path4sdk=${compiler_path}:${sharebin}
|
||||
|
||||
# Add basic solaris system paths
|
||||
path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
|
||||
@@ -170,7 +160,7 @@ elif [ "${osname}" = Linux ] ; then
|
||||
ALT_COMPILER_PATH="${compiler_path}"
|
||||
export ALT_COMPILER_PATH
|
||||
dirMustExist "${compiler_path}" ALT_COMPILER_PATH
|
||||
path4sdk=${compiler_path}:${sharebin}:${antbin}:${findbugsbin}
|
||||
path4sdk=${compiler_path}:${sharebin}
|
||||
|
||||
# Add basic paths
|
||||
path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin
|
||||
@@ -211,7 +201,7 @@ else
|
||||
dosname="${mkshome}/mksnt/dosname -s"
|
||||
# Most unix utilities are in the mksnt directory of ROOTDIR
|
||||
unixcommand_path="${mkshome}/mksnt"
|
||||
path4sdk="${sharebin};${antbin};${findbugsbin};${unixcommand_path}"
|
||||
path4sdk="${sharebin};${unixcommand_path}"
|
||||
dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
|
||||
devtools_path="${jdk_devtools}/win32/bin"
|
||||
path4sdk="${devtools_path};${path4sdk}"
|
||||
@@ -229,7 +219,7 @@ else
|
||||
dosname="/usr/bin/cygpath -a -m -s"
|
||||
# Most unix utilities are in the /usr/bin
|
||||
unixcommand_path="/usr/bin"
|
||||
path4sdk="${sharebin};${antbin};${findbugsbin};${unixcommand_path}"
|
||||
path4sdk="${sharebin};${unixcommand_path}"
|
||||
dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
|
||||
# Find GNU make
|
||||
make="${unixcommand_path}/make.exe"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 1997-2004 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
|
||||
@@ -7,3 +7,14 @@ c14dab40ed9bf45ad21150bd70c9c80cdf655415 jdk7-b28
|
||||
d1605aabd0a15ecf93787c47de63073c33fba52d jdk7-b30
|
||||
9c2ecc2ffb125f14fab3857fe7689598956348a0 jdk7-b31
|
||||
b727c32788a906c04839516ae7443a085185a300 jdk7-b32
|
||||
585535ec8a14adafa6bfea65d6975e29094c8cec jdk7-b33
|
||||
5251a9cd8eb8743eee647365bee1c8afdc131556 jdk7-b34
|
||||
5fa96a5a7e76da7c8dad12486293a0456c2c116c jdk7-b35
|
||||
e91159f921a58af3698e6479ea1fc5818da66d09 jdk7-b36
|
||||
9ee9cf798b59e7d51f8c0a686959f313867a55d6 jdk7-b37
|
||||
d9bc824aa078573829bb66572af847e26e1bd12e jdk7-b38
|
||||
49ca90d77f34571b0757ebfcb8a7848ef2696b88 jdk7-b39
|
||||
81a0cbe3b28460ce836109934ece03db7afaf9cc jdk7-b40
|
||||
f9d938ede1960d18cb7cf23c645b026519c1a678 jdk7-b41
|
||||
ad8c8ca4ab0f4c86e74c061958f44a8f4a930f2c jdk7-b42
|
||||
fc6a5ae3fef5ebacfa896dbb3ae37715e388e282 jdk7-b43
|
||||
|
||||
@@ -32,6 +32,12 @@ else
|
||||
include $(GAMMADIR)/make/defs.make
|
||||
endif
|
||||
|
||||
ifeq "x$(HOTSPOT_BUILD_VERSION)" "x"
|
||||
SA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)
|
||||
else
|
||||
SA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
|
||||
endif
|
||||
|
||||
PKGLIST = \
|
||||
sun.jvm.hotspot \
|
||||
sun.jvm.hotspot.asm \
|
||||
@@ -117,7 +123,9 @@ sun.jvm.hotspot.ui.tree \
|
||||
sun.jvm.hotspot.ui.treetable \
|
||||
sun.jvm.hotspot.utilities \
|
||||
sun.jvm.hotspot.utilities.memo \
|
||||
sun.jvm.hotspot.utilities.soql
|
||||
sun.jvm.hotspot.utilities.soql \
|
||||
com.sun.java.swing.action \
|
||||
com.sun.java.swing.ui
|
||||
#END PKGLIST
|
||||
|
||||
# Generated using the build-filelist script
|
||||
@@ -198,7 +206,9 @@ sun/jvm/hotspot/ui/tree/*.java \
|
||||
sun/jvm/hotspot/ui/treetable/*.java \
|
||||
sun/jvm/hotspot/utilities/*.java \
|
||||
sun/jvm/hotspot/utilities/memo/*.java \
|
||||
sun/jvm/hotspot/utilities/soql/*.java
|
||||
sun/jvm/hotspot/utilities/soql/*.java \
|
||||
com/sun/java/swing/action/*.java \
|
||||
com/sun/java/swing/ui/*.java
|
||||
#END FILELIST
|
||||
|
||||
ifneq "x$(ALT_BOOTDIR)" "x"
|
||||
@@ -220,8 +230,6 @@ else
|
||||
endif
|
||||
|
||||
SRC_DIR = ../src/share/classes
|
||||
LIB_DIR = ../src/share/lib
|
||||
CLOSED_LIB_DIR = ../closed/src/share/lib
|
||||
BUILD_DIR = ../build
|
||||
OUTPUT_DIR = $(BUILD_DIR)/classes
|
||||
DOC_DIR = $(BUILD_DIR)/doc
|
||||
@@ -231,9 +239,9 @@ DOC_DIR = $(BUILD_DIR)/doc
|
||||
ALLFILES := $(patsubst %,$(SRC_DIR)/%,$(FILELIST))
|
||||
ALLFILES := $(shell /bin/ls $(ALLFILES))
|
||||
|
||||
# tools.jar is used by the sa-jdi binding
|
||||
CLASSPATH = $(JDK_HOME)/lib/tools.jar
|
||||
|
||||
# tools.jar is needed by the JDI - SA binding
|
||||
CLASSPATH = $(LIB_DIR)/maf-1_0.jar$(CPS)$(JDK_HOME)/lib/tools.jar
|
||||
CLASSPATH := $(subst \,/,$(CLASSPATH))
|
||||
|
||||
# FIXME: autogenerate call to rmic
|
||||
@@ -241,24 +249,36 @@ CLASSPATH := $(subst \,/,$(CLASSPATH))
|
||||
SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)"
|
||||
|
||||
SA_PROPERTIES = $(OUTPUT_DIR)/sa.properties
|
||||
JAVAC = $(JDK_HOME)/bin/javac
|
||||
JAVADOC = $(JDK_HOME)/bin/javadoc
|
||||
RMIC = $(JDK_HOME)/bin/rmic
|
||||
|
||||
# Tagging it on because there's no reason not to run it
|
||||
all: filelist
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
@echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
|
||||
@${JDK_HOME}/bin/javac -source 1.4 -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
|
||||
@${JDK_HOME}/bin/rmic -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
|
||||
$(JAVAC) -source 1.4 -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
|
||||
$(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
|
||||
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
|
||||
cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
|
||||
mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
|
||||
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
|
||||
cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
|
||||
cp -r $(SRC_DIR)/images/* $(OUTPUT_DIR)/
|
||||
|
||||
allprof: filelist
|
||||
@mkdir -p $(OUTPUT_DIR)
|
||||
@echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
|
||||
@${JDK_HOME}/bin/javac -source 1.4 -J-Xprof -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
|
||||
@${JDK_HOME}/bin/rmic -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
|
||||
$(JAVAC) -source 1.4 -J-Xprof -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
|
||||
$(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
|
||||
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
|
||||
cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
|
||||
mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
|
||||
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
|
||||
cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
|
||||
cp -r $(SRC_DIR)/images/* $(OUTPUT_DIR)/
|
||||
|
||||
.PHONY: filelist
|
||||
filelist: $(ALLFILES)
|
||||
@if [ ! -f $(JDK_HOME)/lib/tools.jar ] ; then \
|
||||
echo "Missing $(JDK_HOME)/lib/tools.jar file. Use 1.6.0 or later version jdk to build SA."; \
|
||||
@@ -274,36 +294,23 @@ natives:
|
||||
|
||||
.PHONY: sa-jdi.jar
|
||||
sa-jdi.jar:
|
||||
if [ ! -f $(JDK_HOME)/lib/tools.jar ] ; then \
|
||||
echo "Missing $(JDK_HOME)/lib/tools.jar file. Use 1.6.0 or later version jdk to build SA.";\
|
||||
exit 1; \
|
||||
fi
|
||||
rm -f $(BUILD_DIR)/sa-jdi.jar
|
||||
rm -f $(OUTPUT_DIR)/jdi_class_files
|
||||
javac -source 1.4 ClosureFinder.java -d $(OUTPUT_DIR)
|
||||
cd $(OUTPUT_DIR) ; find sun/jvm/hotspot/jdi -name "*.class" > jdi_class_files
|
||||
cd $(OUTPUT_DIR) ; jar cvf ../sa-jdi.jar `java ClosureFinder jdi_class_files .`
|
||||
cd $(BUILD_DIR) ; jar uvf sa-jdi.jar -C $(SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector
|
||||
cd $(BUILD_DIR) ; jar uvf sa-jdi.jar -C $(OUTPUT_DIR) sa.properties
|
||||
rm -f $(OUTPUT_DIR)/ClosureFinder.class
|
||||
rm -f $(OUTPUT_DIR)/jdi_class_files
|
||||
echo "sa-jdi.jar is built by a hotspot build."
|
||||
|
||||
docs:
|
||||
@javadoc -private -classpath $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(DOC_DIR) $(PKGLIST)
|
||||
@$(JAVADOC) -private -classpath $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(DOC_DIR) $(PKGLIST)
|
||||
|
||||
sizes: $(ALLFILES)
|
||||
wc -l $(ALLFILES)
|
||||
|
||||
cscope: $(ALLFILES)
|
||||
rm -f java.files
|
||||
echo $(ALLFILES) > java.files
|
||||
cscope -b -i java.files -f java.out
|
||||
rm -f java.files
|
||||
|
||||
.PHONY: sa.jar
|
||||
sa.jar:
|
||||
rm -f $(BUILD_DIR)/sa.jar
|
||||
mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
|
||||
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
|
||||
cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
|
||||
cd $(OUTPUT_DIR) ; jar cvf ../sa.jar *
|
||||
|
||||
clean::
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
REM
|
||||
REM Copyright 2002-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
REM
|
||||
REM This code is free software; you can redistribute it and/or modify it
|
||||
@@ -22,4 +22,4 @@ REM have any questions.
|
||||
REM
|
||||
REM
|
||||
|
||||
java -showversion -cp ..\build\classes;..\src\share\lib\maf-1_0.jar;..\src\share\lib\jlfgr-1_0.jar;..\src\share\lib\js.jar;sa.jar;lib\maf-1_0.jar;lib\jlfgr-1_0.jar;lib\js.jar sun.jvm.hotspot.bugspot.Main
|
||||
java -showversion -cp ..\build\classes;..\src\share\lib\js.jar;.\sa.jar;lib\js.jar sun.jvm.hotspot.bugspot.Main
|
||||
|
||||
@@ -8,4 +8,4 @@ FIND=$MKS_HOME/find
|
||||
SED=$MKS_HOME/sed
|
||||
SORT=$MKS_HOME/sort
|
||||
|
||||
$CD ../src/share/classes; $FIND sun/jvm/hotspot \( -name SCCS -prune \) -o -type d -print | $SED -e 's/\//./g' | $SORT > ../../../make/pkglist.txt
|
||||
$CD ../src/share/classes; $FIND sun/jvm/hotspot com/sun/java/swing -type d -print | $SED -e 's/\//./g' | $SORT > ../../../make/pkglist.txt
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
|
||||
Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
@@ -42,7 +42,6 @@
|
||||
|
||||
<property name="app.name" value="sa"/>
|
||||
<property name="dist.jar" value="${app.name}.jar"/>
|
||||
<property name="libs" value="../src/share/lib"/>
|
||||
<property name="classes" value="../build/classes"/>
|
||||
|
||||
<!-- The "prepare" target is used to construct the deployment home
|
||||
@@ -83,11 +82,6 @@
|
||||
home directory structure will be created if needed the first time.
|
||||
-->
|
||||
|
||||
<path id="javac.classpath">
|
||||
<pathelement path="${libs}/maf-1_0.jar" />
|
||||
<pathelement path="${libs}/jlfgr-1_0.jar" />
|
||||
</path>
|
||||
|
||||
<target name="compile" depends="prepare" description="Compiles the sources">
|
||||
<javac srcdir="../src/share/classes"
|
||||
destdir="${classes}"
|
||||
@@ -110,6 +104,18 @@
|
||||
<copy todir="${classes}/sun/jvm/hotspot/ui/resources">
|
||||
<fileset dir="../src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />
|
||||
</copy>
|
||||
<copy todir="${classes}/toolbarButtonGraphics/development/">
|
||||
<fileset dir="../src/share/classes/images/toolbarButtonGraphics/development/" includes="*.gif" />
|
||||
</copy>
|
||||
<copy todir="${classes}/toolbarButtonGraphics/general/">
|
||||
<fileset dir="../src/share/classes/images/toolbarButtonGraphics/general/" includes="*.gif" />
|
||||
</copy>
|
||||
<copy todir="${classes}/toolbarButtonGraphics/navigation/">
|
||||
<fileset dir="../src/share/classes/images/toolbarButtonGraphics/navigation/" includes="*.gif" />
|
||||
</copy>
|
||||
<copy todir="${classes}/toolbarButtonGraphics/text/">
|
||||
<fileset dir="../src/share/classes/images/toolbarButtonGraphics/text/" includes="*.gif" />
|
||||
</copy>
|
||||
|
||||
<jar jarfile="${classes}/${dist.jar}"
|
||||
basedir="${classes}"/>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
REM
|
||||
REM Copyright 2002-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
REM
|
||||
REM This code is free software; you can redistribute it and/or modify it
|
||||
@@ -22,4 +22,4 @@ REM have any questions.
|
||||
REM
|
||||
REM
|
||||
|
||||
java -showversion -cp ..\build\classes;..\src\share\lib\maf-1_0.jar;..\src\share\lib\jlfgr-1_0.jar;..\src\share\lib\js.jar;sa.jar;lib\maf-1_0.jar;lib\jlfgr-1_0.jar;lib\js.jar sun.jvm.hotspot.HSDB %1 %2
|
||||
java -showversion -cp ..\build\classes;..\src\share\lib\js.jar;.\sa.jar;lib\js.jar sun.jvm.hotspot.HSDB %1 %2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2002-2003 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@@ -29,4 +29,4 @@ if [ "x$SA_JAVA" = "x" ]; then
|
||||
SA_JAVA=java
|
||||
fi
|
||||
|
||||
$SA_JAVA -showversion -cp $STARTDIR/../build/classes:$STARTDIR/../src/share/lib/maf-1_0.jar:$STARTDIR/../src/share/lib/jlfgr-1_0.jar:$STARTDIR/../src/share/lib/js.jar:$STARTDIR/sa.jar:$STARTDIR/lib/maf-1_0.jar:$STARTDIR/lib/jlfgr-1_0.jar:$STARTDIR/lib/js.jar sun.jvm.hotspot.HSDB $*
|
||||
$SA_JAVA -showversion -cp $STARTDIR/../build/classes:$STARTDIR/../src/share/lib/js.jar:$STARTDIR/sa.jar:$STARTDIR/lib/js.jar sun.jvm.hotspot.HSDB $*
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
REM
|
||||
REM This code is free software; you can redistribute it and/or modify it
|
||||
@@ -39,7 +39,7 @@ set SA_JAVA=java
|
||||
|
||||
:sa_java_set
|
||||
|
||||
set SA_CLASSPATH=..\build\classes;..\src\share\lib\maf-1_0.jar;..\src\share\lib\jlfgr-1_0.jar;..\src\share\lib\js.jar;sa.jar;lib\maf-1_0.jar;lib\jlfgr-1_0.jar;lib\js.jar
|
||||
set SA_CLASSPATH=..\build\classes;..\src\share\lib\js.jar;sa.jar;lib\js.jar
|
||||
|
||||
set SA_LIBPATH=..\src\os\win32\windbg\i386;.\win32\i386
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@@ -58,7 +58,7 @@ if [ "x$SA_DISABLE_VERS_CHK" != "x" ]; then
|
||||
fi
|
||||
|
||||
|
||||
SA_CLASSPATH=$STARTDIR/../build/classes:$STARTDIR/../src/share/lib/maf-1_0.jar:$STARTDIR/../src/share/lib/jlfgr-1_0.jar:$STARTDIR/../src/share/lib/js.jar:$STARTDIR/sa.jar:$STARTDIR/lib/maf-1_0.jar:$STARTDIR/lib/jlfgr-1_0.jar:$STARTDIR/lib/js.jar
|
||||
SA_CLASSPATH=$STARTDIR/../build/classes:$STARTDIR/../src/share/lib/js.jar:$STARTDIR/sa.jar:$STARTDIR/lib/js.jar
|
||||
|
||||
OPTIONS="-Djava.system.class.loader=sun.jvm.hotspot.SALauncherLoader ${OPTIONS}"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
REM
|
||||
REM This code is free software; you can redistribute it and/or modify it
|
||||
@@ -43,7 +43,7 @@ set SA_JAVA=java
|
||||
|
||||
:sa_java_set
|
||||
|
||||
set SA_CLASSPATH=..\build\classes;..\src\share\lib\maf-1_0.jar;..\src\share\lib\jlfgr-1_0.jar;..\src\share\lib\js.jar;sa.jar;lib\maf-1_0.jar;lib\jlfgr-1_0.jar;lib\js.jar
|
||||
set SA_CLASSPATH=..\build\classes;..\src\share\lib\js.jar;sa.jar;lib\js.jar
|
||||
|
||||
REM For now, only AMD-64, IA-64 stack walking is not working anyway
|
||||
set SA_LIBPATH=.\src\os\win32\windbg\amd64;.\win32\amd64
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@@ -55,7 +55,7 @@ if [ "x$SA_DISABLE_VERS_CHK" != "x" ]; then
|
||||
OPTIONS="-Dsun.jvm.hotspot.runtime.VM.disableVersionCheck ${OPTIONS}"
|
||||
fi
|
||||
|
||||
SA_CLASSPATH=$STARTDIR/../build/classes:$STARTDIR/../src/share/lib/maf-1_0.jar:$STARTDIR/../src/share/lib/jlfgr-1_0.jar:$STARTDIR/../src/share/lib/js.jar:$STARTDIR/sa.jar:$STARTDIR/lib/maf-1_0.jar:$STARTDIR/lib/jlfgr-1_0.jar:$STARTDIR/lib/js.jar
|
||||
SA_CLASSPATH=$STARTDIR/../build/classes:$STARTDIR/../src/share/lib/js.jar:$STARTDIR/sa.jar::$STARTDIR/lib/js.jar
|
||||
|
||||
OPTIONS="-Djava.system.class.loader=sun.jvm.hotspot.SALauncherLoader ${OPTIONS}"
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class AboutAction extends DelegateAction
|
||||
{
|
||||
|
||||
public AboutAction()
|
||||
{
|
||||
this("general/About16.gif");
|
||||
}
|
||||
|
||||
public AboutAction(String iconPath)
|
||||
{
|
||||
super("About...", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "about-command");
|
||||
putValue("ShortDescription", "About...");
|
||||
putValue("LongDescription", "System information and version of the application.");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "about-command";
|
||||
public static final String VALUE_NAME = "About...";
|
||||
public static final String VALUE_SMALL_ICON = "general/About16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/About24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(65);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "About...";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "System information and version of the application.";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import java.util.HashMap;
|
||||
import javax.swing.Action;
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, StateChangeAction, ActionUtilities
|
||||
|
||||
public abstract class ActionManager
|
||||
{
|
||||
|
||||
protected ActionManager()
|
||||
{
|
||||
actions = new HashMap();
|
||||
addActions();
|
||||
}
|
||||
|
||||
public static ActionManager getInstance()
|
||||
{
|
||||
return manager;
|
||||
}
|
||||
|
||||
protected abstract void addActions();
|
||||
|
||||
protected void addAction(String cmdname, Action action)
|
||||
{
|
||||
actions.put(cmdname, action);
|
||||
}
|
||||
|
||||
public Action getAction(String key)
|
||||
{
|
||||
return (Action)actions.get(key);
|
||||
}
|
||||
|
||||
public DelegateAction getDelegateAction(String name)
|
||||
{
|
||||
Action a = getAction(name);
|
||||
if(a instanceof DelegateAction)
|
||||
return (DelegateAction)a;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public StateChangeAction getStateChangeAction(String name)
|
||||
{
|
||||
Action a = getAction(name);
|
||||
if(a instanceof StateChangeAction)
|
||||
return (StateChangeAction)a;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public static ImageIcon getIcon(String name)
|
||||
{
|
||||
return utilities.getIcon(name);
|
||||
}
|
||||
|
||||
public void setActionEnabled(String name, boolean enabled)
|
||||
{
|
||||
Action action = getAction(name);
|
||||
if(action != null)
|
||||
action.setEnabled(enabled);
|
||||
}
|
||||
|
||||
private HashMap actions;
|
||||
private static ActionUtilities utilities = new ActionUtilities();
|
||||
protected static ActionManager manager;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
class ActionUtilities
|
||||
{
|
||||
|
||||
ActionUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
public ImageIcon getIcon(String name)
|
||||
{
|
||||
String imagePath = "/toolbarButtonGraphics/" + name;
|
||||
java.net.URL url = getClass().getResource(imagePath);
|
||||
if(url != null)
|
||||
return new ImageIcon(url);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final String IMAGE_DIR = "/toolbarButtonGraphics/";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// StateChangeAction, ActionManager
|
||||
|
||||
public class AlignCenterAction extends StateChangeAction
|
||||
{
|
||||
|
||||
public AlignCenterAction()
|
||||
{
|
||||
this("text/AlignCenter16.gif");
|
||||
}
|
||||
|
||||
public AlignCenterAction(String iconPath)
|
||||
{
|
||||
super("Center", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "align-center-command");
|
||||
putValue("ShortDescription", "Center");
|
||||
putValue("LongDescription", "Adjust the placement of text to the center of the line");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "align-center-command";
|
||||
public static final String VALUE_NAME = "Center";
|
||||
public static final String VALUE_SMALL_ICON = "text/AlignCenter16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "text/AlignCenter24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(78);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(69, 2);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Center";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Adjust the placement of text to the center of the line";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// StateChangeAction, ActionManager
|
||||
|
||||
public class AlignLeftAction extends StateChangeAction
|
||||
{
|
||||
|
||||
public AlignLeftAction()
|
||||
{
|
||||
this("text/AlignLeft16.gif");
|
||||
}
|
||||
|
||||
public AlignLeftAction(String iconPath)
|
||||
{
|
||||
super("Left Align", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "align-left-command");
|
||||
putValue("ShortDescription", "Left Align");
|
||||
putValue("LongDescription", "Adjust the placement of text along the left edge");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "align-left-command";
|
||||
public static final String VALUE_NAME = "Left Align";
|
||||
public static final String VALUE_SMALL_ICON = "text/AlignLeft16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "text/AlignLeft24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(76);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(76, 2);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Left Align";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Adjust the placement of text along the left edge";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// StateChangeAction, ActionManager
|
||||
|
||||
public class AlignRightAction extends StateChangeAction
|
||||
{
|
||||
|
||||
public AlignRightAction()
|
||||
{
|
||||
this("text/AlignRight16.gif");
|
||||
}
|
||||
|
||||
public AlignRightAction(String iconPath)
|
||||
{
|
||||
super("Right Align", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "align-right-command");
|
||||
putValue("ShortDescription", "Right Align");
|
||||
putValue("LongDescription", "Adjust the placement of text along the right edge");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "align-right-command";
|
||||
public static final String VALUE_NAME = "Right Align";
|
||||
public static final String VALUE_SMALL_ICON = "text/AlignRight16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "text/AlignRight24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(82);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(82, 2);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Right Align";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Adjust the placement of text along the right edge";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class ApplyAction extends DelegateAction
|
||||
{
|
||||
|
||||
public ApplyAction()
|
||||
{
|
||||
this(VALUE_SMALL_ICON);
|
||||
}
|
||||
|
||||
public ApplyAction(String iconPath)
|
||||
{
|
||||
super("Apply", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "apply-command");
|
||||
putValue("ShortDescription", "Apply the activity");
|
||||
putValue("LongDescription", "Apply the activity");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "apply-command";
|
||||
public static final String VALUE_NAME = "Apply";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(65);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Apply the activity";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Apply the activity";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class BackAction extends DelegateAction
|
||||
{
|
||||
|
||||
public BackAction()
|
||||
{
|
||||
this(VALUE_SMALL_ICON);
|
||||
}
|
||||
|
||||
public BackAction(String iconPath)
|
||||
{
|
||||
super("< Back", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "back-command");
|
||||
putValue("ShortDescription", "Select previous item");
|
||||
putValue("LongDescription", "Select previous item");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "back-command";
|
||||
public static final String VALUE_NAME = "< Back";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(66);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Select previous item";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Select previous item";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class CancelAction extends DelegateAction
|
||||
{
|
||||
|
||||
public CancelAction()
|
||||
{
|
||||
this(VALUE_SMALL_ICON);
|
||||
}
|
||||
|
||||
public CancelAction(String iconPath)
|
||||
{
|
||||
super("Cancel", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "cancel-command");
|
||||
putValue("ShortDescription", "Cancels the action");
|
||||
putValue("LongDescription", "Cancels the action");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "cancel-command";
|
||||
public static final String VALUE_NAME = "Cancel";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(67);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Cancels the action";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Cancels the action";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import javax.swing.AbstractAction;
|
||||
import javax.swing.Icon;
|
||||
|
||||
public abstract class DelegateAction extends AbstractAction
|
||||
{
|
||||
|
||||
public DelegateAction(String name, Icon icon)
|
||||
{
|
||||
super(name, icon);
|
||||
}
|
||||
|
||||
public void addActionListener(ActionListener listener)
|
||||
{
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
public void removeActionListener(ActionListener listener)
|
||||
{
|
||||
this.listener = null;
|
||||
}
|
||||
|
||||
public ActionListener[] getActionListeners()
|
||||
{
|
||||
return (new ActionListener[] {
|
||||
listener
|
||||
});
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
if(listener != null)
|
||||
listener.actionPerformed(evt);
|
||||
}
|
||||
|
||||
private ActionListener listener;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class ExitAction extends DelegateAction
|
||||
{
|
||||
|
||||
public ExitAction()
|
||||
{
|
||||
super("Exit", ActionManager.getIcon(VALUE_SMALL_ICON));
|
||||
putValue("ActionCommandKey", "exit-command");
|
||||
putValue("ShortDescription", "Exits the application");
|
||||
putValue("LongDescription", "Exits the application");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "exit-command";
|
||||
public static final String VALUE_NAME = "Exit";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(88);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Exits the application";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Exits the application";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import javax.swing.AbstractAction;
|
||||
|
||||
public class FileMenu extends AbstractAction
|
||||
{
|
||||
|
||||
public FileMenu()
|
||||
{
|
||||
super("File");
|
||||
putValue("ActionCommandKey", "file-menu-command");
|
||||
putValue("ShortDescription", "File operations");
|
||||
putValue("LongDescription", "File operations");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent actionevent)
|
||||
{
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "file-menu-command";
|
||||
public static final String VALUE_NAME = "File";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(70);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "File operations";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "File operations";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class FinishAction extends DelegateAction
|
||||
{
|
||||
|
||||
public FinishAction()
|
||||
{
|
||||
this(VALUE_SMALL_ICON);
|
||||
}
|
||||
|
||||
public FinishAction(String iconPath)
|
||||
{
|
||||
super("Finish", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "finish-command");
|
||||
putValue("ShortDescription", "Finish the activity");
|
||||
putValue("LongDescription", "Finish the activity");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "finish-command";
|
||||
public static final String VALUE_NAME = "Finish";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(70);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Finish the activity";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Finish the activity";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class HelpAction extends DelegateAction
|
||||
{
|
||||
|
||||
public HelpAction()
|
||||
{
|
||||
this("general/Help16.gif");
|
||||
}
|
||||
|
||||
public HelpAction(String iconPath)
|
||||
{
|
||||
super("Help", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "help-command");
|
||||
putValue("ShortDescription", "Help...");
|
||||
putValue("LongDescription", "Provide information which may aid the user.");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "help-command";
|
||||
public static final String VALUE_NAME = "Help";
|
||||
public static final String VALUE_SMALL_ICON = "general/Help16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/Help24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(72);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(112, 0);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Help...";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Provide information which may aid the user.";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import javax.swing.AbstractAction;
|
||||
|
||||
public class HelpMenu extends AbstractAction
|
||||
{
|
||||
|
||||
public HelpMenu()
|
||||
{
|
||||
super("Help");
|
||||
putValue("ActionCommandKey", "help-menu-command");
|
||||
putValue("ShortDescription", "Help operations");
|
||||
putValue("LongDescription", "Help operations");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent actionevent)
|
||||
{
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "help-menu-command";
|
||||
public static final String VALUE_NAME = "Help";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(72);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Help operations";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Help operations";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class NewAction extends DelegateAction
|
||||
{
|
||||
|
||||
public NewAction()
|
||||
{
|
||||
this("general/New16.gif");
|
||||
}
|
||||
|
||||
public NewAction(String iconPath)
|
||||
{
|
||||
super("New", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "new-command");
|
||||
putValue("ShortDescription", "Create a new object.");
|
||||
putValue("LongDescription", "Create a new object.");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "new-command";
|
||||
public static final String VALUE_NAME = "New";
|
||||
public static final String VALUE_SMALL_ICON = "general/New16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/New24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(78);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(78, 2);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Create a new object.";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Create a new object.";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class NextAction extends DelegateAction
|
||||
{
|
||||
|
||||
public NextAction()
|
||||
{
|
||||
this(VALUE_SMALL_ICON);
|
||||
}
|
||||
|
||||
public NextAction(String iconPath)
|
||||
{
|
||||
super("Next >", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "next-command");
|
||||
putValue("ShortDescription", "Select next item");
|
||||
putValue("LongDescription", "Select next item");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "next-command";
|
||||
public static final String VALUE_NAME = "Next >";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(78);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Select next item";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Select next item";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class OkAction extends DelegateAction
|
||||
{
|
||||
|
||||
public OkAction()
|
||||
{
|
||||
this(VALUE_SMALL_ICON);
|
||||
}
|
||||
|
||||
public OkAction(String iconPath)
|
||||
{
|
||||
super("OK", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "ok-command");
|
||||
putValue("ShortDescription", "Acknowleges the action");
|
||||
putValue("LongDescription", "Acknowleges the action");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "ok-command";
|
||||
public static final String VALUE_NAME = "OK";
|
||||
public static final String VALUE_SMALL_ICON = null;
|
||||
public static final String VALUE_LARGE_ICON = null;
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(79);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = null;
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Acknowleges the action";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Acknowleges the action";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class OpenAction extends DelegateAction
|
||||
{
|
||||
|
||||
public OpenAction()
|
||||
{
|
||||
this("general/Open16.gif");
|
||||
}
|
||||
|
||||
public OpenAction(String iconPath)
|
||||
{
|
||||
super("Open...", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "open-command");
|
||||
putValue("ShortDescription", "Open the specified object.");
|
||||
putValue("LongDescription", "Open the specified object.");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "open-command";
|
||||
public static final String VALUE_NAME = "Open...";
|
||||
public static final String VALUE_SMALL_ICON = "general/Open16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/Open24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(79);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(79, 2);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Open the specified object.";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Open the specified object.";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class SaveAction extends DelegateAction
|
||||
{
|
||||
|
||||
public SaveAction()
|
||||
{
|
||||
this("general/Save16.gif");
|
||||
}
|
||||
|
||||
public SaveAction(String iconPath)
|
||||
{
|
||||
super("Save", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "save-command");
|
||||
putValue("ShortDescription", "Commit changes to a permanent storage area");
|
||||
putValue("LongDescription", "Commit changes to a permanent storage area");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
putValue("AcceleratorKey", VALUE_ACCELERATOR);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "save-command";
|
||||
public static final String VALUE_NAME = "Save";
|
||||
public static final String VALUE_SMALL_ICON = "general/Save16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/Save24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(83);
|
||||
public static final KeyStroke VALUE_ACCELERATOR = KeyStroke.getKeyStroke(83, 2);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Commit changes to a permanent storage area";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Commit changes to a permanent storage area";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction, ActionManager
|
||||
|
||||
public class SaveAsAction extends DelegateAction
|
||||
{
|
||||
|
||||
public SaveAsAction()
|
||||
{
|
||||
this("general/SaveAs16.gif");
|
||||
}
|
||||
|
||||
public SaveAsAction(String iconPath)
|
||||
{
|
||||
super("Save As", ActionManager.getIcon(iconPath));
|
||||
putValue("ActionCommandKey", "save-as-command");
|
||||
putValue("ShortDescription", "Save as a new file");
|
||||
putValue("LongDescription", "Saves the current object as another object");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "save-as-command";
|
||||
public static final String VALUE_NAME = "Save As";
|
||||
public static final String VALUE_SMALL_ICON = "general/SaveAs16.gif";
|
||||
public static final String VALUE_LARGE_ICON = "general/SaveAs24.gif";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(65);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "Save as a new file";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "Saves the current object as another object";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
import javax.swing.Icon;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.action:
|
||||
// DelegateAction
|
||||
|
||||
public abstract class StateChangeAction extends DelegateAction
|
||||
implements ItemListener
|
||||
{
|
||||
|
||||
public StateChangeAction(String name)
|
||||
{
|
||||
super(name, null);
|
||||
selected = false;
|
||||
}
|
||||
|
||||
public StateChangeAction(String name, Icon icon)
|
||||
{
|
||||
super(name, icon);
|
||||
selected = false;
|
||||
}
|
||||
|
||||
public boolean isSelected()
|
||||
{
|
||||
return selected;
|
||||
}
|
||||
|
||||
public synchronized void setSelected(boolean newValue)
|
||||
{
|
||||
boolean oldValue = selected;
|
||||
if(oldValue != newValue)
|
||||
{
|
||||
selected = newValue;
|
||||
firePropertyChange("selected", Boolean.valueOf(oldValue), Boolean.valueOf(newValue));
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemListener(ItemListener listener)
|
||||
{
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
public ItemListener getItemListener()
|
||||
{
|
||||
return listener;
|
||||
}
|
||||
|
||||
public void itemStateChanged(ItemEvent evt)
|
||||
{
|
||||
if(evt.getStateChange() == 1)
|
||||
setSelected(true);
|
||||
else
|
||||
setSelected(false);
|
||||
if(listener != null)
|
||||
listener.itemStateChanged(evt);
|
||||
}
|
||||
|
||||
protected boolean selected;
|
||||
private ItemListener listener;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.action;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import javax.swing.AbstractAction;
|
||||
|
||||
public class ViewMenu extends AbstractAction
|
||||
{
|
||||
|
||||
public ViewMenu()
|
||||
{
|
||||
super("View");
|
||||
putValue("ActionCommandKey", "view-menu-command");
|
||||
putValue("ShortDescription", "View operations");
|
||||
putValue("LongDescription", "View operations");
|
||||
putValue("MnemonicKey", VALUE_MNEMONIC);
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent actionevent)
|
||||
{
|
||||
}
|
||||
|
||||
public static final String VALUE_COMMAND = "view-menu-command";
|
||||
public static final String VALUE_NAME = "View";
|
||||
public static final Integer VALUE_MNEMONIC = new Integer(86);
|
||||
public static final String VALUE_SHORT_DESCRIPTION = "View operations";
|
||||
public static final String VALUE_LONG_DESCRIPTION = "View operations";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import com.sun.java.swing.action.ActionManager;
|
||||
import com.sun.java.swing.action.StateChangeAction;
|
||||
import javax.swing.*;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.ui:
|
||||
// ToggleActionPropertyChangeListener, StatusBar
|
||||
|
||||
public abstract class CommonMenuBar extends JMenuBar
|
||||
{
|
||||
|
||||
protected CommonMenuBar(ActionManager manager)
|
||||
{
|
||||
this(manager, StatusBar.getInstance());
|
||||
}
|
||||
|
||||
protected CommonMenuBar(ActionManager manager, StatusBar status)
|
||||
{
|
||||
this.manager = manager;
|
||||
statusBar = status;
|
||||
configureMenu();
|
||||
}
|
||||
|
||||
protected abstract void configureMenu();
|
||||
|
||||
protected void configureToggleMenuItem(JMenuItem menuItem, Action action)
|
||||
{
|
||||
configureMenuItem(menuItem, action);
|
||||
action.addPropertyChangeListener(new ToggleActionPropertyChangeListener(menuItem));
|
||||
}
|
||||
|
||||
protected void configureMenuItem(JMenuItem menuItem, Action action)
|
||||
{
|
||||
menuItem.addMouseListener(statusBar);
|
||||
}
|
||||
|
||||
protected JMenu createMenu(String name, char mnemonic)
|
||||
{
|
||||
JMenu menu = new JMenu(name);
|
||||
menu.setMnemonic(mnemonic);
|
||||
return menu;
|
||||
}
|
||||
|
||||
protected void addMenuItem(JMenu menu, Action action)
|
||||
{
|
||||
JMenuItem menuItem = menu.add(action);
|
||||
configureMenuItem(menuItem, action);
|
||||
}
|
||||
|
||||
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a)
|
||||
{
|
||||
addCheckBoxMenuItem(menu, a, false);
|
||||
}
|
||||
|
||||
protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected)
|
||||
{
|
||||
JCheckBoxMenuItem mi = new JCheckBoxMenuItem(a);
|
||||
mi.addItemListener(a);
|
||||
mi.setSelected(selected);
|
||||
menu.add(mi);
|
||||
configureToggleMenuItem(mi, a);
|
||||
}
|
||||
|
||||
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a)
|
||||
{
|
||||
addRadioButtonMenuItem(menu, group, a, false);
|
||||
}
|
||||
|
||||
protected void addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected)
|
||||
{
|
||||
JRadioButtonMenuItem mi = new JRadioButtonMenuItem(a);
|
||||
mi.addItemListener(a);
|
||||
mi.setSelected(selected);
|
||||
menu.add(mi);
|
||||
if(group != null)
|
||||
group.add(mi);
|
||||
configureToggleMenuItem(mi, a);
|
||||
}
|
||||
|
||||
protected ActionManager manager;
|
||||
private StatusBar statusBar;
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import com.sun.java.swing.action.ActionManager;
|
||||
import com.sun.java.swing.action.StateChangeAction;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Insets;
|
||||
import javax.swing.*;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.ui:
|
||||
// ToggleActionPropertyChangeListener, StatusBar, CommonUI
|
||||
|
||||
public abstract class CommonToolBar extends JToolBar
|
||||
{
|
||||
|
||||
protected CommonToolBar(ActionManager manager)
|
||||
{
|
||||
this(manager, StatusBar.getInstance());
|
||||
}
|
||||
|
||||
protected CommonToolBar(ActionManager manager, StatusBar status)
|
||||
{
|
||||
this.manager = manager;
|
||||
statusBar = status;
|
||||
buttonSize = new Dimension(CommonUI.buttconPrefSize);
|
||||
buttonInsets = new Insets(0, 0, 0, 0);
|
||||
addComponents();
|
||||
}
|
||||
|
||||
protected abstract void addComponents();
|
||||
|
||||
protected void addButton(Action action)
|
||||
{
|
||||
javax.swing.JButton button = add(action);
|
||||
configureButton(button, action);
|
||||
}
|
||||
|
||||
protected void addToggleButton(StateChangeAction a)
|
||||
{
|
||||
addToggleButton(a, null);
|
||||
}
|
||||
|
||||
protected void addToggleButton(StateChangeAction a, ButtonGroup group)
|
||||
{
|
||||
JToggleButton button = new JToggleButton(a);
|
||||
button.addItemListener(a);
|
||||
button.setSelected(a.isSelected());
|
||||
if(group != null)
|
||||
group.add(button);
|
||||
add(button);
|
||||
configureToggleButton(button, a);
|
||||
}
|
||||
|
||||
protected void configureToggleButton(JToggleButton button, Action action)
|
||||
{
|
||||
configureButton(button, action);
|
||||
action.addPropertyChangeListener(new ToggleActionPropertyChangeListener(button));
|
||||
}
|
||||
|
||||
protected void configureButton(AbstractButton button, Action action)
|
||||
{
|
||||
button.setToolTipText((String)action.getValue("Name"));
|
||||
button.setText("");
|
||||
button.addMouseListener(statusBar);
|
||||
}
|
||||
|
||||
protected ActionManager manager;
|
||||
private Dimension buttonSize;
|
||||
private Insets buttonInsets;
|
||||
private StatusBar statusBar;
|
||||
}
|
||||
@@ -0,0 +1,392 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.KeyListener;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.Vector;
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.text.*;
|
||||
|
||||
public class CommonUI
|
||||
{
|
||||
private static class NumberDocument extends PlainDocument
|
||||
{
|
||||
|
||||
public void insertString(int offs, String str, AttributeSet atts)
|
||||
throws BadLocationException
|
||||
{
|
||||
if(!Character.isDigit(str.charAt(0)))
|
||||
{
|
||||
return;
|
||||
} else
|
||||
{
|
||||
super.insertString(offs, str, atts);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private NumberDocument()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public CommonUI()
|
||||
{
|
||||
}
|
||||
|
||||
public static JLabel createLabel(String text, int mnemonic, Component comp)
|
||||
{
|
||||
JLabel label = new JLabel(" " + text);
|
||||
label.setMinimumSize(labelPrefSize);
|
||||
if(mnemonic != -1)
|
||||
label.setDisplayedMnemonic(mnemonic);
|
||||
if(comp != null)
|
||||
label.setLabelFor(comp);
|
||||
if(text.length() == 0)
|
||||
label.setPreferredSize(labelPrefSize);
|
||||
return label;
|
||||
}
|
||||
|
||||
public static JLabel createLabel(String text)
|
||||
{
|
||||
return createLabel(text, -1, null);
|
||||
}
|
||||
|
||||
public static JTextField createTextField(String text, KeyListener listener, boolean numbers)
|
||||
{
|
||||
JTextField field = new JTextField(text);
|
||||
field.setMinimumSize(textPrefSize);
|
||||
if(text.length() == 0)
|
||||
field.setPreferredSize(textPrefSize);
|
||||
if(listener != null)
|
||||
field.addKeyListener(listener);
|
||||
if(numbers)
|
||||
field.setDocument(new NumberDocument());
|
||||
return field;
|
||||
}
|
||||
|
||||
public static JTextField createTextField(String text, boolean numbers)
|
||||
{
|
||||
return createTextField(text, null, numbers);
|
||||
}
|
||||
|
||||
public static JTextField createTextField(String text, KeyListener listener)
|
||||
{
|
||||
return createTextField(text, listener, false);
|
||||
}
|
||||
|
||||
public static JTextField createTextField(String text)
|
||||
{
|
||||
return createTextField(text, null, false);
|
||||
}
|
||||
|
||||
public static JRadioButton createRadioButton(String text, int mnemonic, ActionListener listener, boolean selected)
|
||||
{
|
||||
JRadioButton button = new JRadioButton(text);
|
||||
button.setMnemonic(mnemonic);
|
||||
button.setSelected(selected);
|
||||
button.setMinimumSize(labelPrefSize);
|
||||
if(listener != null)
|
||||
button.addActionListener(listener);
|
||||
if(text.length() == 0)
|
||||
button.setPreferredSize(labelPrefSize);
|
||||
return button;
|
||||
}
|
||||
|
||||
public static JRadioButton createRadioButton(String text, int mnemonic, boolean selected)
|
||||
{
|
||||
return createRadioButton(text, mnemonic, null, selected);
|
||||
}
|
||||
|
||||
public static JRadioButton createRadioButton(String text, int mnemonic, ActionListener listener)
|
||||
{
|
||||
return createRadioButton(text, mnemonic, listener, false);
|
||||
}
|
||||
|
||||
public static JRadioButton createRadioButton(String text, int mnemonic)
|
||||
{
|
||||
return createRadioButton(text, mnemonic, null, false);
|
||||
}
|
||||
|
||||
public static JRadioButton createRadioButton(String text)
|
||||
{
|
||||
return createRadioButton(text, -1, null, false);
|
||||
}
|
||||
|
||||
public static JCheckBox createCheckBox(String text, int mnemonic, ActionListener listener, boolean selected)
|
||||
{
|
||||
JCheckBox checkbox = new JCheckBox(text);
|
||||
checkbox.setMinimumSize(labelPrefSize);
|
||||
if(mnemonic != -1)
|
||||
checkbox.setMnemonic(mnemonic);
|
||||
checkbox.setSelected(selected);
|
||||
if(text.length() == 0)
|
||||
checkbox.setPreferredSize(labelPrefSize);
|
||||
if(listener != null)
|
||||
checkbox.addActionListener(listener);
|
||||
return checkbox;
|
||||
}
|
||||
|
||||
public static JCheckBox createCheckBox(String text, int mnemonic, ActionListener listener)
|
||||
{
|
||||
return createCheckBox(text, mnemonic, listener, false);
|
||||
}
|
||||
|
||||
public static JCheckBox createCheckBox(String text, int mnemonic, boolean selected)
|
||||
{
|
||||
return createCheckBox(text, mnemonic, null, selected);
|
||||
}
|
||||
|
||||
public static JCheckBox createCheckBox(String text, int mnemonic)
|
||||
{
|
||||
return createCheckBox(text, mnemonic, null, false);
|
||||
}
|
||||
|
||||
public static JCheckBox createCheckBox(String text)
|
||||
{
|
||||
return createCheckBox(text, -1, null, false);
|
||||
}
|
||||
|
||||
public static JComboBox createComboBox(Object items[], ActionListener listener, boolean editable)
|
||||
{
|
||||
JComboBox comboBox = new JComboBox(items);
|
||||
if(listener != null)
|
||||
comboBox.addActionListener(listener);
|
||||
comboBox.setEditable(editable);
|
||||
return comboBox;
|
||||
}
|
||||
|
||||
public static JComboBox createComboBox(Object items[], boolean editable)
|
||||
{
|
||||
return createComboBox(items, null, editable);
|
||||
}
|
||||
|
||||
public static JComboBox createComboBox(Vector items, ActionListener listener, boolean editable)
|
||||
{
|
||||
JComboBox comboBox = new JComboBox(items);
|
||||
if(listener != null)
|
||||
comboBox.addActionListener(listener);
|
||||
comboBox.setEditable(editable);
|
||||
return comboBox;
|
||||
}
|
||||
|
||||
public static JComboBox createComboBox(Vector items, boolean editable)
|
||||
{
|
||||
return createComboBox(items, null, editable);
|
||||
}
|
||||
|
||||
public static JButton createButton(Action action)
|
||||
{
|
||||
JButton button = new JButton(action);
|
||||
setButtonSize(button, buttonPrefSize);
|
||||
return button;
|
||||
}
|
||||
|
||||
public static JButton createButton(String text, ActionListener listener, int mnemonic)
|
||||
{
|
||||
JButton button = new JButton(text);
|
||||
if(listener != null)
|
||||
button.addActionListener(listener);
|
||||
if(mnemonic != -1)
|
||||
button.setMnemonic(mnemonic);
|
||||
setButtonSize(button, buttonPrefSize);
|
||||
return button;
|
||||
}
|
||||
|
||||
private static void setButtonSize(JButton button, Dimension size)
|
||||
{
|
||||
String text = button.getText();
|
||||
button.setMinimumSize(size);
|
||||
if(text.length() == 0)
|
||||
{
|
||||
button.setPreferredSize(size);
|
||||
} else
|
||||
{
|
||||
Dimension psize = button.getPreferredSize();
|
||||
if(psize.width < size.width)
|
||||
button.setPreferredSize(size);
|
||||
}
|
||||
}
|
||||
|
||||
public static JButton createButton(String text, ActionListener listener)
|
||||
{
|
||||
return createButton(text, listener, -1);
|
||||
}
|
||||
|
||||
public static JButton createSmallButton(String text, ActionListener listener, int mnemonic)
|
||||
{
|
||||
JButton button = createButton(text, listener, mnemonic);
|
||||
setButtonSize(button, smbuttonPrefSize);
|
||||
return button;
|
||||
}
|
||||
|
||||
public static JButton createSmallButton(String text, ActionListener listener)
|
||||
{
|
||||
return createSmallButton(text, listener, -1);
|
||||
}
|
||||
|
||||
public static Border createBorder(String text)
|
||||
{
|
||||
Border border = BorderFactory.createEtchedBorder();
|
||||
return BorderFactory.createTitledBorder(border, text, 0, 2);
|
||||
}
|
||||
|
||||
public static Border createBorder()
|
||||
{
|
||||
return BorderFactory.createEmptyBorder(4, 4, 4, 4);
|
||||
}
|
||||
|
||||
public static JScrollPane createListPane(JList list, String text)
|
||||
{
|
||||
JScrollPane pane = new JScrollPane(list);
|
||||
pane.setBorder(BorderFactory.createCompoundBorder(createBorder(text), BorderFactory.createLoweredBevelBorder()));
|
||||
return pane;
|
||||
}
|
||||
|
||||
public static void centerComponent(Component source, Component parent)
|
||||
{
|
||||
Dimension dim = source.getSize();
|
||||
Rectangle rect;
|
||||
if(parent != null)
|
||||
{
|
||||
rect = parent.getBounds();
|
||||
} else
|
||||
{
|
||||
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
|
||||
rect = new Rectangle(0, 0, d.width, d.height);
|
||||
}
|
||||
int x = rect.x + (rect.width - dim.width) / 2;
|
||||
int y = rect.y + (rect.height - dim.height) / 2;
|
||||
source.setLocation(x, y);
|
||||
}
|
||||
|
||||
public static void centerComponent(Component source)
|
||||
{
|
||||
centerComponent(source, null);
|
||||
}
|
||||
|
||||
public static JFrame getParentFrame(Component source)
|
||||
{
|
||||
Container parent;
|
||||
for(parent = source.getParent(); parent != null; parent = parent.getParent())
|
||||
if(parent instanceof JFrame)
|
||||
break;
|
||||
|
||||
if(parent == null)
|
||||
return null;
|
||||
else
|
||||
return (JFrame)parent;
|
||||
}
|
||||
|
||||
public static Integer msToSec(Integer ms)
|
||||
{
|
||||
int value = ms.intValue();
|
||||
value /= 1000;
|
||||
return new Integer(value);
|
||||
}
|
||||
|
||||
public static Integer secToMs(Integer sec)
|
||||
{
|
||||
int value = sec.intValue();
|
||||
value *= 1000;
|
||||
return new Integer(value);
|
||||
}
|
||||
|
||||
public static String stringFromStringArray(String strings[], String delim)
|
||||
{
|
||||
String string = "";
|
||||
String separator;
|
||||
if(delim == null || delim.equals(""))
|
||||
separator = " ";
|
||||
else
|
||||
separator = delim;
|
||||
for(int i = 0; i < strings.length; i++)
|
||||
{
|
||||
string = string + strings[i];
|
||||
string = string + separator;
|
||||
}
|
||||
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String stringFromStringArray(String strings[])
|
||||
{
|
||||
return stringFromStringArray(strings, "");
|
||||
}
|
||||
|
||||
public static String[] stringArrayFromString(String string, String delim)
|
||||
{
|
||||
StringTokenizer st;
|
||||
if(delim == null || delim.equals(""))
|
||||
st = new StringTokenizer(string);
|
||||
else
|
||||
st = new StringTokenizer(string, delim);
|
||||
int numTokens = st.countTokens();
|
||||
String strings[] = new String[numTokens];
|
||||
int index = 0;
|
||||
while(st.hasMoreTokens())
|
||||
strings[index++] = st.nextToken();
|
||||
return strings;
|
||||
}
|
||||
|
||||
public static String[] stringArrayFromString(String string)
|
||||
{
|
||||
return stringArrayFromString(string, "");
|
||||
}
|
||||
|
||||
public static void setWaitCursor(Component comp)
|
||||
{
|
||||
comp.setCursor(Cursor.getPredefinedCursor(3));
|
||||
}
|
||||
|
||||
public static void setDefaultCursor(Component comp)
|
||||
{
|
||||
comp.setCursor(Cursor.getPredefinedCursor(0));
|
||||
}
|
||||
|
||||
public static final int BUTTON_WIDTH = 100;
|
||||
public static final int BUTTON_HEIGHT = 26;
|
||||
public static final int BUTTCON_WIDTH = 28;
|
||||
public static final int BUTTCON_HEIGHT = 28;
|
||||
public static final int SM_BUTTON_WIDTH = 72;
|
||||
public static final int SM_BUTTON_HEIGHT = 26;
|
||||
public static final int LABEL_WIDTH = 100;
|
||||
public static final int LABEL_HEIGHT = 20;
|
||||
public static final int TEXT_WIDTH = 150;
|
||||
public static final int TEXT_HEIGHT = 20;
|
||||
public static Dimension buttonPrefSize = new Dimension(100, 26);
|
||||
public static Dimension buttconPrefSize = new Dimension(28, 28);
|
||||
public static Dimension smbuttonPrefSize = new Dimension(72, 26);
|
||||
public static Dimension labelPrefSize = new Dimension(100, 20);
|
||||
public static Dimension textPrefSize = new Dimension(150, 20);
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@@ -22,46 +22,30 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "incls/_precompiled.incl"
|
||||
#include "incls/_assembler_windows_x86_64.cpp.incl"
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import com.sun.java.swing.action.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.ui:
|
||||
// CommonUI
|
||||
|
||||
public class OkCancelButtonPanel extends JPanel
|
||||
{
|
||||
|
||||
public OkCancelButtonPanel(ActionListener listener)
|
||||
{
|
||||
DelegateAction okAction = new OkAction();
|
||||
okAction.addActionListener(listener);
|
||||
DelegateAction cancelAction = new CancelAction();
|
||||
cancelAction.addActionListener(listener);
|
||||
add(CommonUI.createButton(okAction));
|
||||
add(CommonUI.createButton(cancelAction));
|
||||
}
|
||||
|
||||
public static final String OK_COMMAND = "ok-command";
|
||||
public static final String CANCEL_COMMAND = "cancel-command";
|
||||
|
||||
void MacroAssembler::int3() {
|
||||
emit_byte(0xCC);
|
||||
}
|
||||
|
||||
// call (Thread*)TlsGetValue(thread_index());
|
||||
void MacroAssembler::get_thread(Register thread) {
|
||||
if (thread != rax) {
|
||||
pushq(rax);
|
||||
}
|
||||
pushq(rdi);
|
||||
pushq(rsi);
|
||||
pushq(rdx);
|
||||
pushq(rcx);
|
||||
pushq(r8);
|
||||
pushq(r9);
|
||||
pushq(r10);
|
||||
// XXX
|
||||
movq(r10, rsp);
|
||||
andq(rsp, -16);
|
||||
pushq(r10);
|
||||
pushq(r11);
|
||||
|
||||
movl(c_rarg0, ThreadLocalStorage::thread_index());
|
||||
call(RuntimeAddress((address)TlsGetValue));
|
||||
|
||||
popq(r11);
|
||||
popq(rsp);
|
||||
popq(r10);
|
||||
popq(r9);
|
||||
popq(r8);
|
||||
popq(rcx);
|
||||
popq(rdx);
|
||||
popq(rsi);
|
||||
popq(rdi);
|
||||
if (thread != rax) {
|
||||
movq(thread, rax);
|
||||
popq(rax);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Container;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.ui:
|
||||
// OkCancelButtonPanel, CommonUI
|
||||
|
||||
public class OkCancelDialog extends JDialog
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public OkCancelDialog(String title, JPanel panel)
|
||||
{
|
||||
this(title, panel, true);
|
||||
}
|
||||
|
||||
public OkCancelDialog(String title, JPanel panel, boolean modal)
|
||||
{
|
||||
setTitle(title);
|
||||
setModal(modal);
|
||||
Container pane = getContentPane();
|
||||
pane.setLayout(new BorderLayout());
|
||||
pane.add(panel, "Center");
|
||||
pane.add(new OkCancelButtonPanel(this), "South");
|
||||
pack();
|
||||
CommonUI.centerComponent(this);
|
||||
}
|
||||
|
||||
public boolean isOk()
|
||||
{
|
||||
return okPressed;
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
String command = evt.getActionCommand();
|
||||
if(command.equals("ok-command"))
|
||||
{
|
||||
okPressed = true;
|
||||
setVisible(false);
|
||||
dispose();
|
||||
} else
|
||||
if(command.equals("cancel-command"))
|
||||
{
|
||||
okPressed = false;
|
||||
setVisible(false);
|
||||
dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private boolean okPressed;
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
public class SplashScreen extends Window
|
||||
{
|
||||
|
||||
public SplashScreen(Frame f)
|
||||
{
|
||||
super(f);
|
||||
setBackground(Color.white);
|
||||
java.net.URL url = getClass().getResource("/images/SplashScreen.jpg");
|
||||
if(url != null)
|
||||
{
|
||||
screen = new ImageIcon(url);
|
||||
MediaTracker mt = new MediaTracker(this);
|
||||
mt.addImage(screen.getImage(), 0);
|
||||
try
|
||||
{
|
||||
mt.waitForAll();
|
||||
}
|
||||
catch(Exception ex) { }
|
||||
}
|
||||
}
|
||||
|
||||
public void setVisible(boolean val)
|
||||
{
|
||||
if(screen == null)
|
||||
return;
|
||||
if(val)
|
||||
{
|
||||
setSize(screen.getIconWidth(), screen.getIconHeight());
|
||||
setLocation(-500, -500);
|
||||
super.setVisible(true);
|
||||
Dimension d = getToolkit().getScreenSize();
|
||||
Insets i = getInsets();
|
||||
int w = screen.getIconWidth() + i.left + i.right;
|
||||
int h = screen.getIconHeight() + i.top + i.bottom;
|
||||
setSize(w, h);
|
||||
setLocation(d.width / 2 - w / 2, d.height / 2 - h / 2);
|
||||
} else
|
||||
{
|
||||
super.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void paint(Graphics g)
|
||||
{
|
||||
if(screen != null)
|
||||
{
|
||||
Dimension d = getSize();
|
||||
g.setColor(Color.black);
|
||||
g.drawRect(0, 0, d.width - 1, d.height - 1);
|
||||
g.drawImage(screen.getImage(), 1, 1, this);
|
||||
}
|
||||
}
|
||||
|
||||
private ImageIcon screen;
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class StatusBar extends JPanel
|
||||
implements ActionListener, MouseListener
|
||||
{
|
||||
|
||||
public StatusBar()
|
||||
{
|
||||
setLayout(new FlowLayout(0));
|
||||
setBorder(BorderFactory.createEtchedBorder());
|
||||
progressBar = new JProgressBar(0, 0, 100);
|
||||
progressBar.setPreferredSize(new Dimension(60, progressBar.getPreferredSize().height + 2));
|
||||
progressBar.setVisible(false);
|
||||
label = new JLabel(" ");
|
||||
preferredSize = new Dimension(getWidth(label.getText()), 2 * getFontHeight());
|
||||
add(progressBar);
|
||||
add(label);
|
||||
}
|
||||
|
||||
public static StatusBar getInstance()
|
||||
{
|
||||
if(statusBar == null)
|
||||
statusBar = new StatusBar();
|
||||
return statusBar;
|
||||
}
|
||||
|
||||
public static void setInstance(StatusBar sb)
|
||||
{
|
||||
statusBar = sb;
|
||||
}
|
||||
|
||||
protected int getWidth(String s)
|
||||
{
|
||||
FontMetrics fm = getFontMetrics(getFont());
|
||||
if(fm == null)
|
||||
return 0;
|
||||
else
|
||||
return fm.stringWidth(s);
|
||||
}
|
||||
|
||||
protected int getFontHeight()
|
||||
{
|
||||
FontMetrics fm = getFontMetrics(getFont());
|
||||
if(fm == null)
|
||||
return 0;
|
||||
else
|
||||
return fm.getHeight();
|
||||
}
|
||||
|
||||
public Dimension getPreferredSize()
|
||||
{
|
||||
return preferredSize;
|
||||
}
|
||||
|
||||
public void setMessage(String message)
|
||||
{
|
||||
label.setText(message);
|
||||
label.repaint();
|
||||
}
|
||||
|
||||
public void startBusyBar()
|
||||
{
|
||||
forward = true;
|
||||
if(timer == null)
|
||||
{
|
||||
setMessage("");
|
||||
progressBar.setVisible(true);
|
||||
timer = new Timer(15, this);
|
||||
timer.start();
|
||||
}
|
||||
}
|
||||
|
||||
public void stopBusyBar()
|
||||
{
|
||||
if(timer != null)
|
||||
{
|
||||
timer.stop();
|
||||
timer = null;
|
||||
}
|
||||
setMessage("");
|
||||
progressBar.setVisible(false);
|
||||
progressBar.setValue(0);
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
int value = progressBar.getValue();
|
||||
if(forward)
|
||||
{
|
||||
if(value < 100)
|
||||
{
|
||||
progressBar.setValue(value + 1);
|
||||
} else
|
||||
{
|
||||
forward = false;
|
||||
progressBar.setValue(value - 1);
|
||||
}
|
||||
} else
|
||||
if(value > 0)
|
||||
{
|
||||
progressBar.setValue(value - 1);
|
||||
} else
|
||||
{
|
||||
forward = true;
|
||||
progressBar.setValue(value + 1);
|
||||
}
|
||||
}
|
||||
|
||||
public void mouseClicked(MouseEvent mouseevent)
|
||||
{
|
||||
}
|
||||
|
||||
public void mousePressed(MouseEvent mouseevent)
|
||||
{
|
||||
}
|
||||
|
||||
public void mouseReleased(MouseEvent mouseevent)
|
||||
{
|
||||
}
|
||||
|
||||
public void mouseExited(MouseEvent evt)
|
||||
{
|
||||
setMessage("");
|
||||
}
|
||||
|
||||
public void mouseEntered(MouseEvent evt)
|
||||
{
|
||||
if(evt.getSource() instanceof AbstractButton)
|
||||
{
|
||||
AbstractButton button = (AbstractButton)evt.getSource();
|
||||
Action action = button.getAction();
|
||||
if(action != null)
|
||||
{
|
||||
String message = (String)action.getValue("LongDescription");
|
||||
setMessage(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static final int PROGRESS_MAX = 100;
|
||||
private static final int PROGRESS_MIN = 0;
|
||||
private JLabel label;
|
||||
private Dimension preferredSize;
|
||||
private JProgressBar progressBar;
|
||||
private Timer timer;
|
||||
private boolean forward;
|
||||
private static StatusBar statusBar;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import com.sun.java.swing.action.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.Vector;
|
||||
import javax.swing.*;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.ui:
|
||||
// CommonUI
|
||||
|
||||
public class TabsDlg extends JDialog
|
||||
{
|
||||
private class ApplyListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
if(applyListener != null)
|
||||
{
|
||||
applyListener.actionPerformed(evt);
|
||||
enableApplyButton(false);
|
||||
}
|
||||
}
|
||||
|
||||
private ApplyListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class CancelListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
if(cancelListener != null)
|
||||
cancelListener.actionPerformed(evt);
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
private CancelListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class OkListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
if(okListener != null)
|
||||
okListener.actionPerformed(evt);
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
private OkListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public TabsDlg(String title, Vector panels)
|
||||
{
|
||||
super(new JFrame(), title, true);
|
||||
okListener = null;
|
||||
cancelListener = null;
|
||||
applyListener = null;
|
||||
Container pane = getContentPane();
|
||||
pane.setLayout(new BorderLayout());
|
||||
tabsPanel = new JTabbedPane();
|
||||
int numPanels = panels.size();
|
||||
for(int i = 0; i < numPanels; i++)
|
||||
{
|
||||
JPanel panel = (JPanel)panels.elementAt(i);
|
||||
tabsPanel.addTab(panel.getName(), panel);
|
||||
}
|
||||
|
||||
pane.add(tabsPanel, "Center");
|
||||
pane.add(createButtonPanel(), "South");
|
||||
pack();
|
||||
CommonUI.centerComponent(this);
|
||||
}
|
||||
|
||||
public static void main(String args[])
|
||||
{
|
||||
JPanel p1 = new JPanel();
|
||||
p1.add(new JButton("One"));
|
||||
p1.setName("One");
|
||||
JPanel p2 = new JPanel();
|
||||
p2.add(new JButton("Two"));
|
||||
p2.setName("Two");
|
||||
JPanel p3 = new JPanel();
|
||||
p3.add(new JButton("Three"));
|
||||
p3.setName("Three");
|
||||
JPanel p4 = new JPanel();
|
||||
p4.add(new JButton("Four"));
|
||||
p4.setName("Four");
|
||||
Vector panels = new Vector();
|
||||
panels.addElement(p1);
|
||||
panels.addElement(p2);
|
||||
panels.addElement(p3);
|
||||
panels.addElement(p4);
|
||||
tabsDlg = new TabsDlg("Test Dialog", panels);
|
||||
tabsDlg.addOkListener(new ActionListener() {
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
tabsDlg.addCancelListener(new ActionListener() {
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
tabsDlg.setVisible(true);
|
||||
}
|
||||
|
||||
private JPanel createButtonPanel()
|
||||
{
|
||||
JPanel panel = new JPanel();
|
||||
okAction = new OkAction();
|
||||
cancelAction = new CancelAction();
|
||||
applyAction = new ApplyAction();
|
||||
okAction.addActionListener(new OkListener());
|
||||
cancelAction.addActionListener(new CancelListener());
|
||||
applyAction.addActionListener(new ApplyListener());
|
||||
panel.add(CommonUI.createButton(okAction));
|
||||
panel.add(CommonUI.createButton(cancelAction));
|
||||
panel.add(CommonUI.createButton(applyAction));
|
||||
JPanel p2 = new JPanel(new BorderLayout());
|
||||
p2.add(panel, "Center");
|
||||
p2.add(new JSeparator(), "North");
|
||||
return p2;
|
||||
}
|
||||
|
||||
public void enableApplyButton(boolean enabled)
|
||||
{
|
||||
applyAction.setEnabled(enabled);
|
||||
}
|
||||
|
||||
public synchronized void addOkListener(ActionListener l)
|
||||
{
|
||||
okListener = AWTEventMulticaster.add(okListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeOkListener(ActionListener l)
|
||||
{
|
||||
okListener = AWTEventMulticaster.remove(okListener, l);
|
||||
}
|
||||
|
||||
public synchronized void addCancelListener(ActionListener l)
|
||||
{
|
||||
cancelListener = AWTEventMulticaster.add(cancelListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeCancelListener(ActionListener l)
|
||||
{
|
||||
cancelListener = AWTEventMulticaster.remove(cancelListener, l);
|
||||
}
|
||||
|
||||
public synchronized void addApplyListener(ActionListener l)
|
||||
{
|
||||
applyListener = AWTEventMulticaster.add(applyListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeApplyListener(ActionListener l)
|
||||
{
|
||||
applyListener = AWTEventMulticaster.remove(applyListener, l);
|
||||
}
|
||||
|
||||
private JTabbedPane tabsPanel;
|
||||
private DelegateAction okAction;
|
||||
private DelegateAction cancelAction;
|
||||
private DelegateAction applyAction;
|
||||
private ActionListener okListener;
|
||||
private ActionListener cancelListener;
|
||||
private ActionListener applyListener;
|
||||
private static TabsDlg tabsDlg;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import javax.swing.AbstractButton;
|
||||
|
||||
public class ToggleActionPropertyChangeListener
|
||||
implements PropertyChangeListener
|
||||
{
|
||||
|
||||
public ToggleActionPropertyChangeListener(AbstractButton button)
|
||||
{
|
||||
this.button = button;
|
||||
}
|
||||
|
||||
public void propertyChange(PropertyChangeEvent evt)
|
||||
{
|
||||
String propertyName = evt.getPropertyName();
|
||||
if(propertyName.equals("selected"))
|
||||
{
|
||||
Boolean selected = (Boolean)evt.getNewValue();
|
||||
button.setSelected(selected.booleanValue());
|
||||
}
|
||||
}
|
||||
|
||||
private AbstractButton button;
|
||||
}
|
||||
@@ -0,0 +1,336 @@
|
||||
/*
|
||||
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.java.swing.ui;
|
||||
|
||||
import com.sun.java.swing.action.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.Vector;
|
||||
import javax.swing.*;
|
||||
|
||||
// Referenced classes of package com.sun.java.swing.ui:
|
||||
// CommonUI
|
||||
|
||||
public class WizardDlg extends JDialog
|
||||
{
|
||||
private class CancelListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
if(cancelListener != null)
|
||||
cancelListener.actionPerformed(evt);
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
private CancelListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class FinishListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
if(finishListener != null)
|
||||
finishListener.actionPerformed(evt);
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
private FinishListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class NextListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
cardShowing++;
|
||||
if(cardShowing > numCards)
|
||||
cardShowing = numCards;
|
||||
else
|
||||
panesLayout.next(panesPanel);
|
||||
if(nextListener != null)
|
||||
nextListener.actionPerformed(evt);
|
||||
enableBackNextButtons();
|
||||
}
|
||||
|
||||
private NextListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private class BackListener
|
||||
implements ActionListener
|
||||
{
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
cardShowing--;
|
||||
if(cardShowing < 1)
|
||||
cardShowing = 1;
|
||||
else
|
||||
panesLayout.previous(panesPanel);
|
||||
if(backListener != null)
|
||||
backListener.actionPerformed(evt);
|
||||
enableBackNextButtons();
|
||||
}
|
||||
|
||||
private BackListener()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public WizardDlg(JFrame frame, String title, Vector panels, Vector images)
|
||||
{
|
||||
super(frame, title, true);
|
||||
this.title = title;
|
||||
this.images = images;
|
||||
Container pane = getContentPane();
|
||||
pane.setLayout(new BorderLayout());
|
||||
panesLayout = new CardLayout();
|
||||
panesPanel = new JPanel(panesLayout);
|
||||
pane.add(panesPanel, "Center");
|
||||
pane.add(createButtonPanel(), "South");
|
||||
setPanels(panels);
|
||||
pack();
|
||||
CommonUI.centerComponent(this);
|
||||
}
|
||||
|
||||
public WizardDlg(JFrame frame, String title, Vector panels)
|
||||
{
|
||||
this(frame, title, panels, null);
|
||||
}
|
||||
|
||||
public WizardDlg(String title, Vector panels)
|
||||
{
|
||||
this(new JFrame(), title, panels, null);
|
||||
}
|
||||
|
||||
public void setPanels(Vector panels)
|
||||
{
|
||||
numCards = panels.size();
|
||||
cardShowing = 1;
|
||||
this.panels = panels;
|
||||
panesPanel.removeAll();
|
||||
for(int i = 0; i < numCards; i++)
|
||||
panesPanel.add((JPanel)panels.elementAt(i), (new Integer(i)).toString());
|
||||
|
||||
validate();
|
||||
enableBackNextButtons();
|
||||
}
|
||||
|
||||
public void reset()
|
||||
{
|
||||
cardShowing = 1;
|
||||
panesLayout.first(panesPanel);
|
||||
enableBackNextButtons();
|
||||
}
|
||||
|
||||
public void setWestPanel(JPanel panel)
|
||||
{
|
||||
Container pane = getContentPane();
|
||||
pane.add(panel, "West");
|
||||
}
|
||||
|
||||
public static void main(String args[])
|
||||
{
|
||||
JPanel p1 = new JPanel();
|
||||
p1.add(new JButton("One"));
|
||||
JPanel p2 = new JPanel();
|
||||
p2.add(new JButton("Two"));
|
||||
JPanel p3 = new JPanel();
|
||||
p3.add(new JButton("Three"));
|
||||
JPanel p4 = new JPanel();
|
||||
p4.add(new JButton("Four"));
|
||||
Vector panels = new Vector();
|
||||
panels.addElement(p1);
|
||||
panels.addElement(p2);
|
||||
panels.addElement(p3);
|
||||
panels.addElement(p4);
|
||||
wizardDlg = new WizardDlg("Test Dialog", panels);
|
||||
wizardDlg.addFinishListener(new ActionListener() {
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
wizardDlg.addCancelListener(new ActionListener() {
|
||||
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
wizardDlg.setVisible(true);
|
||||
}
|
||||
|
||||
private JPanel createButtonPanel()
|
||||
{
|
||||
JPanel panel = new JPanel();
|
||||
backAction = new BackAction();
|
||||
nextAction = new NextAction();
|
||||
finishAction = new FinishAction();
|
||||
cancelAction = new CancelAction();
|
||||
backAction.setEnabled(false);
|
||||
finishAction.setEnabled(false);
|
||||
backAction.addActionListener(new BackListener());
|
||||
nextAction.addActionListener(new NextListener());
|
||||
finishAction.addActionListener(new FinishListener());
|
||||
cancelAction.addActionListener(new CancelListener());
|
||||
panel.add(CommonUI.createButton(backAction));
|
||||
panel.add(CommonUI.createButton(nextAction));
|
||||
panel.add(CommonUI.createButton(finishAction));
|
||||
panel.add(CommonUI.createButton(cancelAction));
|
||||
JPanel p2 = new JPanel(new BorderLayout());
|
||||
p2.add(panel, "Center");
|
||||
p2.add(new JSeparator(), "North");
|
||||
return p2;
|
||||
}
|
||||
|
||||
private void enableBackNextButtons()
|
||||
{
|
||||
if(cardShowing == 1)
|
||||
{
|
||||
backAction.setEnabled(false);
|
||||
finishAction.setEnabled(false);
|
||||
if(numCards > 1)
|
||||
{
|
||||
nextAction.setEnabled(true);
|
||||
} else
|
||||
{
|
||||
finishAction.setEnabled(true);
|
||||
nextAction.setEnabled(false);
|
||||
}
|
||||
} else
|
||||
if(cardShowing == numCards)
|
||||
{
|
||||
nextAction.setEnabled(false);
|
||||
finishAction.setEnabled(true);
|
||||
if(numCards > 1)
|
||||
backAction.setEnabled(true);
|
||||
else
|
||||
backAction.setEnabled(false);
|
||||
} else
|
||||
{
|
||||
backAction.setEnabled(true);
|
||||
nextAction.setEnabled(true);
|
||||
finishAction.setEnabled(false);
|
||||
}
|
||||
setTitle();
|
||||
}
|
||||
|
||||
private void setTitle()
|
||||
{
|
||||
JPanel panel = (JPanel)panels.elementAt(cardShowing - 1);
|
||||
String newTitle = title;
|
||||
String panelTitle = panel.getName();
|
||||
if(panelTitle != null && panelTitle.equals(""))
|
||||
{
|
||||
newTitle = newTitle + " - ";
|
||||
newTitle = newTitle + panelTitle;
|
||||
}
|
||||
super.setTitle(newTitle);
|
||||
}
|
||||
|
||||
public synchronized void addFinishListener(ActionListener l)
|
||||
{
|
||||
finishListener = AWTEventMulticaster.add(finishListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeFinishListener(ActionListener l)
|
||||
{
|
||||
finishListener = AWTEventMulticaster.remove(finishListener, l);
|
||||
}
|
||||
|
||||
public synchronized void addCancelListener(ActionListener l)
|
||||
{
|
||||
cancelListener = AWTEventMulticaster.add(cancelListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeCancelListener(ActionListener l)
|
||||
{
|
||||
cancelListener = AWTEventMulticaster.remove(cancelListener, l);
|
||||
}
|
||||
|
||||
public synchronized void addNextListener(ActionListener l)
|
||||
{
|
||||
nextListener = AWTEventMulticaster.add(nextListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeNextListener(ActionListener l)
|
||||
{
|
||||
nextListener = AWTEventMulticaster.remove(nextListener, l);
|
||||
}
|
||||
|
||||
public synchronized void addBackListener(ActionListener l)
|
||||
{
|
||||
backListener = AWTEventMulticaster.add(backListener, l);
|
||||
}
|
||||
|
||||
public synchronized void removeBackListener(ActionListener l)
|
||||
{
|
||||
backListener = AWTEventMulticaster.remove(backListener, l);
|
||||
}
|
||||
|
||||
private CardLayout panesLayout;
|
||||
private JPanel panesPanel;
|
||||
private DelegateAction backAction;
|
||||
private DelegateAction nextAction;
|
||||
private DelegateAction finishAction;
|
||||
private DelegateAction cancelAction;
|
||||
private ActionListener finishListener;
|
||||
private ActionListener cancelListener;
|
||||
private ActionListener nextListener;
|
||||
private ActionListener backListener;
|
||||
private int numCards;
|
||||
private int cardShowing;
|
||||
private String title;
|
||||
private Vector panels;
|
||||
private Vector images;
|
||||
private static WizardDlg wizardDlg;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
After Width: | Height: | Size: 636 B |
|
After Width: | Height: | Size: 775 B |
|
After Width: | Height: | Size: 644 B |
|
After Width: | Height: | Size: 797 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 249 B |
|
After Width: | Height: | Size: 434 B |
|
After Width: | Height: | Size: 661 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 677 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 661 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 426 B |
|
After Width: | Height: | Size: 778 B |
|
After Width: | Height: | Size: 228 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 255 B |
|
After Width: | Height: | Size: 348 B |
|
After Width: | Height: | Size: 303 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 484 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 184 B |
|
After Width: | Height: | Size: 163 B |
|
After Width: | Height: | Size: 179 B |
|
After Width: | Height: | Size: 165 B |
|
After Width: | Height: | Size: 178 B |
|
After Width: | Height: | Size: 165 B |
|
After Width: | Height: | Size: 178 B |