Compare commits
865 Commits
maintenanc
...
release/5.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72194ae752 | ||
|
|
b4bae1d6fe | ||
|
|
cdb1987563 | ||
|
|
0cfb90e704 | ||
|
|
3a89a8f70c | ||
|
|
14d1cf918c | ||
|
|
5dbbf4355c | ||
|
|
dfdda1fa78 | ||
|
|
2068b4c92b | ||
|
|
a0f11f6306 | ||
|
|
9408850da9 | ||
|
|
12ab02c77c | ||
|
|
1290bba2bc | ||
|
|
b771d41167 | ||
|
|
073a1b6d6e | ||
|
|
de6e63ed40 | ||
|
|
cc9959aedf | ||
|
|
fc2837bb1c | ||
|
|
1e68b00375 | ||
|
|
e6f123e400 | ||
|
|
50ba17ea27 | ||
|
|
3d0883d83d | ||
|
|
a4604938ac | ||
|
|
322edb9e8b | ||
|
|
898eac2281 | ||
|
|
a93bc9b88c | ||
|
|
31c92aa35f | ||
|
|
5f711bb746 | ||
|
|
e38bc0f06b | ||
|
|
32f7bf8187 | ||
|
|
f13fd458aa | ||
|
|
1ff4b3f557 | ||
|
|
f29c206e7e | ||
|
|
b516efe1ed | ||
|
|
6b9c7c35a4 | ||
|
|
fd7be330b9 | ||
|
|
c770c57486 | ||
|
|
a9830686e0 | ||
|
|
3e66a19b49 | ||
|
|
68247df2ab | ||
|
|
8cffb66f47 | ||
|
|
16cea2beb3 | ||
|
|
61e303d05c | ||
|
|
3a9023bf9f | ||
|
|
8506faa505 | ||
|
|
b702c56e55 | ||
|
|
4b39009d67 | ||
|
|
9318abc4e9 | ||
|
|
02e77af11b | ||
|
|
de398b1bcc | ||
|
|
3086d14035 | ||
|
|
dd64c4c38c | ||
|
|
eec07d2941 | ||
|
|
9e6f270797 | ||
|
|
996b2bbaae | ||
|
|
f95e644a5e | ||
|
|
ca86b3d911 | ||
|
|
7e3a95cacc | ||
|
|
f604d95fa1 | ||
|
|
70a4cfd375 | ||
|
|
cbcbafa52f | ||
|
|
af55c03442 | ||
|
|
5972f0cec4 | ||
|
|
ae97890240 | ||
|
|
5901144528 | ||
|
|
1ee049ed17 | ||
|
|
4649721f96 | ||
|
|
951b035c16 | ||
|
|
c330f6a1cc | ||
|
|
0b1a118327 | ||
|
|
c4c328deaf | ||
|
|
43c35c79ec | ||
|
|
dd6f028573 | ||
|
|
e30f028102 | ||
|
|
8c930e257c | ||
|
|
c22ccb9d9e | ||
|
|
125f8ce5a5 | ||
|
|
835168e3d1 | ||
|
|
71a4b4026c | ||
|
|
822fc56947 | ||
|
|
0d7d2a6134 | ||
|
|
6a57518144 | ||
|
|
ec200a7ce7 | ||
|
|
acd8ce8499 | ||
|
|
b8fdde0195 | ||
|
|
1510486bd3 | ||
|
|
c521f72efa | ||
|
|
60deb083fa | ||
|
|
f1f16757bb | ||
|
|
d42e5f2b49 | ||
|
|
170dd05b71 | ||
|
|
7fd3444033 | ||
|
|
758aa56866 | ||
|
|
a567b60ed1 | ||
|
|
165d3b1776 | ||
|
|
778d569ed9 | ||
|
|
b19c5364df | ||
|
|
f869c17101 | ||
|
|
1b2960f889 | ||
|
|
c540d26be4 | ||
|
|
e3e5267080 | ||
|
|
1c7fd683c7 | ||
|
|
3cbfbaec44 | ||
|
|
d1fdb65322 | ||
|
|
bf56b190cf | ||
|
|
a548a15faa | ||
|
|
c5d25f3c7d | ||
|
|
d4842a6d35 | ||
|
|
63ae424e6c | ||
|
|
83597d7b51 | ||
|
|
4b53282447 | ||
|
|
25ed3b60a3 | ||
|
|
9378db4d61 | ||
|
|
31a951bce1 | ||
|
|
5815fedfb3 | ||
|
|
671d85f6b9 | ||
|
|
5d11b7628b | ||
|
|
6da79b1749 | ||
|
|
949c5ccd48 | ||
|
|
c882cf1b7e | ||
|
|
44bf4250ef | ||
|
|
74a9f5be23 | ||
|
|
7dd9eaf7ad | ||
|
|
eb0573cb9a | ||
|
|
0cd35912aa | ||
|
|
06ff32e8e2 | ||
|
|
2198387403 | ||
|
|
413ca62cf4 | ||
|
|
4c9ce8c140 | ||
|
|
a5059ad8b3 | ||
|
|
747c1ac4dc | ||
|
|
e2a6cd769e | ||
|
|
a30482c431 | ||
|
|
002e80155c | ||
|
|
c720071d56 | ||
|
|
cada111ad6 | ||
|
|
ed1715a077 | ||
|
|
9672d061ab | ||
|
|
680a811621 | ||
|
|
0991ea14ec | ||
|
|
6bde1d62a3 | ||
|
|
c08589d2f0 | ||
|
|
3b98a3cc10 | ||
|
|
6d6e9c178d | ||
|
|
a8f36215fe | ||
|
|
0804619f5b | ||
|
|
a356ebe5d7 | ||
|
|
bf7f18a9ed | ||
|
|
d7bdfa5dff | ||
|
|
150e1b3846 | ||
|
|
c5fa78da97 | ||
|
|
1ddc72f5ef | ||
|
|
2a104abf3b | ||
|
|
19eb1997cf | ||
|
|
74f3d2910d | ||
|
|
eb35ccccca | ||
|
|
119d11621d | ||
|
|
b80af2672a | ||
|
|
ee5770ab24 | ||
|
|
3994cbd601 | ||
|
|
c15cec0699 | ||
|
|
874a0c4235 | ||
|
|
453536e41f | ||
|
|
45bf2e9e3b | ||
|
|
c2a3c802da | ||
|
|
b1f75fce20 | ||
|
|
15831dbae7 | ||
|
|
d3b618bd43 | ||
|
|
d88f81a451 | ||
|
|
22a15e0be7 | ||
|
|
a83d1f64ea | ||
|
|
271975215a | ||
|
|
4ac002a57e | ||
|
|
da1153f73e | ||
|
|
fd5a242722 | ||
|
|
93fdeddc27 | ||
|
|
f7b30fbf38 | ||
|
|
253f25a151 | ||
|
|
fd47fb255e | ||
|
|
7a6c5167d6 | ||
|
|
acaef21130 | ||
|
|
e95e65bf25 | ||
|
|
ae4e6801b0 | ||
|
|
0fef3ab346 | ||
|
|
950071f28b | ||
|
|
5bd66a3fce | ||
|
|
0cccb6e4eb | ||
|
|
2f6704d026 | ||
|
|
42a1c62b3c | ||
|
|
b80ef626f5 | ||
|
|
f8e6a731b8 | ||
|
|
4899093457 | ||
|
|
b57dabd128 | ||
|
|
976831516c | ||
|
|
8cfac5d2c3 | ||
|
|
28911b223e | ||
|
|
007864bec8 | ||
|
|
854492a9c6 | ||
|
|
957dd076b0 | ||
|
|
ab1d9b6123 | ||
|
|
73c5f258f0 | ||
|
|
d5beb336db | ||
|
|
cd7d5a1123 | ||
|
|
2f4679260b | ||
|
|
ab3b3ca03a | ||
|
|
a8233e5b1a | ||
|
|
520af19d60 | ||
|
|
09e83eda28 | ||
|
|
98159c9163 | ||
|
|
eabf820764 | ||
|
|
51fc79f32e | ||
|
|
161e58d8d5 | ||
|
|
c15442cdb1 | ||
|
|
6769bdd2c4 | ||
|
|
e3701ea7ad | ||
|
|
bdb8c5a150 | ||
|
|
7597ba1624 | ||
|
|
bb6ff37c7a | ||
|
|
b1bfdfacf0 | ||
|
|
b0ab0b92a2 | ||
|
|
08c960ff1e | ||
|
|
8212bf2596 | ||
|
|
0f03a98dc5 | ||
|
|
1b70c6f007 | ||
|
|
c243e9b906 | ||
|
|
203e27c1bf | ||
|
|
7aef06f8d4 | ||
|
|
88989b32a6 | ||
|
|
ae218614ff | ||
|
|
c26805e767 | ||
|
|
cf001762a8 | ||
|
|
ace8fdb1ec | ||
|
|
f48e0140de | ||
|
|
64a8f5f88c | ||
|
|
ab461d0ba1 | ||
|
|
e9b759599a | ||
|
|
2ee192fc41 | ||
|
|
71d5ae480b | ||
|
|
9c50c93a27 | ||
|
|
99dbe81906 | ||
|
|
520d3dd8e8 | ||
|
|
044d096b88 | ||
|
|
6bb02719a3 | ||
|
|
a0d989caea | ||
|
|
8bad93d445 | ||
|
|
f451a94aed | ||
|
|
e46ebc9f96 | ||
|
|
97c0e1ab1a | ||
|
|
0ede11f9a4 | ||
|
|
760bee7399 | ||
|
|
5c7053dd1f | ||
|
|
151e3efb0d | ||
|
|
330b1dc431 | ||
|
|
2c1f3cfceb | ||
|
|
aba6da9051 | ||
|
|
4a45635574 | ||
|
|
f909b017d7 | ||
|
|
6ebd1f44a4 | ||
|
|
c1cdef09f9 | ||
|
|
0541bd050e | ||
|
|
60e81a5dcd | ||
|
|
c6535b3fc2 | ||
|
|
fe39c8b0b3 | ||
|
|
fc1b7fa0a4 | ||
|
|
7587a3132b | ||
|
|
2f55ab1a5a | ||
|
|
44ec1da1b0 | ||
|
|
6a117306db | ||
|
|
cec7575841 | ||
|
|
b70e1b08a4 | ||
|
|
f4475161ee | ||
|
|
00e80c1d8a | ||
|
|
25cc94af3b | ||
|
|
67b43c2990 | ||
|
|
c23ec31311 | ||
|
|
674555bb83 | ||
|
|
a1466770e3 | ||
|
|
3275c8f2a2 | ||
|
|
e7155cdc12 | ||
|
|
4b8890b966 | ||
|
|
8dbffd47ec | ||
|
|
e9b35f2c60 | ||
|
|
6dce43ab39 | ||
|
|
d7b68f705f | ||
|
|
1ce5d3a332 | ||
|
|
d508c355fc | ||
|
|
a1551a883a | ||
|
|
d426115161 | ||
|
|
11bf94a22f | ||
|
|
6d43f78445 | ||
|
|
65f8827e34 | ||
|
|
f06b3d2404 | ||
|
|
c3bea95c79 | ||
|
|
453c5d971c | ||
|
|
7431b230ce | ||
|
|
e217e7d082 | ||
|
|
54df40257a | ||
|
|
3809de8fd0 | ||
|
|
58adaa67c6 | ||
|
|
9c89fcda11 | ||
|
|
58220fd95a | ||
|
|
a9256a7029 | ||
|
|
2ad75c8896 | ||
|
|
be543c632c | ||
|
|
4dbcac8ca3 | ||
|
|
f47a18f03a | ||
|
|
6ca41a7364 | ||
|
|
a6d644b412 | ||
|
|
cb1453bdbb | ||
|
|
cfa2284c9c | ||
|
|
d9628060be | ||
|
|
da67054e15 | ||
|
|
e7ff111748 | ||
|
|
6ce92fe4a4 | ||
|
|
a3df78ddf8 | ||
|
|
963d1917dd | ||
|
|
09a5e23a49 | ||
|
|
e3e2b4dab4 | ||
|
|
19cb698722 | ||
|
|
54cb276b02 | ||
|
|
7eb6d42132 | ||
|
|
2ae6a66bdc | ||
|
|
41200479d4 | ||
|
|
33888ad529 | ||
|
|
ffc7f1a67e | ||
|
|
dc38a4e7a0 | ||
|
|
2e1a6f6197 | ||
|
|
4b91b88f05 | ||
|
|
7bcfda5c8e | ||
|
|
524f99aeba | ||
|
|
774bffd929 | ||
|
|
219973f037 | ||
|
|
a39e416241 | ||
|
|
134d2b7482 | ||
|
|
bcacc7eb01 | ||
|
|
b349a7ebd2 | ||
|
|
c30366eff9 | ||
|
|
aea4ac2baf | ||
|
|
6bc3d5d038 | ||
|
|
a2dbc3c50b | ||
|
|
2b1a450240 | ||
|
|
10f4b2d822 | ||
|
|
3a1fc92dd2 | ||
|
|
55b39dbb41 | ||
|
|
fb30b17eb7 | ||
|
|
211cd49aaa | ||
|
|
9af64fe0fa | ||
|
|
cc073a7fe9 | ||
|
|
b4803a5161 | ||
|
|
5a5f1caca9 | ||
|
|
966ff1106d | ||
|
|
7c7711bf0f | ||
|
|
dc4eb918cc | ||
|
|
fa6a4611ab | ||
|
|
28bd09ccee | ||
|
|
348254fd7a | ||
|
|
b70121877f | ||
|
|
211bb62081 | ||
|
|
80fcd97ab1 | ||
|
|
50f9318dee | ||
|
|
e1b1ebed7d | ||
|
|
43ba8a2b9c | ||
|
|
b607c4689e | ||
|
|
1df4d14c16 | ||
|
|
13e7b52ca5 | ||
|
|
e7428bc004 | ||
|
|
36075b1d66 | ||
|
|
3582b24e63 | ||
|
|
4f29fe4fa9 | ||
|
|
8d54e6aa21 | ||
|
|
175d618031 | ||
|
|
5a7c62c68f | ||
|
|
be163c7319 | ||
|
|
0a8bbf15ac | ||
|
|
ceda461851 | ||
|
|
e9fe2eb08a | ||
|
|
213e950b9b | ||
|
|
8fdf28d237 | ||
|
|
8c20acf0c0 | ||
|
|
1494941cf9 | ||
|
|
eb863c5116 | ||
|
|
973d7212e7 | ||
|
|
332fa61b13 | ||
|
|
755076b68f | ||
|
|
ff44545bff | ||
|
|
6ffcf25cba | ||
|
|
789ac62f77 | ||
|
|
4b8a4d186e | ||
|
|
e2b95ff76c | ||
|
|
c92124f787 | ||
|
|
19d0b99ae4 | ||
|
|
bf01a97f5b | ||
|
|
5da568f384 | ||
|
|
e8d6eb28b6 | ||
|
|
e90e8dd807 | ||
|
|
87383f0232 | ||
|
|
8140221759 | ||
|
|
ec073b024b | ||
|
|
b87c99aa26 | ||
|
|
eac1bef1d6 | ||
|
|
0738d51963 | ||
|
|
db1116885d | ||
|
|
006bb4d4ed | ||
|
|
213fc2871d | ||
|
|
aa7f457d77 | ||
|
|
a974fdbd57 | ||
|
|
d744fdc61a | ||
|
|
12dc40515d | ||
|
|
a502e716d0 | ||
|
|
25445c8e9d | ||
|
|
008775a65e | ||
|
|
0c8db8c7f3 | ||
|
|
5d1367577d | ||
|
|
f373dcd785 | ||
|
|
f2f154f2c3 | ||
|
|
a65f45a596 | ||
|
|
700d2a8db7 | ||
|
|
3b792799f6 | ||
|
|
880bba1ea3 | ||
|
|
d899317676 | ||
|
|
49bb404574 | ||
|
|
3b407f2c12 | ||
|
|
111a5df734 | ||
|
|
d9b02f4197 | ||
|
|
862284329c | ||
|
|
58d608b9c0 | ||
|
|
d828d3336a | ||
|
|
572935e9ee | ||
|
|
b8c46aab1f | ||
|
|
f8eb1083d5 | ||
|
|
51d39dd68c | ||
|
|
0ff07a6d31 | ||
|
|
195dcf6077 | ||
|
|
1f1fdb59b6 | ||
|
|
9b180dc426 | ||
|
|
42713e2e5a | ||
|
|
033b15b6bf | ||
|
|
1f5c408203 | ||
|
|
5c657e9170 | ||
|
|
325836f0cc | ||
|
|
f8c72da969 | ||
|
|
375527f33b | ||
|
|
a68fbd73f6 | ||
|
|
b381194114 | ||
|
|
720e951ad2 | ||
|
|
24de407dd4 | ||
|
|
f629f551e0 | ||
|
|
738880e8a6 | ||
|
|
074db58de5 | ||
|
|
917332469f | ||
|
|
128684e69f | ||
|
|
71f57d56b1 | ||
|
|
89f86d3059 | ||
|
|
9d851e0d8e | ||
|
|
2b29bd54d9 | ||
|
|
3fa34b56ff | ||
|
|
3a7a74e3dd | ||
|
|
714244f58d | ||
|
|
7d95f08240 | ||
|
|
91c895a10f | ||
|
|
8b20032064 | ||
|
|
eed732cfe1 | ||
|
|
75ed8e5e94 | ||
|
|
5fa958c205 | ||
|
|
55f916823f | ||
|
|
223220ab34 | ||
|
|
6dc49f66c0 | ||
|
|
21166c54cf | ||
|
|
90e433c804 | ||
|
|
9296148f09 | ||
|
|
1699308348 | ||
|
|
3939ee99b3 | ||
|
|
80174f2ae4 | ||
|
|
00c33ee989 | ||
|
|
1ea1917b2b | ||
|
|
32795f8451 | ||
|
|
2319bec89d | ||
|
|
16c41375b7 | ||
|
|
9cf50fa522 | ||
|
|
11c3e379f8 | ||
|
|
0b2b623853 | ||
|
|
281dac64ef | ||
|
|
a44d3dd913 | ||
|
|
f382bdee7c | ||
|
|
6bdd443298 | ||
|
|
2a8e29abfe | ||
|
|
7a8913234d | ||
|
|
8ea6b4bd35 | ||
|
|
940dd9dcc9 | ||
|
|
cb85ff19e0 | ||
|
|
e051a518dd | ||
|
|
5ec3282ca4 | ||
|
|
ec13d091fd | ||
|
|
9c501faba3 | ||
|
|
06b70e58e9 | ||
|
|
8e5ba3fdcc | ||
|
|
a5ec4c7f28 | ||
|
|
1ceb64d80d | ||
|
|
9808617389 | ||
|
|
03df4c4b25 | ||
|
|
5d5e4d3ff8 | ||
|
|
b2f676e29c | ||
|
|
c974762b83 | ||
|
|
87bede3cb4 | ||
|
|
b9598b55b5 | ||
|
|
0f8acd5e97 | ||
|
|
d48f22d1ac | ||
|
|
ffd0169ade | ||
|
|
c58025d041 | ||
|
|
6aaa7254c1 | ||
|
|
e2e7a642aa | ||
|
|
afc1ad4a99 | ||
|
|
f6eb19c470 | ||
|
|
64ccd9b385 | ||
|
|
8b3931ff12 | ||
|
|
d640a815a0 | ||
|
|
5981f02f93 | ||
|
|
aab29769c7 | ||
|
|
3cd8f08c23 | ||
|
|
8cb86bcce5 | ||
|
|
d62f0400b3 | ||
|
|
73d55bd1e6 | ||
|
|
70c2fa3098 | ||
|
|
da417efb5f | ||
|
|
23cad3f95c | ||
|
|
a82361c863 | ||
|
|
98cde0cd29 | ||
|
|
07cbbe6e1e | ||
|
|
fd67332e19 | ||
|
|
da980a1744 | ||
|
|
c16eff7d85 | ||
|
|
895aff6f6d | ||
|
|
27bbadbb6f | ||
|
|
cebf7a2297 | ||
|
|
c5998bbbf0 | ||
|
|
9d90f83979 | ||
|
|
efb73d3841 | ||
|
|
a39ef271fe | ||
|
|
54db777150 | ||
|
|
2f72ef9840 | ||
|
|
0476b8c932 | ||
|
|
1cb9519a48 | ||
|
|
6ef77570fd | ||
|
|
4e372117f5 | ||
|
|
81c91a7146 | ||
|
|
c7838f7059 | ||
|
|
b8ac423c67 | ||
|
|
b59bf5706d | ||
|
|
7a72c1105f | ||
|
|
3252159334 | ||
|
|
03f2f66764 | ||
|
|
13288b4aab | ||
|
|
324e05b17c | ||
|
|
6d230bbad2 | ||
|
|
cfc2b35b9d | ||
|
|
64567d5df3 | ||
|
|
aa4fcb606d | ||
|
|
5f7fdb2e82 | ||
|
|
8509bd3db3 | ||
|
|
396209f566 | ||
|
|
a39e24c2f6 | ||
|
|
2d12ee03ca | ||
|
|
e25df0874b | ||
|
|
2cd002ceda | ||
|
|
1b0c82fcd6 | ||
|
|
0eabd88817 | ||
|
|
6098b1a1bf | ||
|
|
521375c072 | ||
|
|
a2673a4bf3 | ||
|
|
9efe5856b0 | ||
|
|
4638c90b0a | ||
|
|
dddb0e1625 | ||
|
|
8c167fcb33 | ||
|
|
fadc0b30e9 | ||
|
|
77e8fadc76 | ||
|
|
ecdd187ac8 | ||
|
|
fbbf07c183 | ||
|
|
3afbb6664a | ||
|
|
a67921f0da | ||
|
|
41bd93a033 | ||
|
|
4465d05538 | ||
|
|
740cf65afa | ||
|
|
6ee0ec8cda | ||
|
|
4f3f19b55f | ||
|
|
2bc206f12b | ||
|
|
ec62281a04 | ||
|
|
37d627a314 | ||
|
|
8308ffb8e5 | ||
|
|
912e435f7e | ||
|
|
fa66d2ea4c | ||
|
|
b3309e031c | ||
|
|
576c07d640 | ||
|
|
50291a2564 | ||
|
|
b35048b575 | ||
|
|
2e0ef2e6c9 | ||
|
|
8bcac6c6bb | ||
|
|
e70e58a2cb | ||
|
|
d7c51868e9 | ||
|
|
34290fcaf2 | ||
|
|
dea4a3ad63 | ||
|
|
fb1e0e0d1d | ||
|
|
9bb477dc0e | ||
|
|
e9059fa629 | ||
|
|
127f1997e5 | ||
|
|
4c0ad8f226 | ||
|
|
bf831eb33f | ||
|
|
f9020117e7 | ||
|
|
d2fb21ce11 | ||
|
|
fe7b854f28 | ||
|
|
d1de96c610 | ||
|
|
ee3dff3ebc | ||
|
|
ccf2d0d55f | ||
|
|
8aef01d582 | ||
|
|
efb28a8ce3 | ||
|
|
1034205072 | ||
|
|
4f57114235 | ||
|
|
94ddc86698 | ||
|
|
60e5bd4e77 | ||
|
|
e46a715412 | ||
|
|
eb8619b1de | ||
|
|
d876e9fbaa | ||
|
|
39cc4e5d32 | ||
|
|
d310a001aa | ||
|
|
d35ac4198f | ||
|
|
e00d6d0186 | ||
|
|
cd3c7f78c2 | ||
|
|
1a80b2254b | ||
|
|
8db81be354 | ||
|
|
d86c8c8cd3 | ||
|
|
3c325070e7 | ||
|
|
37f85fbc3e | ||
|
|
ce04b56723 | ||
|
|
75e0395053 | ||
|
|
78f3eb0893 | ||
|
|
14da761586 | ||
|
|
3945b4906e | ||
|
|
cc958c3570 | ||
|
|
dc0f18dbe0 | ||
|
|
ea9995b6e0 | ||
|
|
83e483e718 | ||
|
|
ae35d0fadf | ||
|
|
ead5455648 | ||
|
|
1e139d4123 | ||
|
|
e6838b56d7 | ||
|
|
26c4340d33 | ||
|
|
0205844353 | ||
|
|
74e2710e80 | ||
|
|
32df696ede | ||
|
|
949f5d766f | ||
|
|
e4d1c20cbe | ||
|
|
c6ca59b3df | ||
|
|
c852face60 | ||
|
|
440e2b1bd4 | ||
|
|
8836458ac7 | ||
|
|
e621c28d4d | ||
|
|
d3af9a0039 | ||
|
|
0af6e66486 | ||
|
|
dec5a26cda | ||
|
|
ade560407f | ||
|
|
4a64d7c780 | ||
|
|
d60c3747bb | ||
|
|
be73cc5039 | ||
|
|
ea2d485ddb | ||
|
|
0ce9a3aabd | ||
|
|
3bc47afa76 | ||
|
|
6a81b2c976 | ||
|
|
b560444edc | ||
|
|
522c226d85 | ||
|
|
0eb5ebefd6 | ||
|
|
da00967eb3 | ||
|
|
b5200515a4 | ||
|
|
076c852fb5 | ||
|
|
d8a46f4c37 | ||
|
|
e729d72986 | ||
|
|
54b3aa75db | ||
|
|
ed4ec053e5 | ||
|
|
c0545c133c | ||
|
|
5dff9a86cb | ||
|
|
1b2426a16d | ||
|
|
b760914595 | ||
|
|
fb060cbf5f | ||
|
|
1a1bebf428 | ||
|
|
d7ce867ea3 | ||
|
|
7bddeae8fb | ||
|
|
d63ffcb84e | ||
|
|
74513fd12d | ||
|
|
6fa7122373 | ||
|
|
4f84c4d254 | ||
|
|
ec5ffd277f | ||
|
|
ca7de9f391 | ||
|
|
a56c3940b5 | ||
|
|
eb61dc55db | ||
|
|
9d5a4e04da | ||
|
|
21681e8456 | ||
|
|
cf0fb4cc53 | ||
|
|
c77bdb0e0d | ||
|
|
0cab0c5332 | ||
|
|
3c54068afe | ||
|
|
a254dbd53a | ||
|
|
67e33a5b9b | ||
|
|
76871074a3 | ||
|
|
f01149db17 | ||
|
|
307d0391f4 | ||
|
|
9f49dbbe93 | ||
|
|
2a2d1c3d6c | ||
|
|
61b9557164 | ||
|
|
4372083151 | ||
|
|
a719a8de7d | ||
|
|
1543ade8ae | ||
|
|
d100b02350 | ||
|
|
368535e329 | ||
|
|
36b01d3380 | ||
|
|
173714b51b | ||
|
|
8c1ff1c8aa | ||
|
|
bd82a7f8d8 | ||
|
|
eb20156582 | ||
|
|
c302a0c67a | ||
|
|
699fe38fea | ||
|
|
17fa5128fd | ||
|
|
ae19491929 | ||
|
|
f9c86befb8 | ||
|
|
cd6c1c82c2 | ||
|
|
7de3522736 | ||
|
|
5b169305f4 | ||
|
|
df2923944e | ||
|
|
063068bc76 | ||
|
|
5ce8bad5d4 | ||
|
|
6840d05fb4 | ||
|
|
121094bc21 | ||
|
|
47b5f37e46 | ||
|
|
ca8e29d430 | ||
|
|
7099e577a8 | ||
|
|
67c51f6363 | ||
|
|
ef328a1157 | ||
|
|
55dbe5cfff | ||
|
|
1f1f619bcd | ||
|
|
f9c670626b | ||
|
|
7c54b55512 | ||
|
|
aceb07a73d | ||
|
|
40e7584bf8 | ||
|
|
116d7d3f79 | ||
|
|
8a4689aeab | ||
|
|
6d77cf0a09 | ||
|
|
58cf72d991 | ||
|
|
3d1cafb9f6 | ||
|
|
ca60677b5a | ||
|
|
233282cba7 | ||
|
|
698f1b4173 | ||
|
|
7ee9315d7d | ||
|
|
49945f7368 | ||
|
|
180a993e88 | ||
|
|
dfaa092484 | ||
|
|
1ebde33f37 | ||
|
|
cf4d3bd1ba | ||
|
|
36597eed3e | ||
|
|
2760efd334 | ||
|
|
da7a4ea59a | ||
|
|
dde245bec2 | ||
|
|
eb7aa4782d | ||
|
|
5f68dd131f | ||
|
|
d1ab2a516c | ||
|
|
2027d2f0cf | ||
|
|
73332ec744 | ||
|
|
a5ad0af23d | ||
|
|
aa213face6 | ||
|
|
092808915d | ||
|
|
dd4166c169 | ||
|
|
fb3398d21c | ||
|
|
7748b31b26 | ||
|
|
3b86e3e65f | ||
|
|
2c0a14e5f3 | ||
|
|
db9568aae7 | ||
|
|
d24f47bc1c | ||
|
|
ab6d4df13f | ||
|
|
f00a419861 | ||
|
|
1d703b9574 | ||
|
|
deac4edf10 | ||
|
|
5f21d3ca2a | ||
|
|
e90f3fcd42 | ||
|
|
8fcb19b01e | ||
|
|
0d8ac12c5e | ||
|
|
b227546135 | ||
|
|
f9f2f46f32 | ||
|
|
43935d2276 | ||
|
|
cefd9ae557 | ||
|
|
a351a024d8 | ||
|
|
2c8e472c48 | ||
|
|
530fae57b1 | ||
|
|
89b3a60b88 | ||
|
|
af9aaa0169 | ||
|
|
10bf3d898e | ||
|
|
9d84b0a1da | ||
|
|
d847bba96d | ||
|
|
f85e38a8b2 | ||
|
|
4d9bb14054 | ||
|
|
2dc9edad13 | ||
|
|
bd583ff448 | ||
|
|
6f26ba2c9f | ||
|
|
8e8bc613b7 | ||
|
|
86dac04303 | ||
|
|
1c33a55150 | ||
|
|
2cea98bfd4 | ||
|
|
a4c2e2dfe7 | ||
|
|
b1ecf8d36d | ||
|
|
40b82b1c24 | ||
|
|
250481d78b | ||
|
|
66e2dbe07c | ||
|
|
11b88cc53c | ||
|
|
39140a3328 | ||
|
|
4a9cb5ae22 | ||
|
|
016ef6552a | ||
|
|
6443bd1eee | ||
|
|
717a0d815f | ||
|
|
ebf3beed81 | ||
|
|
9eb669fede | ||
|
|
e3e926b42b | ||
|
|
c1ac6f670b | ||
|
|
c643e0a41c | ||
|
|
9473b2bf20 | ||
|
|
0089e3532d | ||
|
|
508778e6b7 | ||
|
|
e593260ee1 | ||
|
|
0b4d3fa851 | ||
|
|
fb9fd94c5b | ||
|
|
a31c8daae4 | ||
|
|
9e23c28db0 | ||
|
|
782d5c494c | ||
|
|
bafa4f0159 | ||
|
|
266b576871 | ||
|
|
199171beba | ||
|
|
0e379fd73d | ||
|
|
de7210f3c6 | ||
|
|
f7000d5934 | ||
|
|
309f84cafe | ||
|
|
32971c207d | ||
|
|
3bac3d32c3 | ||
|
|
99dce3368c | ||
|
|
2c2d3662a5 | ||
|
|
e45ad959f3 | ||
|
|
91f99f3afd | ||
|
|
068ee7b68a | ||
|
|
be2cbb6958 | ||
|
|
bea443da24 | ||
|
|
9b645649d5 | ||
|
|
9e76c205c7 | ||
|
|
a4adffb016 | ||
|
|
80c30450cf | ||
|
|
08237a4940 | ||
|
|
a104c22680 | ||
|
|
c86c0af4b2 | ||
|
|
2de7d901ab | ||
|
|
1127a99740 | ||
|
|
df345efdbb | ||
|
|
db4b615deb | ||
|
|
c90c470763 | ||
|
|
613ce73701 | ||
|
|
79c666d2b8 | ||
|
|
c07031a5e3 | ||
|
|
09e8bcc03d | ||
|
|
dee3c66a48 | ||
|
|
7616cd4905 | ||
|
|
badbd0a3de | ||
|
|
3e38c9effd | ||
|
|
531b417b5c | ||
|
|
05c6bd8777 |
47
README.md
@@ -1,47 +0,0 @@
|
||||
# Talend Common Repository
|
||||
http://www.talend.com
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
> Contents
|
||||
|
||||
This repository contains the source files that are common across all Talend Open Studio products. These files must be used together with one or more of the following: [tdi-studio-se](https://github.com/Talend/tdi-studio-se), [tdq-studio-se](https://github.com/Talend/tdq-studio-se), [tmdm-studio-se](https://github.com/Talend/tmdm-studio-se), [tesb-studio-se](https://github.com/Talend/tesb-studio-se) or [tbd-studio-se](https://github.com/Talend/tbd-studio-se).
|
||||
|
||||
|
||||
## Repository Structure
|
||||
All Talend Studio repositories follow the same file structure:
|
||||
```
|
||||
|
||||
|_ main Main Eclipse plugins and features
|
||||
|_ features
|
||||
|_ plugins
|
||||
|_ test Eclipse plugins and features for unit tests.
|
||||
|_ features
|
||||
|_ plugins
|
||||
|_ i18n Internationalization plugins and features.
|
||||
|_ features
|
||||
|_ plugins
|
||||
```
|
||||
|
||||
|
||||
## Support
|
||||
|
||||
You can ask for help on our [Forum](http://www.talend.com/services/global-technical-support).
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
We welcome contributions of all kinds from anyone.
|
||||
|
||||
Using the bug tracker [Talend bugtracker](http://jira.talendforge.org/) is the best channel for bug reports, feature requests and submitting pull requests.
|
||||
|
||||
Feel free to share your Talend components on [Talend Exchange](http://www.talendforge.org/exchange).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Copyright (c) 2006-2014 Talend
|
||||
|
||||
Licensed under the LPGLv3 License
|
||||
@@ -1,4 +0,0 @@
|
||||
migrationTasksRecapDialog.description=Here are the migration tasks applied on this session on this project.
|
||||
migrationTasksRecapDialog.title=Migration tasks done
|
||||
MigrationToolService.migrationCancel=Migration task is canceled during {0}.
|
||||
MigrationToolService.taskInProgress=Migration task {0} run in progress...
|
||||
@@ -1,4 +0,0 @@
|
||||
migrationTasksRecapDialog.description=Voici les tâches de migration appliquées à cette session du projet.
|
||||
migrationTasksRecapDialog.title=Tâches de migration réalisées
|
||||
MigrationToolService.migrationCancel=Tâche de migration interrompue pendant {0}.
|
||||
MigrationToolService.taskInProgress=Tâche de migration {0} en cours...
|
||||
@@ -1,54 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.commons.utils;
|
||||
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.osgi.framework.Bundle;
|
||||
|
||||
/**
|
||||
* Represents a version. Contents a major and a minor version.<br/>
|
||||
*
|
||||
* $Id: Version.java 1 2006-09-29 17:06:40 +0000 (ven., 29 sept. 2006) nrousseau $
|
||||
*
|
||||
*/
|
||||
public class VersionUtils {
|
||||
|
||||
public static final String DEFAULT_VERSION = "0.1"; //$NON-NLS-1$
|
||||
|
||||
public static int compareTo(String arg0, String arg1) {
|
||||
return new Version(arg0).compareTo(new Version(arg1));
|
||||
}
|
||||
|
||||
public static String upMinor(String version) {
|
||||
Version toReturn = new Version(version);
|
||||
toReturn.upMinor();
|
||||
return toReturn.toString();
|
||||
}
|
||||
|
||||
public static String upMajor(String version) {
|
||||
Version toReturn = new Version(version);
|
||||
toReturn.upMajor();
|
||||
return toReturn.toString();
|
||||
}
|
||||
|
||||
public static String getVersion() {
|
||||
String version = System.getProperty("talend.studio.version"); //$NON-NLS-1$
|
||||
if (version == null || "".equals(version.trim())) { //$NON-NLS-1$
|
||||
Bundle bundle = Platform.getBundle("org.talend.commons.runtime"); //$NON-NLS-1$
|
||||
if (bundle != null) {
|
||||
version = (String) bundle.getHeaders().get(org.osgi.framework.Constants.BUNDLE_VERSION);
|
||||
}
|
||||
}
|
||||
return version;
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.commons.utils.database;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* created by zshen on Apr 12, 2013 Detailled comment
|
||||
*
|
||||
*/
|
||||
public class AS400DatabaseMetaData extends PackageFakeDatabaseMetadata {
|
||||
|
||||
public AS400DatabaseMetaData(Connection conn) throws SQLException {
|
||||
super(conn);
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.fakejdbc.FakeDatabaseMetaData#getCatalogs()
|
||||
*/
|
||||
@Override
|
||||
public ResultSet getCatalogs() throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return super.getCatalogs();
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.fakejdbc.FakeDatabaseMetaData#getColumns(java.lang.String, java.lang.String, java.lang.String,
|
||||
* java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
|
||||
throws SQLException {
|
||||
// TODO Auto-generated method stub
|
||||
return super.getColumns(catalog, schemaPattern, tableNamePattern, columnNamePattern);
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.fakejdbc.FakeDatabaseMetaData#getConnection()
|
||||
*/
|
||||
@Override
|
||||
public Connection getConnection() {
|
||||
// TODO Auto-generated method stub
|
||||
return super.getConnection();
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.fakejdbc.FakeDatabaseMetaData#getTables(java.lang.String, java.lang.String, java.lang.String,
|
||||
* java.lang.String[])
|
||||
*/
|
||||
@Override
|
||||
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException {
|
||||
|
||||
return super.getTables(catalog, schemaPattern, tableNamePattern, types);
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.fakejdbc.FakeDatabaseMetaData#getSchemas(java.lang.String, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException {
|
||||
ResultSet resultSet = null;
|
||||
try {
|
||||
resultSet = this.metaData.getSchemas(catalog, schemaPattern);
|
||||
} catch (SQLException e) {
|
||||
// get resultSet of schema by sql mode
|
||||
resultSet = this.metaData.getTables(catalog, schemaPattern, null, null);
|
||||
}
|
||||
return resultSet;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.commons.utils.database;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* created by xqliu on Oct 26, 2012 Detailled comment
|
||||
*
|
||||
*/
|
||||
public class SybaseDatabaseMetaData extends PackageFakeDatabaseMetadata {
|
||||
|
||||
/**
|
||||
* DOC xqliu SybaseDatabaseMetaData constructor comment.
|
||||
*/
|
||||
public SybaseDatabaseMetaData(Connection connection) throws SQLException {
|
||||
super(connection);
|
||||
}
|
||||
|
||||
public ResultSet getCatalogs(String login) throws SQLException {
|
||||
List<String[]> list = new ArrayList<String[]>();
|
||||
|
||||
List<String> catList = new ArrayList<String>();
|
||||
ResultSet rsCat = this.metaData.getCatalogs();
|
||||
while (rsCat.next()) {
|
||||
catList.add(rsCat.getString("TABLE_CAT")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
for (String catalogName : catList) {
|
||||
String sql = "select count(*) from " + catalogName //$NON-NLS-1$
|
||||
+ ".dbo.sysusers where suid in (select suid from master.dbo.syslogins where name = '" + login //$NON-NLS-1$
|
||||
+ "') or suid in (select altsuid from " + catalogName //$NON-NLS-1$
|
||||
+ ".dbo.sysalternates a, master.dbo.syslogins b where b.name = '" + login + "' and a.suid = b.suid)"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
ResultSet rs = null;
|
||||
Statement stmt = null;
|
||||
try {
|
||||
stmt = connection.createStatement();
|
||||
rs = stmt.executeQuery(sql);
|
||||
|
||||
while (rs.next()) {
|
||||
int temp = rs.getInt(1);
|
||||
if (temp > 0) {
|
||||
String[] r = new String[] { catalogName };
|
||||
list.add(r);
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
// do nothing here !!!
|
||||
} finally {
|
||||
try {
|
||||
if (rs != null) {
|
||||
rs.close();
|
||||
}
|
||||
if (stmt != null) {
|
||||
stmt.close();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// do nothing here ???
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SybaseResultSet tableResultSet = new SybaseResultSet();
|
||||
tableResultSet.setMetadata(new String[] { "TABLE_CAT" }); //$NON-NLS-1$
|
||||
tableResultSet.setData(list);
|
||||
return tableResultSet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException {
|
||||
String sql = "SELECT DISTINCT name FROM " + catalog + ".dbo.sysusers where suid > 0"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
ResultSet rs = null;
|
||||
Statement stmt = null;
|
||||
List<String[]> list = new ArrayList<String[]>();
|
||||
try {
|
||||
stmt = connection.createStatement();
|
||||
rs = stmt.executeQuery(sql);
|
||||
|
||||
while (rs.next()) {
|
||||
String name = rs.getString("name"); //$NON-NLS-1$
|
||||
|
||||
String[] r = new String[] { name.trim() };
|
||||
list.add(r);
|
||||
}
|
||||
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
} finally {
|
||||
try {
|
||||
if (rs != null) {
|
||||
rs.close();
|
||||
}
|
||||
if (stmt != null) {
|
||||
stmt.close();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// do nothing here ???
|
||||
}
|
||||
}
|
||||
|
||||
SybaseResultSet tableResultSet = new SybaseResultSet();
|
||||
tableResultSet.setMetadata(new String[] { "TABLE_SCHEM" }); //$NON-NLS-1$
|
||||
tableResultSet.setData(list);
|
||||
return tableResultSet;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,581 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.core.model.metadata;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.swt.events.KeyEvent;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.talend.commons.exception.PersistenceException;
|
||||
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
|
||||
import org.talend.core.CorePlugin;
|
||||
import org.talend.core.PluginChecker;
|
||||
import org.talend.core.model.metadata.builder.ConvertionHelper;
|
||||
import org.talend.core.model.metadata.builder.connection.AbstractMetadataObject;
|
||||
import org.talend.core.model.metadata.builder.connection.Connection;
|
||||
import org.talend.core.model.metadata.builder.connection.MetadataTable;
|
||||
import org.talend.core.model.metadata.builder.connection.QueriesConnection;
|
||||
import org.talend.core.model.metadata.builder.connection.Query;
|
||||
import org.talend.core.model.metadata.builder.connection.SAPConnection;
|
||||
import org.talend.core.model.metadata.builder.connection.SAPFunctionUnit;
|
||||
import org.talend.core.model.process.EParameterFieldType;
|
||||
import org.talend.core.model.process.IElementParameter;
|
||||
import org.talend.core.model.process.INode;
|
||||
import org.talend.core.model.properties.Item;
|
||||
import org.talend.core.model.properties.impl.ConnectionItemImpl;
|
||||
import org.talend.core.model.repository.IRepositoryViewObject;
|
||||
import org.talend.designer.core.model.utils.emf.talendfile.ColumnType;
|
||||
import org.talend.designer.core.model.utils.emf.talendfile.MetadataType;
|
||||
import org.talend.designer.core.model.utils.emf.talendfile.TalendFileFactory;
|
||||
|
||||
/**
|
||||
* DOC nrousseau class global comment. Detailled comment <br/>
|
||||
*
|
||||
* $Id: talend-code-templates.xml 1 2006-09-29 17:06:40 +0000 (ven., 29 sept. 2006) nrousseau $
|
||||
*
|
||||
*/
|
||||
public class MetadataTool {
|
||||
|
||||
// private static final String VALIDATE_PATTERN_NAME = "^[a-zA-Z_][a-zA-Z_0-9]*$"; //$NON-NLS-1$
|
||||
|
||||
// private static final String VALIDATE_PATTERN_SCHEMA_NAME = "^[a-zA-Z_0-9][a-zA-Z_0-9]*$"; //$NON-NLS-1$
|
||||
|
||||
public static List<ColumnNameChanged> getColumnNameChanged(IMetadataTable oldTable, IMetadataTable newTable) {
|
||||
List<ColumnNameChanged> columnNameChanged = new ArrayList<ColumnNameChanged>();
|
||||
for (int i = 0; i < oldTable.getListColumns().size(); i++) {
|
||||
IMetadataColumn originalColumn = oldTable.getListColumns().get(i);
|
||||
int oldIndex = oldTable.getListColumns().indexOf(originalColumn);
|
||||
// TDI-9847:since the SCD type3field's currentColumn and previousColumn has same ID,when edit schema,we
|
||||
// up/down outputSchema's column order,need add index to make a difference to get the right column
|
||||
IMetadataColumn clonedColumn = getColumn(newTable, originalColumn, oldIndex);
|
||||
if (clonedColumn != null) {
|
||||
if (!originalColumn.getLabel().equals(clonedColumn.getLabel())) {
|
||||
columnNameChanged.add(new ColumnNameChanged(originalColumn.getLabel(), clonedColumn.getLabel()));
|
||||
}
|
||||
}
|
||||
}
|
||||
return columnNameChanged;
|
||||
}
|
||||
|
||||
public static List<ColumnNameChanged> getColumnNameChangedExt(INode changedNode, IMetadataTable oldTable,
|
||||
IMetadataTable newTable) {
|
||||
if (changedNode == null || oldTable == null || newTable == null) {
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
List<ColumnNameChanged> columnNameChanged = new ArrayList<ColumnNameChanged>();
|
||||
for (int i = 0; i < oldTable.getListColumns().size(); i++) {
|
||||
IMetadataColumn originalColumn = oldTable.getListColumns().get(i);
|
||||
int oldIndex = oldTable.getListColumns().indexOf(originalColumn);
|
||||
IMetadataColumn clonedColumn = getColumn(newTable, originalColumn, oldIndex);
|
||||
if (clonedColumn != null) {
|
||||
if (!originalColumn.getLabel().equals(clonedColumn.getLabel())) {
|
||||
columnNameChanged.add(new ColumnNameChangedExt(changedNode, originalColumn.getLabel(), clonedColumn
|
||||
.getLabel()));
|
||||
}
|
||||
}
|
||||
}
|
||||
return columnNameChanged;
|
||||
}
|
||||
|
||||
private static IMetadataColumn getColumn(IMetadataTable table, IMetadataColumn originalColumn, int oldIndex) {
|
||||
if (originalColumn.getId() != null) {
|
||||
for (IMetadataColumn col : table.getListColumns()) {
|
||||
if (originalColumn.getId().equals(col.getId())) {
|
||||
if (oldIndex != table.getListColumns().indexOf(col)) {
|
||||
if (originalColumn.getLabel().equals(col.getLabel())) {
|
||||
return col;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
return col;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void copyTable(IMetadataTable source, IMetadataTable target) {
|
||||
copyTable(source, target, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @author wzhang Comment method "copyTable".
|
||||
* @param dbmsid
|
||||
* @param source
|
||||
* @param target
|
||||
*/
|
||||
public static void copyTable(String dbmsId, IMetadataTable source, IMetadataTable target) {
|
||||
MetadataToolHelper.copyTable(dbmsId, source, target);
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC wzhang Comment method "setDBType".
|
||||
*/
|
||||
public static void setDBType(IMetadataTable metaTable, String dbmsid) {
|
||||
MetadataToolHelper.setDBType(metaTable, dbmsid);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC qli Comment method "copyTable".
|
||||
*
|
||||
* @param sourceColumns,target
|
||||
* @return
|
||||
*/
|
||||
public static void copyTable(List<IMetadataColumn> sourceColumns, IMetadataTable target) {
|
||||
copyTable(sourceColumns, target, null);
|
||||
}
|
||||
|
||||
public static void copyTable(IMetadataTable source, IMetadataTable target, String targetDbms) {
|
||||
MetadataToolHelper.copyTable(source, target, targetDbms);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC qli Comment method "copyTable".
|
||||
*
|
||||
* @param sourceColumns,target,targetDbms
|
||||
* @return
|
||||
*/
|
||||
public static void copyTable(List<IMetadataColumn> sourceColumns, IMetadataTable target, String targetDbms) {
|
||||
MetadataToolHelper.copyTable(sourceColumns, target, targetDbms);
|
||||
}
|
||||
|
||||
public static Query getQueryFromRepository(String metaRepositoryId) {
|
||||
org.talend.core.model.metadata.builder.connection.Connection connection;
|
||||
|
||||
String[] names = metaRepositoryId.split(" - "); //$NON-NLS-1$
|
||||
String name2 = null;
|
||||
if (names.length < 2) {
|
||||
return null;
|
||||
}
|
||||
String linkedRepository = names[0];
|
||||
if (names.length == 2) {
|
||||
name2 = names[1];
|
||||
} else if (names.length > 2) {
|
||||
name2 = metaRepositoryId.substring(linkedRepository.length() + 3);
|
||||
}
|
||||
|
||||
connection = getConnectionFromRepository(linkedRepository);
|
||||
|
||||
if (connection != null) {
|
||||
QueriesConnection queriesConnection = connection.getQueries();
|
||||
if (queriesConnection == null) {
|
||||
return null;
|
||||
}
|
||||
EList<Query> queries = queriesConnection.getQuery();
|
||||
|
||||
for (Query currentQuery : queries) {
|
||||
if (currentQuery.getLabel().equals(name2)) {
|
||||
return currentQuery;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public static MetadataTable getMetadataTableFromRepository(String metaRepositoryId) {
|
||||
return MetadataToolHelper.getMetadataTableFromRepository(metaRepositoryId);
|
||||
}
|
||||
|
||||
public static IMetadataTable getMetadataFromRepository(String metaRepositoryId) {
|
||||
MetadataTable table = getMetadataTableFromRepository(metaRepositoryId);
|
||||
if (table != null) {
|
||||
return ConvertionHelper.convert(table);
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC YeXiaowei Comment method "getMetadataTableFromConnection".
|
||||
*
|
||||
* @param conn
|
||||
* @return
|
||||
*/
|
||||
public static EList getMetadataTableFromConnection(final Connection conn) {
|
||||
return MetadataToolHelper.getMetadataTableFromConnection(conn);
|
||||
}
|
||||
|
||||
public static org.talend.core.model.metadata.builder.connection.Connection getConnectionFromRepository(String metaRepositoryid) {
|
||||
return MetadataToolHelper.getConnectionFromRepository(metaRepositoryid);
|
||||
}
|
||||
|
||||
/**
|
||||
* qzhang Comment method "getNewMetadataColumns".
|
||||
*
|
||||
* @param oldTable
|
||||
* @param newTable
|
||||
* @return
|
||||
*/
|
||||
public static List<ColumnNameChanged> getNewMetadataColumns(IMetadataTable oldTable, IMetadataTable newTable) {
|
||||
List<ColumnNameChanged> list = new ArrayList<ColumnNameChanged>();
|
||||
List<IMetadataColumn> newColumns = newTable.getListColumns();
|
||||
List<IMetadataColumn> oldColumns = oldTable.getListColumns();
|
||||
for (IMetadataColumn column : newColumns) {
|
||||
boolean isNew = true;
|
||||
for (IMetadataColumn ocolumn : oldColumns) {
|
||||
if (column.getLabel().equals(ocolumn.getLabel())) {
|
||||
isNew = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isNew) {
|
||||
list.add(new ColumnNameChanged("", column.getLabel())); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* qzhang Comment method "getRemoveMetadataColumns".
|
||||
*
|
||||
* @param oldTable
|
||||
* @param newTable
|
||||
* @return
|
||||
*/
|
||||
public static List<ColumnNameChanged> getRemoveMetadataColumns(IMetadataTable oldTable, IMetadataTable newTable) {
|
||||
List<ColumnNameChanged> list = new ArrayList<ColumnNameChanged>();
|
||||
List<IMetadataColumn> newColumns = newTable.getListColumns();
|
||||
List<IMetadataColumn> oldColumns = oldTable.getListColumns();
|
||||
for (IMetadataColumn column : oldColumns) {
|
||||
boolean isNew = true;
|
||||
for (IMetadataColumn ocolumn : newColumns) {
|
||||
if (column.getLabel().equals(ocolumn.getLabel())) {
|
||||
isNew = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isNew) {
|
||||
list.add(new ColumnNameChanged(column.getLabel(), "")); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public static void initilializeSchemaFromElementParameters(IMetadataTable metadataTable,
|
||||
List<IElementParameter> elementParameters) {
|
||||
IElementParameter mappingParameter = getMappingParameter(elementParameters);
|
||||
for (int i = 0; i < elementParameters.size(); i++) {
|
||||
IElementParameter param = elementParameters.get(i);
|
||||
if (param.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE)
|
||||
&& param.getContext().equals(metadataTable.getAttachedConnector())) {
|
||||
if (param.getValue() instanceof IMetadataTable) {
|
||||
param.setValueToDefault(elementParameters);
|
||||
IMetadataTable table = (IMetadataTable) param.getValue();
|
||||
if (mappingParameter != null) {
|
||||
if (mappingParameter.getValue() != null && (!mappingParameter.getValue().equals(""))) { //$NON-NLS-1$
|
||||
table.setDbms((String) mappingParameter.getValue());
|
||||
}
|
||||
}
|
||||
metadataTable.setReadOnly(table.isReadOnly());
|
||||
|
||||
metadataTable.setReadOnlyColumnPosition(table.getReadOnlyColumnPosition());
|
||||
|
||||
// if all the table is read only then remove all columns to
|
||||
// set the one defined in the emf component
|
||||
// if (metadataTable.isReadOnly()) {
|
||||
// metadataTable.getListColumns().clear();
|
||||
// }
|
||||
for (int k = 0; k < table.getListColumns().size(); k++) {
|
||||
IMetadataColumn newColumn = table.getListColumns().get(k);
|
||||
IMetadataColumn oldColumn = metadataTable.getColumn(newColumn.getLabel());
|
||||
if (oldColumn != null) {
|
||||
// if column exists, then override read only /
|
||||
// custom
|
||||
oldColumn.setReadOnly(newColumn.isReadOnly());
|
||||
oldColumn.setCustom(newColumn.isCustom());
|
||||
oldColumn.setCustomId(newColumn.getCustomId());
|
||||
if (newColumn.isReadOnly()) { // if read only,
|
||||
// override
|
||||
// everything
|
||||
oldColumn.setKey(newColumn.isKey());
|
||||
oldColumn.setNullable(newColumn.isNullable());
|
||||
oldColumn.setLength(newColumn.getLength());
|
||||
oldColumn.setPrecision(newColumn.getPrecision());
|
||||
oldColumn.setPattern(newColumn.getPattern());
|
||||
oldColumn.setType(newColumn.getType());
|
||||
oldColumn.setTalendType(newColumn.getTalendType());
|
||||
oldColumn.setComment(newColumn.getComment());
|
||||
}
|
||||
} else { // if column doesn't exist, then add it.
|
||||
// if (newColumn.isReadOnly() || newColumn.isCustom() || table.isReadOnly()) {
|
||||
// metadataTable.getListColumns().add(newColumn);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
metadataTable.sortCustomColumns();
|
||||
}
|
||||
|
||||
public static IElementParameter getMappingParameter(List<IElementParameter> elementParameters) {
|
||||
for (int i = 0; i < elementParameters.size(); i++) {
|
||||
IElementParameter param = elementParameters.get(i);
|
||||
if (param.getFieldType().equals(EParameterFieldType.MAPPING_TYPE)) {
|
||||
return param;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC qzhang Comment method "copyTable".
|
||||
*
|
||||
* @param source
|
||||
* @param target
|
||||
*/
|
||||
public static void copyTable(IMetadataTable source, MetadataType target) {
|
||||
List<ColumnType> colTypes = (List<ColumnType>) target.getColumn();
|
||||
colTypes.clear();
|
||||
for (IMetadataColumn column : source.getListColumns()) {
|
||||
ColumnType createColumnType = TalendFileFactory.eINSTANCE.createColumnType();
|
||||
createColumnType.setComment(column.getComment());
|
||||
createColumnType.setDefaultValue(column.getDefault());
|
||||
createColumnType.setKey(column.isKey());
|
||||
if (column.getLength() == null) {
|
||||
// colType.setLength(-1);
|
||||
createColumnType.unsetLength();
|
||||
} else {
|
||||
createColumnType.setLength(column.getLength());
|
||||
}
|
||||
if (column.getPrecision() == null) {
|
||||
// colType.setPrecision(-1);
|
||||
createColumnType.unsetPrecision();
|
||||
} else {
|
||||
createColumnType.setPrecision(column.getPrecision());
|
||||
}
|
||||
if (!column.getLabel().equals(column.getOriginalDbColumnName())) {
|
||||
createColumnType.setOriginalDbColumnName(column.getOriginalDbColumnName());
|
||||
}
|
||||
createColumnType.setName(column.getLabel());
|
||||
createColumnType.setNullable(column.isNullable());
|
||||
createColumnType.setPattern(column.getPattern());
|
||||
|
||||
createColumnType.setSourceType(column.getType());
|
||||
createColumnType.setType(column.getTalendType());
|
||||
|
||||
if (PluginChecker.isDatacertPluginLoaded()) {
|
||||
createColumnType.setRelatedEntity(column.getRelatedEntity());
|
||||
createColumnType.setRelationshipType(column.getRelationshipType());
|
||||
}
|
||||
colTypes.add(createColumnType);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @param node
|
||||
* @param name
|
||||
* @return
|
||||
* @deprecated use getMetadataTableFromNodeLabel instead
|
||||
*/
|
||||
public static IMetadataTable getMetadataTableFromNode(INode node, String name) {
|
||||
return getMetadataTableFromNodeLabel(node, name);
|
||||
}
|
||||
|
||||
public static IMetadataTable getMetadataTableFromNodeLabel(INode node, String name) {
|
||||
return MetadataToolHelper.getMetadataTableFromNodeLabel(node, name);
|
||||
}
|
||||
|
||||
public static IMetadataTable getMetadataTableFromNodeTableName(INode node, String name) {
|
||||
return MetadataToolHelper.getMetadataTableFromNodeTableName(node, name);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* qli Comment method "validateColumnName".
|
||||
*
|
||||
*
|
||||
*/
|
||||
public static String validateColumnName(String columnName, int index) {
|
||||
return MetadataToolHelper.validateColumnName(columnName, index);
|
||||
}
|
||||
|
||||
public static boolean isValidSchemaName(String name) {
|
||||
return MetadataToolHelper.isValidSchemaName(name);
|
||||
}
|
||||
|
||||
public static boolean isValidColumnName(String name) {
|
||||
return MetadataToolHelper.isValidColumnName(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* wzhang Comment method "validataValue".
|
||||
*/
|
||||
public static String validateValue(String columnName) {
|
||||
return MetadataToolHelper.validateValue(columnName);
|
||||
}
|
||||
|
||||
/**
|
||||
* zli Comment method "validataValue".
|
||||
*/
|
||||
public static String validateValueForDBType(String columnName) {
|
||||
return MetadataToolHelper.validateValueForDBType(columnName);
|
||||
}
|
||||
|
||||
/**
|
||||
* wzhang Comment method "checkSchema".
|
||||
*/
|
||||
public static void checkSchema(Shell shell, KeyEvent event) {
|
||||
MetadataToolHelper.checkSchema(shell, event);
|
||||
}
|
||||
|
||||
/**
|
||||
* wzhang Comment method "validateSchema".
|
||||
*/
|
||||
public static void validateSchema(String value) {
|
||||
MetadataToolHelper.validateSchema(value);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* wzhangComment method "validateSchemaValue".
|
||||
*
|
||||
* @param value
|
||||
* @param beanPosition
|
||||
* @param list
|
||||
* @return
|
||||
*/
|
||||
public static String validateSchemaValue(String value, int beanPosition, List<String> list) {
|
||||
return MetadataToolHelper.validateSchemaValue(value, beanPosition, list);
|
||||
}
|
||||
|
||||
public static boolean hasCustomColumns(IMetadataTable table) {
|
||||
if (table == null) {
|
||||
return false;
|
||||
}
|
||||
for (IMetadataColumn column : table.getListColumns()) {
|
||||
if (column.isCustom()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Collection<IRepositoryViewObject> getContextDependenciesOfMetadataConnection(Collection<Item> items) {
|
||||
Collection<IRepositoryViewObject> repositoryObjects = new ArrayList<IRepositoryViewObject>();
|
||||
try {
|
||||
for (Item item : items) {
|
||||
if (item == null) {
|
||||
continue;
|
||||
}
|
||||
if (item instanceof ConnectionItemImpl) {
|
||||
Connection connection = ((ConnectionItemImpl) item).getConnection();
|
||||
if (connection != null) {
|
||||
IRepositoryViewObject lastVersion = null;
|
||||
if (connection.getContextId() != null) {
|
||||
lastVersion = CorePlugin.getDefault().getProxyRepositoryFactory()
|
||||
.getLastVersion(connection.getContextId());
|
||||
}
|
||||
if (lastVersion != null) {
|
||||
repositoryObjects.add(lastVersion);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} catch (PersistenceException e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
return repositoryObjects;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* cli Comment method "processFieldLength".
|
||||
*
|
||||
*/
|
||||
public static void processFieldsLength(EObject obj) {
|
||||
if (obj != null) {
|
||||
|
||||
// if the comment length of metadata object is more than 255. will be cut
|
||||
if (obj instanceof AbstractMetadataObject) {
|
||||
AbstractMetadataObject metadataObj = (AbstractMetadataObject) obj;
|
||||
String comment = processFieldsLength(metadataObj.getComment());
|
||||
if (comment != null) {
|
||||
metadataObj.setComment(comment);
|
||||
}
|
||||
} else if (obj instanceof MetadataType) {
|
||||
MetadataType type = (MetadataType) obj;
|
||||
String comment = processFieldsLength(type.getComment());
|
||||
if (comment != null) {
|
||||
type.setComment(comment);
|
||||
}
|
||||
} else if (obj instanceof ColumnType) {
|
||||
ColumnType type = (ColumnType) obj;
|
||||
String comment = processFieldsLength(type.getComment());
|
||||
if (comment != null) {
|
||||
type.setComment(comment);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static String processFieldsLength(String comment) {
|
||||
final int max = 255;
|
||||
if (comment != null && comment.length() > max) {
|
||||
final String dots = "..."; //$NON-NLS-1$
|
||||
comment = comment.substring(0, max - 4);
|
||||
if (!comment.endsWith(dots)) {
|
||||
comment += dots;
|
||||
}
|
||||
return comment;
|
||||
}
|
||||
return null; // don't process
|
||||
}
|
||||
|
||||
public static SAPFunctionUnit getSAPFunctionFromRepository(String functionRepositoryId) {
|
||||
org.talend.core.model.metadata.builder.connection.Connection connection;
|
||||
|
||||
String[] names = functionRepositoryId.split(" - "); //$NON-NLS-1$
|
||||
String name2 = null;
|
||||
if (names.length < 2) {
|
||||
return null;
|
||||
}
|
||||
String linkedRepository = names[0];
|
||||
if (names.length == 2) {
|
||||
name2 = names[1];
|
||||
} else if (names.length > 2) {
|
||||
name2 = functionRepositoryId.substring(linkedRepository.length() + 3);
|
||||
}
|
||||
|
||||
connection = getConnectionFromRepository(linkedRepository);
|
||||
if (connection != null) {
|
||||
if (connection instanceof SAPConnection) {
|
||||
SAPConnection sapConn = (SAPConnection) connection;
|
||||
EList funtions = sapConn.getFuntions();
|
||||
for (Object obj : funtions) {
|
||||
SAPFunctionUnit funciton = (SAPFunctionUnit) obj;
|
||||
if (name2.equals(funciton.getLabel())) {
|
||||
return funciton;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.core.model.metadata.builder.database;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* DOC YeXiaowei class global comment. Detailled comment <br/>
|
||||
*
|
||||
* @deprecated have modified and moved to EDatabaseVersion4Drivers
|
||||
*/
|
||||
public enum EDatabaseDriver4Version {
|
||||
// Oracle
|
||||
ORACLE_11("Oracle", "Oracle_11", "ojdbc5-11g.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
ORACLE_10("Oracle", "Oracle_10", "ojdbc14-10g.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
ORACLE_9("Oracle", "Oracle_9", "ojdbc14-9i.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
ORACLE_8("Oracle", "Oracle_8", "ojdbc12-8i.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
|
||||
// Vertica
|
||||
VERTICA_4("Vertica", "VERTICA_4", "vertica_4.0_jdk_5.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
VERTICA_3("Vertica", "VERTICA_3", "vertica_3.0_jdk_5.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
VERTICA("Vertica", "VERTICA_3.5", "vertica_3.5_jdk_5.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
// AS400
|
||||
V5R4_V6R1("AS400", "V5R4 to V6R1", "jt400_V5R3.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
V5R2_V5R4("AS400", "V5R2 to V5R4", "jt400_V5R2.jar"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
|
||||
INTERBASE("Interbase", null, "interclient.jar"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SQLITE("SQLite", null, "sqlitejdbc-v056.jar"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
FIREBIRD("FireBird", null, "jaybird-full-2.1.1.jar"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
TERADATA("Teradata", null, "terajdbc4.jar;tdgssconfig.jar;tdgssjava.jar"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
JAVADB_DERBYCLIENT("JavaDB DerbyClient", null, "derbyclient.jar"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
NETEZZA("Netezza", null, "nzjdbc.jar"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
private String dbVersionName;
|
||||
|
||||
private String drivers;
|
||||
|
||||
private String dbType;
|
||||
|
||||
public String getDbType() {
|
||||
return this.dbType;
|
||||
}
|
||||
|
||||
public String getDbVersionName() {
|
||||
return this.dbVersionName;
|
||||
}
|
||||
|
||||
public String getDriverName() {
|
||||
if (this.getDbVersionName() != null && this.getDbVersionName().equals(ORACLE_11.dbVersionName)) {
|
||||
if (System.getProperty("java.version").startsWith("1.6")) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
return "ojdbc6-11g.jar"; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
return this.drivers;
|
||||
}
|
||||
|
||||
EDatabaseDriver4Version(String dbType, String versionName, String drivers) {
|
||||
this.dbVersionName = versionName;
|
||||
this.drivers = drivers;
|
||||
this.dbType = dbType;
|
||||
}
|
||||
|
||||
public static String getDriver(final String dbType, final String versionName) {
|
||||
if (versionName != null) {
|
||||
for (EDatabaseDriver4Version driverVersion : values()) {
|
||||
if (versionName.equals(driverVersion.getDbVersionName())) {
|
||||
return driverVersion.getDriverName();
|
||||
}
|
||||
}
|
||||
}
|
||||
for (EDatabaseDriver4Version driverVersion : values()) {
|
||||
if (driverVersion.getDbType().equals(dbType)) {
|
||||
return driverVersion.getDriverName();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getDbVersionName(final String dbType, final String driver) {
|
||||
if (driver != null) {
|
||||
for (EDatabaseDriver4Version driverVersion : values()) {
|
||||
if (driver.equals(driverVersion.getDriverName()) && driverVersion.getDbType().equals(dbType)) {
|
||||
return driverVersion.getDbVersionName();
|
||||
}
|
||||
}
|
||||
}
|
||||
for (EDatabaseDriver4Version driverVersion : values()) {
|
||||
if (driverVersion.getDbType().equals(dbType)) {
|
||||
return driverVersion.getDbVersionName();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<String> getDrivers(final String dbType, final String versionName) {
|
||||
return getDrivers(getDriver(dbType, versionName));
|
||||
}
|
||||
|
||||
private static List<String> getDrivers(String driverNames) {
|
||||
if (driverNames != null) {
|
||||
String[] s = driverNames.split(";"); //$NON-NLS-1$
|
||||
if (s != null) {
|
||||
return Arrays.asList(s);
|
||||
}
|
||||
}
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
package org.talend.core.prefs;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
import org.eclipse.jface.preference.IPersistentPreferenceStore;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
import org.talend.migration.AbstractMigrationTask;
|
||||
import org.talend.migration.IWorkspaceMigrationTask;
|
||||
|
||||
public class EmptyConnectionsMigrationTask extends AbstractMigrationTask implements IWorkspaceMigrationTask {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.core.model.migration.IMigrationTask#execute()
|
||||
*/
|
||||
public boolean execute() {
|
||||
IPreferenceStore store = PlatformUI.getPreferenceStore();
|
||||
|
||||
if (store.contains(ITalendCorePrefConstants.LAST_USED_CONNECTION)) {
|
||||
store.setValue(ITalendCorePrefConstants.LAST_USED_CONNECTION, ""); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
if (store.contains(ITalendCorePrefConstants.CONNECTIONS)) {
|
||||
store.setValue(ITalendCorePrefConstants.CONNECTIONS, ""); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
if (store.contains("Connections.new")) { //$NON-NLS-1$
|
||||
store.setValue("Connections.new", ""); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
if (store != null && store instanceof IPersistentPreferenceStore && store.needsSaving()) {
|
||||
try {
|
||||
((IPersistentPreferenceStore) store).save();
|
||||
} catch (IOException e) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public Date getOrder() {
|
||||
GregorianCalendar gc = new GregorianCalendar(2013, 1, 5, 12, 0, 0);
|
||||
return gc.getTime();
|
||||
}
|
||||
}
|
||||
@@ -1,127 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.cwm.mip.service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IConfigurationElement;
|
||||
import org.eclipse.core.runtime.IExtensionRegistry;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import orgomg.cwm.foundation.softwaredeployment.DataManager;
|
||||
|
||||
/**
|
||||
* created by talend on Sep 29, 2012 <BR>
|
||||
* This service extension point is for the purpose of hanlding CWM model related operations.
|
||||
*
|
||||
*/
|
||||
public class CWMService {
|
||||
|
||||
private static Logger log = Logger.getLogger("org.talend.cwm.mip.service.CWMService");
|
||||
|
||||
private Map<Class, CWMService> services = new HashMap<Class, CWMService>();
|
||||
|
||||
private static IConfigurationElement[] configurationElements = null;
|
||||
|
||||
// The shared instance
|
||||
private static CWMService instance = new CWMService();
|
||||
|
||||
public static CWMService getDefault() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private IConfigurationElement[] getConfigurationElements() {
|
||||
if (configurationElements == null) {
|
||||
IExtensionRegistry registry = Platform.getExtensionRegistry();
|
||||
configurationElements = (registry == null ? null : registry
|
||||
.getConfigurationElementsFor("org.talend.cwm.mip.cwmService")); //$NON-NLS-1$
|
||||
}
|
||||
return configurationElements;
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC qian Comment method "getService".Gets the specific CWMService.
|
||||
*
|
||||
* @param klass the Service type you want to get
|
||||
* @return CWMService CWMService
|
||||
*/
|
||||
public CWMService getService(Class klass) {
|
||||
CWMService service = services.get(klass);
|
||||
if (service == null && getConfigurationElements() != null) {
|
||||
service = findService(klass);
|
||||
if (service == null) {
|
||||
|
||||
throw new RuntimeException("The service " + klass.getName() + " has not been registered."); //$NON-NLS-1$
|
||||
}
|
||||
services.put(klass, service);
|
||||
}
|
||||
return service;
|
||||
}
|
||||
|
||||
public boolean isServiceRegistered(Class klass) {
|
||||
CWMService service = services.get(klass);
|
||||
if (service == null) {
|
||||
service = findService(klass);
|
||||
if (service == null) {
|
||||
return false;
|
||||
}
|
||||
services.put(klass, service);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC qian Comment method "findService".Finds the specific service from the list.
|
||||
*
|
||||
* @param klass the interface type want to find.
|
||||
* @return CWMService
|
||||
*/
|
||||
private CWMService findService(Class klass) {
|
||||
String key = klass.getName();
|
||||
IConfigurationElement[] configElements = getConfigurationElements();
|
||||
if (configElements != null) {
|
||||
for (IConfigurationElement element : configElements) {
|
||||
if (element.isValid()) {
|
||||
try {
|
||||
Object service = element.createExecutableExtension("class"); //$NON-NLS-1$
|
||||
if (klass.isInstance(service)) {
|
||||
return (CWMService) service;
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
log.warning(e.getMessage());
|
||||
}
|
||||
}// else element is not valid because the bundle may have been stoped or uninstalled and the extension
|
||||
// point
|
||||
// registry is still holding values
|
||||
// has mentionned in the class TODO, this class should be removed and OSGI dynamic services used.
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get the readable name (actual item display name) via context style name when the item is on context mode.<BR>
|
||||
* Note that in order to make it easier for caller to get a name, this contextualName may be passed as an actual
|
||||
* display name, in this case, this name will be simply returned.
|
||||
*
|
||||
* @param dataManager
|
||||
* @param contextualName eigher the contextual name or the actual display name.
|
||||
* @return the readable actual item display name.
|
||||
*/
|
||||
public String getReadableName(DataManager dataManager, String contextualName) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,123 +0,0 @@
|
||||
<project name="talend.unit.and.swtbot.tests.ant.project" default="run.all.test.for.talend.rcp.app" basedir=".">
|
||||
<dirname property="this.test.build.file.dir" file="${ant.file.talend.unit.and.swtbot.tests.ant.project}" />
|
||||
<!-- <property name="rcp-app-home" value="${this.test.build.file.dir}\..\.." />-->
|
||||
<!-- <property name="rcp-app-home" value="E:\java\Talend\TOSTestDistrib\TDQ_EE_MPX-All-r51548-V4.2.0NB\TDQ_EE_MPX-All-r51548-V4.2.0NB" />
|
||||
-->
|
||||
<!-- common properties for test one application-->
|
||||
<!--property name="test-application" value="org.talend.rcp.branding.tos.application"/-->
|
||||
<property name="temp-workspace" value="${rcp-app-home}/workspace" />
|
||||
|
||||
<!-- define swt bot properties from file and locally-->
|
||||
<property file="${this.test.build.file.dir}/swtbot.test.properties"/>
|
||||
<property name="swtbot.junit.results.path" value="${rcp-app-home}/swtbot-junit-results-for-${test-application}.xml" />
|
||||
<property name="swtbot.log.path" value="${rcp-app-home}/swtbot-log-for-${test-application}.log" />
|
||||
<propertyset id="swtbot.test.class.collector.properties" description="defines all the prefix and suffix used to find the classes to tested">
|
||||
<propertyref prefix="swtbot.test."/>
|
||||
<mapper type="glob" from="swtbot.test.*" to="test.*"/>
|
||||
</propertyset>
|
||||
|
||||
<!-- define unit test from file and locally-->
|
||||
<property file="${this.test.build.file.dir}/unit.test.properties"/>
|
||||
<property name="unit.junit.results.path" value="${rcp-app-home}/unit-junit-results-for-${test-application}.xml" />
|
||||
<property name="unit.log.path" value="${rcp-app-home}/unit-log-for-${test-application}.log" />
|
||||
<propertyset id="unit.test.class.collector.properties" description="defines all the prefix and suffix used to find the classes to tested">
|
||||
<propertyref prefix="unit.test."/>
|
||||
<mapper type="glob" from="unit.test.*" to="test.*"/>
|
||||
</propertyset>
|
||||
|
||||
<target name="init">
|
||||
<tstamp />
|
||||
<fail unless="rcp-app-home" message="You must set the rcp-app-home property to specify the path the RCP application to test"/>
|
||||
<fail unless="test-application" message="You must set the test-application property to specify the the application to test"/>
|
||||
<fail unless="talend.licence.path" message="You must set the talend.licence.path property to specify where to find the licence"/>
|
||||
</target>
|
||||
|
||||
<target name="clean.application.config.and.workspace">
|
||||
<delete includeemptydirs="true" quiet="true">
|
||||
<fileset dir="${rcp-app-home}/configuration" includes="**/*" excludes="config.ini,*.javacache,*.perlcache"/>
|
||||
<fileset dir="${temp-workspace}" includes="**/*" excludes=".JETEmitters/**/*"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<!-- =================================
|
||||
target: swtbot.test.for.talend.rcp.app
|
||||
================================= -->
|
||||
<target name="swtbot.test.for.talend.rcp.app" description="launch swt bot test for Talend product defined in ${test-application}, output junit is localted a TOS root and named junit-results.xml, the console output is also located at the root" depends="init">
|
||||
<!-- canot use depends because the clean target must be called right before to this target and depends assures it is called once before but may be to early -->
|
||||
<antcall target="clean.application.config.and.workspace"></antcall>
|
||||
<echo>SWTBot test for Product ${test-application} :
|
||||
log file : ${swtbot.log.path}
|
||||
JunitResult : ${swtbot.junit.results.path} </echo>
|
||||
<!-- remove last build results -->
|
||||
<delete includeemptydirs="true" quiet="true">
|
||||
<fileset file="${swtbot.junit.results.path}" />
|
||||
<fileset file="${swtbot.log.path}"/>
|
||||
<fileset dir="${rcp-app-home}/screenshots"/>
|
||||
</delete>
|
||||
<java dir="${rcp-app-home}" fork="true" output="${swtbot.log.path}" logError="true"
|
||||
classname="org.eclipse.core.launcher.Main" failonerror="false">
|
||||
<syspropertyset refid="swtbot.test.class.collector.properties"/>
|
||||
<sysproperty key="talend.licence.path" value="${talend.licence.path}"/>
|
||||
<classpath>
|
||||
<fileset dir="${rcp-app-home}/plugins">
|
||||
<include name="org.eclipse.equinox.launcher_*.jar"/>
|
||||
</fileset>
|
||||
</classpath>
|
||||
<arg line="-application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication"/>
|
||||
<arg line="-testPluginName ${swtbot.test-plugin-name}"/>
|
||||
<arg line="-testApplication ${test-application} -clean -nl ta --disableLoginDialog -project TEST_NOLOGIN --deleteProjectIfExist -language java -login a@b.c"/>
|
||||
<arg line="-className ${swtbot.test-class-name}"/>
|
||||
<arg line="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${swtbot.junit.results.path}"/>
|
||||
<arg line="-consoleLog"/>
|
||||
<jvmarg line="-Xms128m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError"/><!-- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1716"/>-->
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<!-- =================================
|
||||
target: to launch all unit tests
|
||||
================================= -->
|
||||
<target name="unit.test.for.talend.rcp.app" description="launch unit test for Talend product defined in ${test-application}, output the unit test result and the application log" depends="init">
|
||||
<echo>Unit test for Product ${test-application} :
|
||||
log file : ${unit.log.path}
|
||||
JunitResult : ${unit.junit.results.path} </echo>
|
||||
<!-- remove last build results -->
|
||||
<delete includeemptydirs="true" quiet="true">
|
||||
<fileset file="${unit.junit.results.path}" />
|
||||
<fileset file="${unit.log.path}"/>
|
||||
</delete>
|
||||
<condition property="extra.jvm.args" value = "-XstartOnFirstThread" else="">
|
||||
<equals arg1="${os.name}" arg2="Mac OS X"/>
|
||||
</condition>
|
||||
<java dir="${rcp-app-home}" fork="true" output="${unit.log.path}" logError="true"
|
||||
classname="org.eclipse.core.launcher.Main" failonerror="false">
|
||||
<syspropertyset refid="unit.test.class.collector.properties"/>
|
||||
<sysproperty key="talend.licence.path" value="${talend.licence.path}"/>
|
||||
<classpath>
|
||||
<fileset dir="${rcp-app-home}/plugins">
|
||||
<include name="org.eclipse.equinox.launcher_*.jar"/>
|
||||
</fileset>
|
||||
</classpath>
|
||||
<arg line="-application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication"/>
|
||||
<arg line="-testpluginname ${unit.test-plugin-name}"/>
|
||||
<arg line="-testApplication ${test-application} -clean -nl ta --disableLoginDialog -project TEST_NOLOGIN --deleteProjectIfExist -language java -login a@b.c"/>
|
||||
<arg line="-classname ${unit.test-class-name}"/>
|
||||
<arg line="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${unit.junit.results.path}"/>
|
||||
<arg line="-consoleLog"/>
|
||||
<jvmarg line="-Xms128m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError ${extra.jvm.args}"/><!-- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1716"/>-->
|
||||
<env key="${extra.env.key}" value="${extra.env.value}"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="run.all.test.for.talend.rcp.app" depends="init,unit.test.for.talend.rcp.app, swtbot.test.for.talend.rcp.app" description="launch unit test and swtbot for Talend product defined in ${test-application}">
|
||||
</target>
|
||||
|
||||
<target name="test">
|
||||
<echoproperties/>
|
||||
<property name="product.version" value="5.0.1"/>
|
||||
|
||||
<condition property="extra.jvm.args" value = "-XstartOnFirstThread">
|
||||
<equals arg1="${os.name}" arg2="Mac OS X"/>
|
||||
</condition>
|
||||
<echo message="extra args = ${extra.jvm.args}"/>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,14 +0,0 @@
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
lib/hadoop-0.20.2-core.jar,\
|
||||
lib/hive-exec-0.7.0.jar,\
|
||||
lib/hive-jdbc-0.7.0.jar,\
|
||||
lib/hive-metastore-0.7.0.jar,\
|
||||
lib/hive-service-0.7.0.jar,\
|
||||
lib/libfb303.jar,\
|
||||
lib/commons-logging-1.0.4.jar,\
|
||||
lib/log4j-1.2.15.jar,\
|
||||
lib/slf4j-log4j12-1.6.1.jar,\
|
||||
lib/slf4j-api-1.6.1.jar
|
||||
@@ -1,33 +0,0 @@
|
||||
ModulesNeededProvider.0=ModulesNeededProvider.getAllMoudlesNeeded
|
||||
ModulesNeededProvider.1=ModulesNeededProvider.getAllMoudlesNeeded
|
||||
ModulesNeededProvider.importModule=User Import Module
|
||||
ModulesNeededProvider.Module.Exception=Module {0} not found
|
||||
ModulesNeededProvider.unusedModule=User Unused Module
|
||||
|
||||
ModulesViewComposite.hint.notInstalled=Not installed
|
||||
|
||||
CheckModulesAction.CheckRefrshBtn.Text=Refresh
|
||||
|
||||
ModulesViewComposite.hint.installed=Installed
|
||||
ModulesViewComposite.hint.unknown=Unknown
|
||||
|
||||
PerlLibrariesService.synchronization=Perl libraries synchronization done
|
||||
PerlModulesViewComposite.Status.TitleText=Status
|
||||
PerlModulesViewComposite.Component.TitleText=Context
|
||||
PerlModulesViewComposite.Module.TitleText=Module
|
||||
PerlModulesViewComposite.Required.TitleText=Description
|
||||
PerlModulesViewComposite.Required.Title=Required
|
||||
PreferencesUtilities.unknowLanguage=Unknown language
|
||||
|
||||
MainPreferencesPage.externalLibPath=External libraries path
|
||||
MainPreferencesPage.externalLibPathJava=External java libraries path
|
||||
MainPreferencesPage.externalLibPathPerl=External perl libraries path
|
||||
MainPreferencesPage.folderSelectionMode=Folder selection mode
|
||||
MainPreferencesPage.sameRootFolder=Same root folder
|
||||
MainPreferencesPage.separateRootFolder=A root folder for each language
|
||||
|
||||
InstallPerlModulesAction.InstallBtn.Text=Install modules
|
||||
JavaLibrariesService.synchronization=Java libraries synchronization done
|
||||
LibrariesService.unknowLanguage=Unknow language
|
||||
RoutineProviderManager.unableLoad=unable to load routine provider
|
||||
SpecificFilesUtils.operationCanceled=Operation is canceled during copying folders or files
|
||||
@@ -1,60 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.core.model.metadata.builder.database;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.talend.core.model.metadata.builder.util.MetadataConnectionUtils;
|
||||
import org.talend.cwm.softwaredeployment.TdSoftwareSystem;
|
||||
import orgomg.cwm.foundation.typemapping.TypeSystem;
|
||||
|
||||
/**
|
||||
* @author scorreia
|
||||
*
|
||||
* This class create softwaredeployment classes from a connection.
|
||||
*/
|
||||
public class SoftwareSystemBuilder extends CwmBuilder {
|
||||
|
||||
private final TdSoftwareSystem softwareSystem;
|
||||
|
||||
private TypeSystem typeSystem;
|
||||
|
||||
// public SoftwareSystemBuilder(Connection conn) throws SQLException {
|
||||
// super(conn);
|
||||
// softwareSystem = initializeSoftwareSystem();
|
||||
// }
|
||||
public SoftwareSystemBuilder(org.talend.core.model.metadata.builder.connection.Connection conn) throws SQLException {
|
||||
super(conn);
|
||||
softwareSystem = initializeSoftwareSystem();
|
||||
}
|
||||
|
||||
private TdSoftwareSystem initializeSoftwareSystem() throws SQLException {
|
||||
TdSoftwareSystem system = MetadataConnectionUtils.getSoftwareSystem(connection);
|
||||
// TODO scorreia uncomment this part when we know where to save the typeSystem.
|
||||
// this.typeSystem = DatabaseContentRetriever.getTypeSystem(connection);
|
||||
//
|
||||
// // --- add type systems: softwareSystem.getTypespace()
|
||||
// system.getTypespace().add(typeSystem);
|
||||
|
||||
return system;
|
||||
}
|
||||
|
||||
public TdSoftwareSystem getSoftwareSystem() {
|
||||
return this.softwareSystem;
|
||||
}
|
||||
|
||||
public TypeSystem getTypeSystem() {
|
||||
return this.typeSystem;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
migrationTasksRecapDialog.title=Migration tasks done
|
||||
migrationTasksRecapDialog.description=Here are the migration tasks applied on this session on this project.
|
||||
MigrationToolService.migrationCancel=Migration task is canceled during {0}.
|
||||
MigrationToolService.taskInProgress=Migration task {0} run in progress...
|
||||
@@ -1,161 +0,0 @@
|
||||
/**
|
||||
* <copyright> </copyright>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
package org.talend.core.model.metadata.builder.connection;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Ebcdic Connection</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getMidFile <em>Mid File</em>}</li>
|
||||
* <li>{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getDataFile <em>Data File</em>}</li>
|
||||
* <li>{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getCodePage <em>Code Page</em>}</li>
|
||||
* <li>{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getSourceFileStart <em>Source File Start</em>}</li>
|
||||
* <li>{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getSourceFileEnd <em>Source File End</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.talend.core.model.metadata.builder.connection.ConnectionPackage#getEbcdicConnection()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EbcdicConnection extends FileConnection {
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Mid File</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Mid File</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Mid File</em>' attribute.
|
||||
* @see #setMidFile(String)
|
||||
* @see org.talend.core.model.metadata.builder.connection.ConnectionPackage#getEbcdicConnection_MidFile()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getMidFile();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getMidFile <em>Mid File</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Mid File</em>' attribute.
|
||||
* @see #getMidFile()
|
||||
* @generated
|
||||
*/
|
||||
void setMidFile(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Data File</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Data File</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Data File</em>' attribute.
|
||||
* @see #setDataFile(String)
|
||||
* @see org.talend.core.model.metadata.builder.connection.ConnectionPackage#getEbcdicConnection_DataFile()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getDataFile();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getDataFile <em>Data File</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Data File</em>' attribute.
|
||||
* @see #getDataFile()
|
||||
* @generated
|
||||
*/
|
||||
void setDataFile(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Code Page</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Code Page</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Code Page</em>' attribute.
|
||||
* @see #setCodePage(String)
|
||||
* @see org.talend.core.model.metadata.builder.connection.ConnectionPackage#getEbcdicConnection_CodePage()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getCodePage();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getCodePage <em>Code Page</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Code Page</em>' attribute.
|
||||
* @see #getCodePage()
|
||||
* @generated
|
||||
*/
|
||||
void setCodePage(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Source File Start</b></em>' attribute.
|
||||
* The default value is <code>"6"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Source File Start</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Source File Start</em>' attribute.
|
||||
* @see #setSourceFileStart(String)
|
||||
* @see org.talend.core.model.metadata.builder.connection.ConnectionPackage#getEbcdicConnection_SourceFileStart()
|
||||
* @model default="6"
|
||||
* @generated
|
||||
*/
|
||||
String getSourceFileStart();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getSourceFileStart <em>Source File Start</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Source File Start</em>' attribute.
|
||||
* @see #getSourceFileStart()
|
||||
* @generated
|
||||
*/
|
||||
void setSourceFileStart(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Source File End</b></em>' attribute.
|
||||
* The default value is <code>"72"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Source File End</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Source File End</em>' attribute.
|
||||
* @see #setSourceFileEnd(String)
|
||||
* @see org.talend.core.model.metadata.builder.connection.ConnectionPackage#getEbcdicConnection_SourceFileEnd()
|
||||
* @model default="72"
|
||||
* @generated
|
||||
*/
|
||||
String getSourceFileEnd();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.talend.core.model.metadata.builder.connection.EbcdicConnection#getSourceFileEnd <em>Source File End</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Source File End</em>' attribute.
|
||||
* @see #getSourceFileEnd()
|
||||
* @generated
|
||||
*/
|
||||
void setSourceFileEnd(String value);
|
||||
} // EbcdicConnection
|
||||
@@ -1,45 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.repository.tester.example;
|
||||
|
||||
import org.eclipse.core.runtime.Assert;
|
||||
import org.talend.core.model.repository.ERepositoryObjectType;
|
||||
import org.talend.repository.model.IRepositoryNode.ENodeType;
|
||||
import org.talend.repository.model.IRepositoryNode.EProperties;
|
||||
import org.talend.repository.model.RepositoryNode;
|
||||
|
||||
public class ExampleTester extends org.eclipse.core.expressions.PropertyTester {
|
||||
|
||||
public ExampleTester() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
|
||||
if ("isJob".equals(property) && receiver instanceof RepositoryNode) { //$NON-NLS-1$
|
||||
|
||||
RepositoryNode repositoryNode = (RepositoryNode) receiver;
|
||||
boolean isJob = repositoryNode.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.PROCESS
|
||||
&& repositoryNode.getType() == ENodeType.REPOSITORY_ELEMENT;
|
||||
return isJob;
|
||||
}
|
||||
if ("isBM".equals(property)) { //$NON-NLS-1$
|
||||
|
||||
boolean isBm = receiver != null && receiver.toString().startsWith("bm"); //$NON-NLS-1$
|
||||
return isBm;
|
||||
}
|
||||
Assert.isTrue(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.repository.viewer.content.example;
|
||||
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.ui.IMemento;
|
||||
import org.eclipse.ui.navigator.ICommonContentExtensionSite;
|
||||
import org.eclipse.ui.navigator.ICommonContentProvider;
|
||||
|
||||
public class ExampleCompContentProvider implements ICommonContentProvider {
|
||||
|
||||
static BusinessModelsContainer theContainer;
|
||||
|
||||
static public class BusinessModelsContainer {
|
||||
|
||||
private final String label;
|
||||
|
||||
public BusinessModelsContainer(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return label;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object[] getElements(Object inputElement) {// only return the container for Jobs
|
||||
return new Object[] { theContainer };
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object[] getChildren(Object parentElement) {
|
||||
if (parentElement instanceof BusinessModelsContainer) {
|
||||
// return new Object[] { "bm1", "bm2", "bm3" }; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
|
||||
}
|
||||
return new Object[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getParent(Object element) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasChildren(Object element) {
|
||||
return (element instanceof BusinessModelsContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void restoreState(IMemento aMemento) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveState(IMemento aMemento) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(ICommonContentExtensionSite aConfig) {
|
||||
theContainer = new BusinessModelsContainer(aConfig.getExtension().getDescriptor().getName());
|
||||
} // implements ITreeContentProvider {
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.repository.viewer.content.example;
|
||||
|
||||
import org.eclipse.jface.viewers.ITreeContentProvider;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.talend.repository.model.RepositoryNode;
|
||||
import org.talend.repository.tester.example.ExampleTester;
|
||||
|
||||
public class ExampleSubCompProvider implements ITreeContentProvider {
|
||||
|
||||
ExampleTester exampleTester = new ExampleTester();
|
||||
|
||||
@Override
|
||||
public Object getParent(Object element) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
//
|
||||
// WARNING, you can return false here and still return children that will be displayed.
|
||||
//
|
||||
//
|
||||
@Override
|
||||
public boolean hasChildren(Object element) {
|
||||
boolean isJob = element instanceof RepositoryNode ? exampleTester.test(element, "isJob", null, null) : false; //$NON-NLS-1$
|
||||
return element.toString().startsWith("bm") || isJob;// just to limit to 1 level //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object[] getElements(Object inputElement) {
|
||||
|
||||
return getChildren(inputElement);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object[] getChildren(Object parentElement) {
|
||||
if (hasChildren(parentElement)) {
|
||||
// return new Object[] { "comp1", "comp2", "comp3" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
}// else no children
|
||||
return new Object[0];
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.repository.viewer.label.example;
|
||||
|
||||
import org.eclipse.jface.viewers.ILabelProvider;
|
||||
import org.eclipse.jface.viewers.ILabelProviderListener;
|
||||
import org.eclipse.swt.graphics.Image;
|
||||
|
||||
/**
|
||||
* DOC sgandon class global comment. Detailled comment <br/>
|
||||
*
|
||||
* $Id: talend.epf 55206 2011-02-15 17:32:14Z mhirt $
|
||||
*
|
||||
*/
|
||||
public class ExampleCompLabelProvider implements ILabelProvider {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener)
|
||||
*/
|
||||
@Override
|
||||
public void addListener(ILabelProviderListener listener) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public boolean isLabelProperty(Object element, String property) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see
|
||||
* org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener)
|
||||
*/
|
||||
@Override
|
||||
public void removeListener(ILabelProviderListener listener) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public Image getImage(Object element) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public String getText(Object element) {
|
||||
return element.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<fileset-config file-format-version="1.2.0" simple-config="true">
|
||||
<fileset name="tous" enabled="true" check-config-name="Talend Checks" local="false">
|
||||
<file-match-pattern match-pattern="." include-pattern="true"/>
|
||||
</fileset>
|
||||
<filter name="FilesFromPackage" enabled="true">
|
||||
<filter-data value="src/main/java/org/talend/json"/>
|
||||
<filter-data value="src/main/java/org/talend/utils/eclipse"/>
|
||||
</filter>
|
||||
<filter name="NonSrcDirs" enabled="true"/>
|
||||
</fileset-config>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="org.talend.utils">
|
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/test/java"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<fixed facet="jst.java"/>
|
||||
<fixed facet="jst.utility"/>
|
||||
<installed facet="jst.java" version="5.0"/>
|
||||
<installed facet="jst.utility" version="1.0"/>
|
||||
</faceted-project>
|
||||
@@ -1,142 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
|
||||
package org.talend.utils.thread;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.FutureTask;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* Class TimeoutTask.
|
||||
*/
|
||||
public class TimeoutTask<R> {
|
||||
|
||||
private AtomicInteger counter = new AtomicInteger();
|
||||
|
||||
/**
|
||||
* TimeoutTask constructor comment.
|
||||
*/
|
||||
public TimeoutTask() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* TimeoutTask constructor comment.
|
||||
*/
|
||||
public TimeoutTask(final String taskName) {
|
||||
super();
|
||||
if (taskName != null) {
|
||||
ThreadFactory threadFactory = new ThreadFactory() {
|
||||
|
||||
ThreadFactory defaultThreadFactory = Executors.defaultThreadFactory();
|
||||
|
||||
public Thread newThread(Runnable r) {
|
||||
Thread newThread = defaultThreadFactory.newThread(r);
|
||||
String threadName = TimeoutTask.this.getClass().getSimpleName() + (taskName != null ? "_" + taskName : "")
|
||||
+ "_" + newThread.getName();
|
||||
newThread.setName(threadName);
|
||||
return newThread;
|
||||
}
|
||||
|
||||
};
|
||||
threadPool = Executors.newCachedThreadPool(threadFactory);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private ExecutorService threadPool;
|
||||
|
||||
/**
|
||||
* Method "run" .
|
||||
*
|
||||
* @param task
|
||||
* @param timeoutMs
|
||||
* @param cancelTaskIfTimeout
|
||||
* @param interruptIfTimeout
|
||||
* @return
|
||||
* @throws TimeoutException
|
||||
* @throws InterruptedException
|
||||
* @throws ExecutionException
|
||||
* @deprecated Use {@link #run(Callable<R>,long,boolean)} instead
|
||||
*/
|
||||
public FutureTask<R> run(Callable<R> task, long timeoutMs, boolean cancelTaskIfTimeout, boolean interruptIfTimeout)
|
||||
throws TimeoutException, InterruptedException, ExecutionException {
|
||||
return run(task, timeoutMs, cancelTaskIfTimeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method "run" .
|
||||
*
|
||||
* @param task
|
||||
* @param timeoutMs
|
||||
* @param cancelTaskIfTimeout
|
||||
* @return
|
||||
* @throws TimeoutException
|
||||
* @throws InterruptedException
|
||||
* @throws ExecutionException
|
||||
*/
|
||||
public FutureTask<R> run(Callable<R> task, long timeoutMs, boolean cancelTaskIfTimeout)
|
||||
throws TimeoutException, InterruptedException, ExecutionException {
|
||||
FutureTask<R> futureTask = new FutureTask<R>(task);
|
||||
run(futureTask, timeoutMs, cancelTaskIfTimeout);
|
||||
return futureTask;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method "run".
|
||||
*
|
||||
* @param futureTask
|
||||
* @param timeoutMs
|
||||
* @param cancelAndInterruptTaskIfTimeout
|
||||
* @return
|
||||
* @throws InterruptedException
|
||||
* @throws ExecutionException
|
||||
* @throws TimeoutException
|
||||
*/
|
||||
private R run(FutureTask<R> futureTask, long timeoutMs, boolean cancelAndInterruptTaskIfTimeout)
|
||||
throws InterruptedException, ExecutionException, TimeoutException {
|
||||
threadPool.execute(futureTask);
|
||||
try {
|
||||
futureTask.get(timeoutMs, TimeUnit.MILLISECONDS);
|
||||
} finally {
|
||||
if (cancelAndInterruptTaskIfTimeout) {
|
||||
futureTask.cancel(true);
|
||||
}
|
||||
}
|
||||
return futureTask.get();
|
||||
}
|
||||
|
||||
public void release() {
|
||||
threadPool.shutdown(); // Disable new tasks from being submitted
|
||||
try {
|
||||
// Wait a while for existing tasks to terminate
|
||||
if (!threadPool.awaitTermination(10, TimeUnit.SECONDS)) {
|
||||
threadPool.shutdownNow(); // Cancel currently executing tasks
|
||||
// Wait a while for tasks to respond to being cancelled
|
||||
threadPool.awaitTermination(10, TimeUnit.SECONDS);
|
||||
}
|
||||
} catch (InterruptedException ie) {
|
||||
// (Re-)Cancel if current thread also interrupted
|
||||
threadPool.shutdownNow();
|
||||
// Preserve interrupt status
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 80 B |
|
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 93 B After Width: | Height: | Size: 93 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 595 B After Width: | Height: | Size: 595 B |
|
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 58 B After Width: | Height: | Size: 58 B |
|
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
BIN
org.talend.common.ui.runtime/icons/download.gif
Normal file
|
After Width: | Height: | Size: 952 B |
|
Before Width: | Height: | Size: 55 B After Width: | Height: | Size: 55 B |
|
Before Width: | Height: | Size: 626 B After Width: | Height: | Size: 626 B |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 54 B After Width: | Height: | Size: 54 B |
|
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 605 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 353 B |
|
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 633 B |
|
Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 95 B |
|
Before Width: | Height: | Size: 556 B After Width: | Height: | Size: 556 B |
|
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 837 B |
|
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 642 B |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 609 B After Width: | Height: | Size: 609 B |
|
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 620 B |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 104 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |