Compare commits
292 Commits
release/8.
...
mhryb/test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c3d5b9d09 | ||
|
|
5e16b805b7 | ||
|
|
70690f3823 | ||
|
|
5060386633 | ||
|
|
5dc6182566 | ||
|
|
bc24b0a472 | ||
|
|
414e8b93c1 | ||
|
|
44479041b0 | ||
|
|
42ec8f8843 | ||
|
|
b4325c119d | ||
|
|
f43cf88fc6 | ||
|
|
a3c32f71d5 | ||
|
|
751b7cc822 | ||
|
|
449122a6aa | ||
|
|
72c3c39960 | ||
|
|
4aa7d424b7 | ||
|
|
2e15e66b24 | ||
|
|
39d54b3dad | ||
|
|
dab790308a | ||
|
|
eb42866a1e | ||
|
|
1fac6fa003 | ||
|
|
bdf8a1ccc0 | ||
|
|
04183a48b6 | ||
|
|
714969ea1e | ||
|
|
aa15e17e54 | ||
|
|
481b01d88c | ||
|
|
b04edb9cd5 | ||
|
|
6519b70981 | ||
|
|
bb3e1ef604 | ||
|
|
2c267d8d50 | ||
|
|
a30eabaa1b | ||
|
|
0cd731e686 | ||
|
|
eed12d3e34 | ||
|
|
37057d6228 | ||
|
|
c7883b0d1d | ||
|
|
9a8c172e8d | ||
|
|
8dbb11a91a | ||
|
|
644ecc5a26 | ||
|
|
c0ef7e02ec | ||
|
|
a54916f18a | ||
|
|
83166701ab | ||
|
|
55116f9c1b | ||
|
|
753ffdaf31 | ||
|
|
4ea8311764 | ||
|
|
2b9fd057da | ||
|
|
20df66b4c8 | ||
|
|
6008069c7f | ||
|
|
6935ceb1ba | ||
|
|
21e3f8688b | ||
|
|
0bb19c6e9e | ||
|
|
dd8c494fd7 | ||
|
|
a4348abdc5 | ||
|
|
7d63f93a98 | ||
|
|
9072ea152e | ||
|
|
7df9d670aa | ||
|
|
419c646277 | ||
|
|
f1fb423be4 | ||
|
|
a002194a25 | ||
|
|
98d08a34ed | ||
|
|
2adfb1a81b | ||
|
|
aed6ab978a | ||
|
|
36332dee59 | ||
|
|
1c4f46e942 | ||
|
|
a06d774108 | ||
|
|
95c1202a8e | ||
|
|
1ddca53d50 | ||
|
|
76dbc39e66 | ||
|
|
01e79e7a7e | ||
|
|
02fb11dcd4 | ||
|
|
f45cc4154d | ||
|
|
fdaea4bbf0 | ||
|
|
791fba4e55 | ||
|
|
7fb59d7f0e | ||
|
|
d37214d277 | ||
|
|
a58d7c9d1c | ||
|
|
e05a70073e | ||
|
|
bebe81ef37 | ||
|
|
24ddd70b72 | ||
|
|
a0ba4fa179 | ||
|
|
8878b983c4 | ||
|
|
1b6e82c73d | ||
|
|
8a35240fc1 | ||
|
|
238bf1c36f | ||
|
|
81267113c4 | ||
|
|
3f1f9495a3 | ||
|
|
06c87d8edf | ||
|
|
f3f79aea29 | ||
|
|
8640719bd5 | ||
|
|
2c1e96eca2 | ||
|
|
0013730512 | ||
|
|
735e374149 | ||
|
|
8415bd7cc9 | ||
|
|
5afb158f40 | ||
|
|
d19115a92e | ||
|
|
0fac5f128f | ||
|
|
cd2debb8fe | ||
|
|
cce55fd50c | ||
|
|
15d5cb8534 | ||
|
|
6fd3096f1e | ||
|
|
6c4fb6eeb4 | ||
|
|
d8e56c0821 | ||
|
|
58308e99f9 | ||
|
|
290f738f89 | ||
|
|
f974cb0dc2 | ||
|
|
b0a3cbc10b | ||
|
|
466b3b9168 | ||
|
|
80b698e8d1 | ||
|
|
79d60a2a8c | ||
|
|
a2ca6d172f | ||
|
|
28e78735b3 | ||
|
|
6744f0bb9e | ||
|
|
0a422f524d | ||
|
|
d919f0ca6c | ||
|
|
1f3a7ecde8 | ||
|
|
07d3021d7a | ||
|
|
6aa673aff4 | ||
|
|
64a73f19e7 | ||
|
|
af2df9217f | ||
|
|
13e54313da | ||
|
|
47c46997e4 | ||
|
|
fc4d3dced3 | ||
|
|
2ecfd9721a | ||
|
|
87e2f6d579 | ||
|
|
f7fafdfafe | ||
|
|
1a7d627354 | ||
|
|
f8a0cdcb02 | ||
|
|
8aeae703e0 | ||
|
|
1493c8b5db | ||
|
|
b9175d5539 | ||
|
|
23cc5b5294 | ||
|
|
32e2da5e46 | ||
|
|
bf60d556f6 | ||
|
|
c03753ed3b | ||
|
|
2e95175cf5 | ||
|
|
e6db20eb6b | ||
|
|
3740aa7555 | ||
|
|
f60f9b8556 | ||
|
|
b9284fb195 | ||
|
|
2be2aca776 | ||
|
|
e7bf6903e0 | ||
|
|
217b2066a2 | ||
|
|
7c08e6236b | ||
|
|
a140559eb0 | ||
|
|
5fd368e8da | ||
|
|
dd13213130 | ||
|
|
6def4544bc | ||
|
|
7a5d67f917 | ||
|
|
cb5e3ee0f2 | ||
|
|
e3d4a2572b | ||
|
|
a4b963cea5 | ||
|
|
c30e472013 | ||
|
|
2c9f2f1588 | ||
|
|
0dd7f8768b | ||
|
|
306a8f9acb | ||
|
|
9d9ff25810 | ||
|
|
dc411f2ae9 | ||
|
|
1dca9cefa0 | ||
|
|
4462619833 | ||
|
|
98973f34fa | ||
|
|
7b8faa1f7f | ||
|
|
9a5f894828 | ||
|
|
0f19086ebb | ||
|
|
a36783bb22 | ||
|
|
ebf6d6e3ca | ||
|
|
6cbb55640a | ||
|
|
d1c74a13d3 | ||
|
|
5797bc3dfc | ||
|
|
c1188cffe1 | ||
|
|
c5ccff15d9 | ||
|
|
3899f4206f | ||
|
|
46d08e8e65 | ||
|
|
56c859a5d5 | ||
|
|
f1d8fcaa83 | ||
|
|
da1471200b | ||
|
|
a7f7d34526 | ||
|
|
79f6698a50 | ||
|
|
30542b9061 | ||
|
|
3391079bac | ||
|
|
d64a264009 | ||
|
|
0940df7b95 | ||
|
|
330089b57c | ||
|
|
73e1c93be1 | ||
|
|
51e78cc5f0 | ||
|
|
a423effeba | ||
|
|
051d4cc1c6 | ||
|
|
148f902491 | ||
|
|
08e1212283 | ||
|
|
72df02d92e | ||
|
|
f1d5b9698f | ||
|
|
b45719b105 | ||
|
|
acf067be0a | ||
|
|
e16f5c5f06 | ||
|
|
dc760e1e49 | ||
|
|
da971daa11 | ||
|
|
6ff39107ef | ||
|
|
086c2a6fd8 | ||
|
|
0ce3135381 | ||
|
|
661adbfc9f | ||
|
|
96af551434 | ||
|
|
0fd400f443 | ||
|
|
8000b084d7 | ||
|
|
1d14d70921 | ||
|
|
3b10bde107 | ||
|
|
9fe706ca2f | ||
|
|
34024271a0 | ||
|
|
e051c33e7d | ||
|
|
38c7be47c2 | ||
|
|
b916cea21d | ||
|
|
f775feeb4e | ||
|
|
2989d8d301 | ||
|
|
075af08737 | ||
|
|
b77044f47a | ||
|
|
1d0fe8bafc | ||
|
|
69c4f2882e | ||
|
|
182b7cc9b7 | ||
|
|
66d03c74fd | ||
|
|
94308a883f | ||
|
|
b4e91e7a1a | ||
|
|
0b9ed535ae | ||
|
|
076fee23dc | ||
|
|
0749a5c667 | ||
|
|
f2f98b78b9 | ||
|
|
c86650d6c9 | ||
|
|
fd72bf972f | ||
|
|
e1ebbaf25b | ||
|
|
89fda24c04 | ||
|
|
48b5e6899e | ||
|
|
6da81b3d21 | ||
|
|
a4471dbfa7 | ||
|
|
8f97c3a7bf | ||
|
|
753ce13f81 | ||
|
|
1bba8debfa | ||
|
|
183ce498b5 | ||
|
|
ab8d71050e | ||
|
|
6737e36814 | ||
|
|
e825eeaf67 | ||
|
|
cb27fc99d0 | ||
|
|
40482fbc8e | ||
|
|
d1ed068488 | ||
|
|
353d118cbf | ||
|
|
0123e8a395 | ||
|
|
12b6393a4e | ||
|
|
a8236fc392 | ||
|
|
834530f209 | ||
|
|
5f1c85681a | ||
|
|
800f6fde3e | ||
|
|
c5241d7df9 | ||
|
|
f9dd069f0a | ||
|
|
6e4c61cce7 | ||
|
|
bae1748a2d | ||
|
|
ae59709071 | ||
|
|
19b007623d | ||
|
|
b9b0a58adb | ||
|
|
d3cd2390d4 | ||
|
|
9b69110cfb | ||
|
|
9f849e5bfc | ||
|
|
1f1eb0aa09 | ||
|
|
9501c8620a | ||
|
|
93f8d76e5f | ||
|
|
48305968e4 | ||
|
|
3805181288 | ||
|
|
d4fac9802b | ||
|
|
173fa611ae | ||
|
|
2362bbb510 | ||
|
|
784925a94a | ||
|
|
23c414b7bb | ||
|
|
72965d2144 | ||
|
|
d33ac625fd | ||
|
|
146128e1ff | ||
|
|
10c54ba948 | ||
|
|
422d47a482 | ||
|
|
7cf3b808b5 | ||
|
|
c818591781 | ||
|
|
3bba089dcf | ||
|
|
e3c9bef73b | ||
|
|
0b61014078 | ||
|
|
bee20f5c38 | ||
|
|
6305b568af | ||
|
|
7e28680515 | ||
|
|
9175afbca4 | ||
|
|
9066543517 | ||
|
|
5b520754cb | ||
|
|
16c312a867 | ||
|
|
c4c8ee1743 | ||
|
|
99ab8a4f0f | ||
|
|
e90c23bbbd | ||
|
|
c0bd68c94a | ||
|
|
c775d46f93 | ||
|
|
4ec13bb73b | ||
|
|
1966719ecb | ||
|
|
354eb83830 | ||
|
|
174d6f52bb |
@@ -7,4 +7,5 @@ Huge thanks to these people who contributed in making Talend product better:
|
||||
- [overpackaging](https://github.com/overpackaging) (Steeve Dreux)
|
||||
- [brazabr](https://github.com/brazabr) (Thiago Benvenuto)
|
||||
- [phoflack](https://jira.talendforge.org/secure/ViewProfile.jspa?name=phoflack) (Philip Hoflack)
|
||||
- [bgunics-talend](https://github.com/bgunics-talend) (Balasz Gunics)
|
||||
- [bgunics-talend](https://github.com/bgunics-talend) (Balasz Gunics)
|
||||
- [cflamain](https://github.com/cflamain) (Christophe Flamain)
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.studio.components.tcompv0.jira.feature</name>
|
||||
<name>org.talend.studio.components.tck.jdbc.feature</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.talend.studio.components.tck.jdbc.feature"
|
||||
label="JDBC"
|
||||
version="8.0.1.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
JDBC
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
JDBC
|
||||
Copyright (c) 2006-2021 Talend Inc. - www.talend.com
|
||||
All rights reserved.
|
||||
|
||||
This product includes software developed at
|
||||
GlassFish Community (https://glassfish.dev.java.net)
|
||||
Licensed under the CDDL,GPL-2.0-only license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://jakarta.apache.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML
|
||||
Licensed under the Apache-2.0 license.
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import plugin="org.talend.designer.maven.repo.tck"/>
|
||||
<import plugin="org.talend.studio.components.tck.jdbc"/>
|
||||
<import plugin="org.talend.components.jdbc.definition"/>
|
||||
</requires>
|
||||
|
||||
</feature>
|
||||
@@ -7,6 +7,6 @@
|
||||
<version>8.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.studio.components.tcompv0.jira.feature</artifactId>
|
||||
<artifactId>org.talend.studio.components.tck.jdbc.feature</artifactId>
|
||||
<packaging>eclipse-feature</packaging>
|
||||
</project>
|
||||
@@ -1,23 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.studio.components.tcompv0.splunk.feature</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.studio.components.tck.jira.feature</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,2 @@
|
||||
bin.includes = feature.xml,\
|
||||
p2.inf
|
||||
@@ -1,102 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.talend.studio.components.tcompv0.jira.feature"
|
||||
label="Jira"
|
||||
version="8.0.1.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
Jira component
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
Jira component
|
||||
Copyright (c) 2006-2021 Talend Inc. - www.talend.com
|
||||
All rights reserved.
|
||||
|
||||
This product includes software developed at
|
||||
OPS4J - Open Participation Software for Java
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
GlassFish Community (https://glassfish.dev.java.net)
|
||||
Licensed under the CDDL,GPL-2.0-only license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://jakarta.apache.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
OSGi Alliance (http://www.osgi.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Joda.org (http://www.joda.org)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML (http://fasterxml.com)
|
||||
Licensed under the JSON license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Google, Inc.
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
AddThis
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the MIT license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the X11 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
JUnit
|
||||
Licensed under the EPL-1.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Seam Framework
|
||||
Licensed under the Apache-2.0 license.
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import plugin="org.talend.designer.maven.repo.tcompv0" version="0.0.0" match="greaterOrEqual"/>
|
||||
</requires>
|
||||
|
||||
<plugin
|
||||
id="org.talend.studio.components.tcompv0.jira"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.components.jira"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.talend.studio.components.tck.jira.feature"
|
||||
label="Jira"
|
||||
version="8.0.1.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
Jira component
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
Jira component
|
||||
Copyright (c) 2006-2021 Talend Inc. - www.talend.com
|
||||
All rights reserved.
|
||||
|
||||
This product includes software developed at
|
||||
OPS4J - Open Participation Software for Java
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
GlassFish Community (https://glassfish.dev.java.net)
|
||||
Licensed under the CDDL,GPL-2.0-only license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://jakarta.apache.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
OSGi Alliance (http://www.osgi.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Joda.org (http://www.joda.org)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML (http://fasterxml.com)
|
||||
Licensed under the JSON license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Google, Inc.
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
AddThis
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the MIT license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the X11 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
JUnit
|
||||
Licensed under the EPL-1.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Seam Framework
|
||||
Licensed under the Apache-2.0 license.
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import plugin="org.talend.designer.maven.repo.tck" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import plugin="org.talend.designer.maven.repo.tcksdk" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import plugin="org.talend.studio.components.tck.jira"/>
|
||||
</requires>
|
||||
|
||||
</feature>
|
||||
@@ -0,0 +1,4 @@
|
||||
properties.0.name=TALEND_COMPONENT_tJIRAInput
|
||||
properties.0.value=
|
||||
properties.1.name=TALEND_COMPONENT_tJIRAOutput
|
||||
properties.1.value=
|
||||
@@ -7,6 +7,6 @@
|
||||
<version>8.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.studio.components.tcompv0.splunk.feature</artifactId>
|
||||
<artifactId>org.talend.studio.components.tck.jira.feature</artifactId>
|
||||
<packaging>eclipse-feature</packaging>
|
||||
</project>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.studio.components.tck.splunk.feature</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,2 @@
|
||||
bin.includes = feature.xml,\
|
||||
p2.inf
|
||||
@@ -1,102 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.talend.studio.components.tcompv0.splunk.feature"
|
||||
label="Splunk"
|
||||
version="8.0.1.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
Splunk component
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
Splunk component
|
||||
Copyright (c) 2006-2021 Talend Inc. - www.talend.com
|
||||
All rights reserved.
|
||||
|
||||
This product includes software developed at
|
||||
OPS4J - Open Participation Software for Java
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
GlassFish Community (https://glassfish.dev.java.net)
|
||||
Licensed under the CDDL,GPL-2.0-only license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://jakarta.apache.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
OSGi Alliance (http://www.osgi.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Joda.org (http://www.joda.org)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML (http://fasterxml.com)
|
||||
Licensed under the JSON license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Google, Inc.
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
AddThis
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the MIT license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the X11 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
JUnit
|
||||
Licensed under the EPL-1.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Seam Framework
|
||||
Licensed under the Apache-2.0 license.
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import plugin="org.talend.designer.maven.repo.tcompv0" version="0.0.0" match="greaterOrEqual"/>
|
||||
</requires>
|
||||
|
||||
<plugin
|
||||
id="org.talend.studio.components.tcompv0.splunk"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.components.splunk"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.talend.studio.components.tck.splunk.feature"
|
||||
label="Splunk"
|
||||
version="8.0.1.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
Splunk component
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
Splunk component
|
||||
Copyright (c) 2006-2021 Talend Inc. - www.talend.com
|
||||
All rights reserved.
|
||||
|
||||
This product includes software developed at
|
||||
OPS4J - Open Participation Software for Java
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
GlassFish Community (https://glassfish.dev.java.net)
|
||||
Licensed under the CDDL,GPL-2.0-only license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
The Apache Software Foundation (http://jakarta.apache.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
OSGi Alliance (http://www.osgi.org/)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Joda.org (http://www.joda.org)
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
FasterXML (http://fasterxml.com)
|
||||
Licensed under the JSON license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Google, Inc.
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
AddThis
|
||||
Licensed under the Apache-2.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the MIT license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
SLF4J.ORG
|
||||
Licensed under the X11 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
JUnit
|
||||
Licensed under the EPL-1.0 license.
|
||||
|
||||
|
||||
This product includes software developed at
|
||||
Seam Framework
|
||||
Licensed under the Apache-2.0 license.
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import plugin="org.talend.designer.maven.repo.tck" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import plugin="org.talend.designer.maven.repo.tcksdk" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import plugin="org.talend.studio.components.tck.splunk"/>
|
||||
</requires>
|
||||
|
||||
</feature>
|
||||
@@ -0,0 +1,2 @@
|
||||
properties.0.name=TALEND_COMPONENT_tSplunkEventCollector
|
||||
properties.0.value=
|
||||
@@ -7,6 +7,6 @@
|
||||
<version>8.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.components.exchange</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
<artifactId>org.talend.studio.components.tck.splunk.feature</artifactId>
|
||||
<packaging>eclipse-feature</packaging>
|
||||
</project>
|
||||
@@ -15,17 +15,5 @@
|
||||
<license url="http://www.example.com/license">
|
||||
[Enter License Description here.]
|
||||
</license>
|
||||
<plugin
|
||||
id="org.talend.studio.components.tcompv0.jdbc"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.components.jdbc.definition"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
bin.includes = feature.xml
|
||||
@@ -17,14 +17,13 @@
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import feature="org.talend.studio.components.tcompv0.jdbc.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tck.jira.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tck.splunk.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.netsuite.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.googledrive.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.marketo.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.azurestorage.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.snowflake.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.jira.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.splunk.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.studio.components.tcompv0.salesforce.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import feature="org.talend.esb.tooling.ws.consumer.feature" version="0.0.0" match="greaterOrEqual"/>
|
||||
<import plugin="biz.aQute.bnd.annotation" version="0.0.0" match="greaterOrEqual"/>
|
||||
@@ -84,7 +83,7 @@
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.components.jira"
|
||||
id="org.talend.studio.components.tck.jira"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
@@ -119,7 +118,7 @@
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.components.splunk"
|
||||
id="org.talend.studio.components.tck.splunk"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
@@ -139,12 +138,6 @@
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.components.exchange"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.components.localprovider"
|
||||
download-size="0"
|
||||
@@ -164,7 +157,7 @@
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.filemultischemas"
|
||||
download-size="0"
|
||||
@@ -248,12 +241,18 @@
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.esb.components.rs.consumer"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.studio.components.tck.jdbc"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
</feature>
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
<plugin id="org.talend.libraries.excel" download-size="0" install-size="0" version="0.0.0"/>
|
||||
<plugin id="org.talend.libraries.groovy" download-size="0" install-size="0" version="0.0.0"/>
|
||||
<plugin id="org.talend.libraries.guava" download-size="0" install-size="0" version="0.0.0"/>
|
||||
<plugin id="org.talend.libraries.hadoop.mapr.5.0.0" download-size="0" install-size="0" version="0.0.0"/>
|
||||
<plugin id="org.talend.libraries.jackson" download-size="0" install-size="0" version="0.0.0"/>
|
||||
<plugin download-size="0" install-size="0" version="0.0.0" unpack="false" id="org.talend.libraries.javacsv"/>
|
||||
<plugin id="org.talend.libraries.jax" download-size="0" install-size="0" version="0.0.0"/>
|
||||
|
||||
@@ -87,12 +87,12 @@
|
||||
"tIngresConnection",
|
||||
"tInterbaseConnection",
|
||||
"tJDBCConnection",
|
||||
"JDBCConnection",
|
||||
"tMSSqlConnection",
|
||||
"tMysqlConnection",
|
||||
"tNetezzaConnection",
|
||||
"tOracleConnection",
|
||||
"tParAccelConnection",
|
||||
"tPostgresPlusConnection",
|
||||
"tPostgresqlConnection",
|
||||
"tRedshiftConnection",
|
||||
"tSQLiteConnection",
|
||||
@@ -325,6 +325,8 @@
|
||||
|
||||
private final static java.util.Properties jobInfo = new java.util.Properties();
|
||||
private final static java.util.Map<String,String> mdcInfo = new java.util.HashMap<>();
|
||||
private final static java.util.concurrent.atomic.AtomicLong subJobPidCounter = new java.util.concurrent.atomic.AtomicLong();
|
||||
|
||||
|
||||
public static void main(String[] args){
|
||||
final <%=className %> <%=className %>Class = new <%=className %>();
|
||||
@@ -784,7 +786,7 @@
|
||||
//print info and job continue to run, for case: context_param is not empty.
|
||||
System.err.println("Could not find the context " + contextStr);
|
||||
}
|
||||
|
||||
|
||||
if(!context_param.isEmpty()) {
|
||||
context.putAll(context_param);
|
||||
//set types for params from parentJobs
|
||||
@@ -966,7 +968,7 @@
|
||||
<%if(isLog4jEnabled && isLog4j2Enabled) {%>
|
||||
<%=MDC_CLASS%>.put("_context", contextStr);
|
||||
log.info("TalendJob: '<%=codeGenArgument.getJobName()%>' - Started.");
|
||||
mdcInfo.putAll(<%=MDC_CLASS%>.getCopyOfContextMap());
|
||||
java.util.Optional.ofNullable(<%=MDC_CLASS%>.getCopyOfContextMap()).ifPresent(mdcInfo::putAll);
|
||||
<%}%>
|
||||
|
||||
<%
|
||||
@@ -1868,6 +1870,31 @@ if (execStat) {
|
||||
context_param.put(keyValue.substring(0, index), keyValue.substring(index + 1) );
|
||||
}
|
||||
}
|
||||
} else if (arg.startsWith("--context_file")) {
|
||||
String keyValue = arg.substring(15);
|
||||
String filePath = new String(java.util.Base64.getDecoder().decode(keyValue));
|
||||
java.nio.file.Path contextFile = java.nio.file.Paths.get(filePath);
|
||||
try (java.io.BufferedReader reader = java.nio.file.Files.newBufferedReader(contextFile)) {
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
int index = -1;
|
||||
if ( (index = line.indexOf('=')) > -1) {
|
||||
if (line.startsWith("--context_param")) {
|
||||
if ("id_Password".equals(context_param.getContextType(line.substring(16, index)))) {
|
||||
context_param.put(line.substring(16, index), routines.system.PasswordEncryptUtil.decryptPassword(
|
||||
line.substring(index + 1)));
|
||||
} else {
|
||||
context_param.put(line.substring(16, index), line.substring(index + 1));
|
||||
}
|
||||
}else {//--context_type
|
||||
context_param.setContextType(line.substring(15, index), line.substring(index + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (java.io.IOException e) {
|
||||
System.err.println("Could not load the context file: " + filePath);
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else if (arg.startsWith("--log4jLevel=")) {
|
||||
log4jLevel = arg.substring(13);
|
||||
} else if (arg.startsWith("--audit.enabled") && arg.contains("=")) {//for trunjob call
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
SchemaSettingTool_<%=cid%>_<%=schemaIndex%>_<%=classNameTail%> sst_<%=cid%>_<%=schemaIndex%>_<%=classNameTail%> = new SchemaSettingTool_<%=cid%>_<%=schemaIndex%>_<%=classNameTail%>();
|
||||
|
||||
props_<%=cid %><%=propInfo.fieldName%>.setValue("<%=property.getName()%>",
|
||||
new org.apache.avro.Schema.Parser().parse(sst_<%=cid%>_<%=schemaIndex%>_<%=classNameTail%>.getSchemaValue()));
|
||||
new org.apache.avro.Schema.Parser().setValidateDefaults(false).parse(sst_<%=cid%>_<%=schemaIndex%>_<%=classNameTail%>.getSchemaValue()));
|
||||
<%
|
||||
} else if (!(value instanceof String) || !((String)value).equals("")) {
|
||||
%>
|
||||
|
||||
@@ -224,7 +224,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<% if (column.getOriginalDbColumnName() == null) { %>
|
||||
return null;
|
||||
<% } else { %>
|
||||
return "<%=TalendTextUtils.escapeJavaText(TalendTextUtils.removeQuotes(column.getOriginalDbColumnName()))%>";
|
||||
return "<%=TalendTextUtils.escapeJavaText(column.getOriginalDbColumnName())%>";
|
||||
<% } %>
|
||||
}
|
||||
|
||||
@@ -1098,7 +1098,8 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
} else if(javaType.isObjectBased() || typeToGenerate.equals("Geometry") || typeToGenerate.equals("Dynamic")) {
|
||||
%>
|
||||
dos.writeObject(this.<%=column.getLabel() %>);
|
||||
dos.clearInstanceCache();
|
||||
dos.writeObject(this.<%=column.getLabel() %>);
|
||||
<%
|
||||
} else {
|
||||
typeToGenerate =JavaTypesManager.getTypeToGenerate(column.getTalendType(), false);
|
||||
@@ -1430,7 +1431,8 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
} else if(typeToGenerate.equals("Object") || typeToGenerate.equals("Geometry") || typeToGenerate.equals("BigDecimal") || typeToGenerate.equals("List") || typeToGenerate.equals("Dynamic") || typeToGenerate.equals("Document")) {
|
||||
%>
|
||||
objectOut.writeObject(this.<%=column.getLabel() %>);
|
||||
objectOut.clearInstanceCache();
|
||||
objectOut.writeObject(this.<%=column.getLabel() %>);
|
||||
<%
|
||||
} else {
|
||||
typeToGenerate =JavaTypesManager.getTypeToGenerate(column.getTalendType(), false);
|
||||
@@ -1595,6 +1597,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
<% if (subTree.isMethodSizeNeeded()){ %>
|
||||
/**
|
||||
* Start of Function: <%=subTree.getName() %>Process.
|
||||
@@ -1608,7 +1611,7 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
<%if(isLog4jEnabled && isLog4j2Enabled) {%>
|
||||
mdcInfo.forEach(<%=MDC_CLASS%>::put);
|
||||
<%=MDC_CLASS%>.put("_subJobName", "<%=subTree.getName() %>");
|
||||
<%=MDC_CLASS%>.put("_subJobPid", TalendString.getAsciiRandomString(6));
|
||||
<%=MDC_CLASS%>.put("_subJobPid", "<%=getAsciiRandomString(6)%>_" + subJobPidCounter.getAndIncrement());
|
||||
<%}%>
|
||||
|
||||
<%
|
||||
|
||||
@@ -93,7 +93,25 @@ public class CLASS
|
||||
}
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
|
||||
// copy from routine TalendString
|
||||
private static String getAsciiRandomString(int length) {
|
||||
java.security.SecureRandom random = new java.security.SecureRandom();
|
||||
int cnt = 0;
|
||||
StringBuilder builder = new StringBuilder();
|
||||
char ch;
|
||||
int end = 'z' + 1;
|
||||
int start = ' ';
|
||||
while (cnt < length) {
|
||||
ch = (char) (random.nextInt(end - start) + start);
|
||||
if (Character.isLetterOrDigit(ch)) {
|
||||
builder.append(ch);
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
public String generate(Object argument) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ FAMILY.MySQL=MySQL
|
||||
FAMILY.Netezza=Netezza
|
||||
FAMILY.OLAP_Cube=OLAP\u30AD\u30E5\u30FC\u30D6
|
||||
FAMILY.Oracle=Oracle
|
||||
FAMILY.Orchestration=\u30D7\u30ED\u30BB\u30B9\u5236\u5FA1
|
||||
FAMILY.Orchestration=\u30AA\u30FC\u30B1\u30B9\u30C8\u30EC\u30FC\u30B7\u30E7\u30F3\u5316
|
||||
FAMILY.Output=\u51FA\u529B
|
||||
FAMILY.ParAccel=ParAccel
|
||||
FAMILY.PostgreSQL=PostgreSQL
|
||||
|
||||
@@ -599,6 +599,13 @@ public class CodeGenerator implements ICodeGenerator {
|
||||
|
||||
} else {
|
||||
// if (!isIterate) {
|
||||
if (isTacokitProcessor(node)) {
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.PROCESS_RECORDS_END, incomingName, typeGen));
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.PROCESS_DATA_BEGIN, incomingName, typeGen));
|
||||
codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.MAIN, typeGen));
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.PROCESS_DATA_END, incomingName, typeGen));
|
||||
}
|
||||
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.END, incomingName, typeGen));
|
||||
// }
|
||||
if (node.getComponent() instanceof Component) {
|
||||
@@ -629,12 +636,6 @@ public class CodeGenerator implements ICodeGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
if (isTacokitProcessor(node)) {
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.PROCESS_RECORDS_END, incomingName, typeGen));
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.PROCESS_DATA_BEGIN, incomingName, typeGen));
|
||||
codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.MAIN, typeGen));
|
||||
codeComponent.append(generateComponentCode(subProcess, node, ECodePart.PROCESS_DATA_END, incomingName, typeGen));
|
||||
}
|
||||
codeComponent.append(generatesTreeCode(subProcess, node, part, typeGen));
|
||||
// if (isIterate) {
|
||||
// codeComponent.append(generateComponentCode(node,
|
||||
@@ -655,11 +656,14 @@ public class CodeGenerator implements ICodeGenerator {
|
||||
return codeComponent;
|
||||
}
|
||||
|
||||
private static final String TACOKIT_PROCESSOR_CODE_DIR = "tacokit/jet_stub/generic/processor";
|
||||
|
||||
private boolean isTacokitProcessor(final INode node) {
|
||||
return "org.talend.sdk.component.studio.ComponentModel".equals(node.getComponent().getClass().getName())
|
||||
&& !NodeUtil.getIncomingConnections(node, IConnectionCategory.DATA).isEmpty(); //has input data
|
||||
final String componentModelClass = node.getComponent().getClass().getName();
|
||||
return ("org.talend.sdk.component.studio.ComponentModel".equals(componentModelClass) || "org.talend.sdk.component.studio.AdditionalJDBCComponentModel".equals(componentModelClass))
|
||||
&& (!NodeUtil.getIncomingConnections(node, IConnectionCategory.DATA).isEmpty() || TACOKIT_PROCESSOR_CODE_DIR.equals(node.getComponent().getTemplateFolder()));
|
||||
}
|
||||
|
||||
|
||||
private StringBuffer generateSeperateEndCode(NodesSubTree subProcess, INode node, String incomingName, ETypeGen typeGen)
|
||||
throws CodeGeneratorException {
|
||||
StringBuffer codeComponent = new StringBuffer();
|
||||
|
||||
@@ -59,7 +59,9 @@ import org.talend.core.model.components.IComponentsFactory;
|
||||
import org.talend.core.model.components.IComponentsHandler;
|
||||
import org.talend.core.model.components.filters.ComponentsFactoryProviderManager;
|
||||
import org.talend.core.model.components.filters.IComponentFactoryFilter;
|
||||
import org.talend.core.runtime.services.IGenericService;
|
||||
import org.talend.core.runtime.util.ComponentsLocationProvider;
|
||||
import org.talend.core.service.ITCKUIService;
|
||||
import org.talend.core.ui.IJobletProviderService;
|
||||
import org.talend.core.ui.ISparkJobletProviderService;
|
||||
import org.talend.core.ui.ISparkStreamingJobletProviderService;
|
||||
@@ -73,6 +75,7 @@ import org.talend.designer.core.model.components.EmfComponent;
|
||||
import org.talend.designer.core.model.process.AbstractProcessProvider;
|
||||
import org.talend.designer.core.model.process.GenericProcessProvider;
|
||||
import org.talend.designer.core.ui.editor.jobletcontainer.JobletUtil;
|
||||
import org.talend.designer.core.utils.UnifiedComponentUtil;
|
||||
|
||||
/**
|
||||
* Component factory that look for each component and load their information. <br/>
|
||||
@@ -231,7 +234,15 @@ public class ComponentsFactory implements IComponentsFactory {
|
||||
if (StringUtils.isEmpty(componentName)) {
|
||||
continue;
|
||||
}
|
||||
if (IGenericService.getService().isTcompv0(component)
|
||||
&& (UnifiedComponentUtil.isAdditionalJDBCComponent(component.getName())
|
||||
|| component.getName().contains(ITCKUIService.get().getTCKJDBCType().getLabel()))) {
|
||||
continue;
|
||||
}
|
||||
String componentNameLowerCase = componentName.toLowerCase();
|
||||
if (componentNameLowerCase.startsWith(ITCKUIService.get().getTCKJDBCType().getLabel().toLowerCase())) {
|
||||
componentNameLowerCase = "t" + componentNameLowerCase;
|
||||
}
|
||||
Map<String, Set<IComponent>> map = componentNameMap.get(componentNameLowerCase);
|
||||
if (map == null) {
|
||||
map = new HashMap<String, Set<IComponent>>();
|
||||
|
||||
@@ -378,7 +378,7 @@ public class TalendJetEmitter extends JETEmitter {
|
||||
// Construct a proper URL for relative lookup.
|
||||
//
|
||||
URL url = new File(project.getLocation() + "/" + "runtime" + "/") //$NON-NLS-1$ //$NON-NLS-2$
|
||||
.toURL();
|
||||
.toURI().toURL();
|
||||
URLClassLoader theClassLoader = new URLClassLoader(new URL[] { url }, jetEmitter.classLoader);
|
||||
Class theClass = theClassLoader.loadClass((packageName.length() == 0 ? "" : packageName + ".") //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ jetCompiler.getSkeleton().getClassName());
|
||||
@@ -633,7 +633,7 @@ public class TalendJetEmitter extends JETEmitter {
|
||||
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
|
||||
IProject project = workspace.getRoot().getProject(projectName);
|
||||
|
||||
URL url = new File(project.getLocation() + "/runtime").toURL(); //$NON-NLS-1$
|
||||
URL url = new File(project.getLocation() + "/runtime").toURI().toURL(); //$NON-NLS-1$
|
||||
currentClassLoader = jetbean.getClassLoader();
|
||||
theClassLoader = new URLClassLoader(new URL[] { url }, jetbean.getClassLoader());
|
||||
}
|
||||
|
||||
@@ -418,6 +418,13 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
jetBean.setClassLoader(createDelegateClassLoader(jetBean.getClassLoader(), sparkUtilsPluginName,
|
||||
"org.talend.designer.spark.SparkPlugin")); //$NON-NLS-1$
|
||||
}
|
||||
String bigdataDIUtilsPluginName = "org.talend.designer.bigdata.di"; //$NON-NLS-1$
|
||||
if (PluginChecker.isPluginLoaded(bigdataDIUtilsPluginName)) {
|
||||
jetBean.addClassPath("BIGDATA_DI_LIBRARIES", bigdataDIUtilsPluginName); //$NON-NLS-1$
|
||||
jetBean.setClassLoader(createDelegateClassLoader(jetBean.getClassLoader(), bigdataDIUtilsPluginName,
|
||||
"org.talend.designer.bigdata.di.BigdataDiPlugin")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
return jetBean;
|
||||
}
|
||||
|
||||
@@ -473,6 +480,7 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
// generate the code.
|
||||
String sparkUtilsPluginName = "org.talend.designer.spark"; //$NON-NLS-1$
|
||||
String bigDataUtilsPluginName = "org.talend.designer.bigdata"; //$NON-NLS-1$
|
||||
String bigdataDIUtilsPluginName = "org.talend.designer.bigdata.di"; //$NON-NLS-1$
|
||||
if (PluginChecker.isPluginLoaded(sparkUtilsPluginName) && ("SPARK".equals(component.getPaletteType()) //$NON-NLS-1$
|
||||
|| "MR".equals(component.getPaletteType()) || "STORM".equals(component.getPaletteType()) //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|| "SPARKSTREAMING".equals(component.getPaletteType()))) { //$NON-NLS-1$
|
||||
@@ -494,6 +502,22 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
jetBean.getClassLoader()));
|
||||
}
|
||||
|
||||
} else if (PluginChecker.isPluginLoaded(bigdataDIUtilsPluginName)) { //$NON-NLS-1$
|
||||
jetBean.addClassPath("BIGDATA_DI_LIBRARIES", bigdataDIUtilsPluginName); //$NON-NLS-1$
|
||||
jetBean.setClassLoader(createDelegateClassLoader(new CodeGeneratorEmittersPoolFactory().getClass().getClassLoader(),
|
||||
bigdataDIUtilsPluginName, "org.talend.designer.bigdata.di.BigdataDiPlugin")); //$NON-NLS-1$
|
||||
|
||||
// If Big Data DI AND with an external component, use the external component as the parent classloader and
|
||||
// Big Data DI as a secondary, delegate classloader.
|
||||
if (component.getPluginExtension() != null) {
|
||||
jetBean.addClassPath(
|
||||
"EXTERNAL_COMPONENT_" + component.getPluginExtension().toUpperCase().replaceAll("\\.", "_"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
component.getPluginExtension());
|
||||
jetBean.setClassLoader(new DelegateClassLoader(
|
||||
ExternalNodesFactory.getInstance(component.getPluginExtension()).getClass().getClassLoader(),
|
||||
jetBean.getClassLoader()));
|
||||
}
|
||||
|
||||
} else if (component.getPluginExtension() != null) {
|
||||
|
||||
jetBean.addClassPath("EXTERNAL_COMPONENT_" + component.getPluginExtension().toUpperCase().replaceAll("\\.", "_"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
@@ -540,7 +564,7 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
JetBean jetBean = new JetBean(componentsPath, templateURI, "component", component.getVersion(), //$NON-NLS-1$
|
||||
"", codePart.getName());//$NON-NLS-1$
|
||||
addCommonLibs(jetBean);
|
||||
jetBean.addClassPath("AVRO", "org.apache.servicemix.bundles.avro"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
jetBean.addClassPath("AVRO", "avro"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
for (String pluginDependency : component.getPluginDependencies()) {
|
||||
jetBean.addClassPath(pluginDependency.toUpperCase().replaceAll("\\.", "_") + "_LIBRARIES", pluginDependency); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
|
||||
@@ -38,9 +38,7 @@ import org.eclipse.core.runtime.FileLocator;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
import org.talend.commons.runtime.utils.io.IOUtils;
|
||||
import org.talend.core.model.components.ComponentCompilations;
|
||||
@@ -138,9 +136,6 @@ public final class JetSkeletonManager {
|
||||
}
|
||||
project.open(new NullProgressMonitor());
|
||||
IFile file = project.getFile("SkeletonUpdateCache"); //$NON-NLS-1$
|
||||
if (!file.exists()) {
|
||||
file.create(null, true, new NullProgressMonitor());
|
||||
}
|
||||
return file.getLocation().toFile();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#Wed Aug 31 14:34:59 CST 2011
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
@@ -1,41 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Exchange Plug-in
|
||||
Bundle-SymbolicName: org.talend.designer.components.exchange;singleton:=true
|
||||
Bundle-Version: 8.0.1.qualifier
|
||||
Bundle-Activator: org.talend.designer.components.exchange.ExchangePlugin
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
org.eclipse.ui,
|
||||
org.apache.log4j,
|
||||
org.apache.commons.collections,
|
||||
org.apache.commons.discovery,
|
||||
org.apache.commons.logging,
|
||||
org.apache.commons.commons-beanutils,
|
||||
org.apache.commons.io,
|
||||
org.apache.commons.lang,
|
||||
org.apache.commons.httpclient,
|
||||
org.talend.commons.ui,
|
||||
org.talend.core,
|
||||
org.talend.core.ui,
|
||||
org.talend.utils,
|
||||
org.talend.librariesmanager,
|
||||
org.talend.libraries.mozilla;resolution:=optional,
|
||||
org.talend.libraries.uniserv;resolution:=optional,
|
||||
org.talend.designer.core,
|
||||
org.talend.model,
|
||||
org.talend.repository,
|
||||
org.talend.core.repository,
|
||||
org.talend.updates.runtime,
|
||||
org.eclipse.ui.intro,
|
||||
org.eclipse.ui.forms,
|
||||
org.eclipse.jface.text
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Vendor: .Talend SA.
|
||||
Export-Package: org.talend.designer.components.exchange,
|
||||
org.talend.designer.components.exchange.i18n,
|
||||
org.talend.designer.components.exchange.ui,
|
||||
org.talend.designer.components.exchange.ui.views
|
||||
Eclipse-BundleShape: dir
|
||||
Import-Package: org.codehaus.jackson,
|
||||
org.codehaus.jackson.map,
|
||||
org.talend.registration.wizards.register
|
||||
@@ -1,16 +0,0 @@
|
||||
source.. = src/main/java/
|
||||
output.. = class/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
plugin.xml,\
|
||||
icons/,\
|
||||
plugin.properties,\
|
||||
model/,\
|
||||
content/,\
|
||||
plugin_de.properties,\
|
||||
plugin_fr.properties,\
|
||||
plugin_it.properties,\
|
||||
plugin_ja.properties,\
|
||||
plugin_ru.properties,\
|
||||
plugin_swtbot.properties,\
|
||||
plugin_zh_CN.properties
|
||||
@@ -1,204 +0,0 @@
|
||||
body, td, th {
|
||||
font-size: 12px;
|
||||
color: #404040;
|
||||
line-height: 23px;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
padding: 5px;
|
||||
}
|
||||
input, textarea {
|
||||
border: 1px solid #9BB9F5;
|
||||
}
|
||||
body {
|
||||
margin: 0px;
|
||||
height: 100%;
|
||||
background-color: #EBEBDB;
|
||||
}
|
||||
ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style-type: none;
|
||||
}
|
||||
a:link.xh {
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover.xh {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited.xh {
|
||||
text-decoration: none;
|
||||
color: #000000;
|
||||
}
|
||||
.hover {
|
||||
background: rgb(167,207,223); /* Old browsers */
|
||||
color: white
|
||||
}
|
||||
.leave {
|
||||
background: none;
|
||||
}
|
||||
img {
|
||||
border: 0px;
|
||||
}
|
||||
.style_1 {
|
||||
font-size: 16px;
|
||||
}
|
||||
.style_2 {
|
||||
color: #000000;
|
||||
}
|
||||
.style_3 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.style_4{
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
div {
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
#container {
|
||||
position:relative;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#container .menu {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
float: left;
|
||||
border: 1px solid #9BB9F5;
|
||||
border-right: 0px;
|
||||
}
|
||||
#container .main1 {
|
||||
position: absolute;
|
||||
left: 200;
|
||||
top: 0;
|
||||
float: left;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
#menu li {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
padding: 0px 0px;
|
||||
}
|
||||
.ulhide {
|
||||
display: none;
|
||||
overflow: auto;
|
||||
}
|
||||
.ulblock {
|
||||
display: block;
|
||||
}
|
||||
.left_1 {
|
||||
width: 100px;
|
||||
margin-top: 10px;
|
||||
float: left;
|
||||
padding-left: 0px;
|
||||
vertical-align: top;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.compDesc {
|
||||
height: 200px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 30px;
|
||||
padding-left: 20px;
|
||||
overflow: auto;
|
||||
border: 1px solid #9BB9F5;
|
||||
}
|
||||
.compImg {
|
||||
height: 200px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 30px;
|
||||
padding-left: 10px;
|
||||
border: 1px solid #9BB9F5;
|
||||
}
|
||||
.reviews {
|
||||
width: 60%;
|
||||
height: 350px;
|
||||
margin-bottom: 10px;
|
||||
padding-left: 10px;
|
||||
word-break: break-all;
|
||||
WORD-WRAP: break-word;
|
||||
}
|
||||
.userreview {
|
||||
font-size: 13px;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.left_11 {
|
||||
width: 100px;
|
||||
margin-top: 10px;
|
||||
float: left;
|
||||
padding-left: 0px;
|
||||
vertical-align: top;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.toolbar {
|
||||
background-color: #EBEBDB;
|
||||
border: 1px solid #9BB9F5;
|
||||
border-bottom: 0px;
|
||||
height: 40px;
|
||||
padding: 5px;
|
||||
}
|
||||
.icon {
|
||||
-moz-border-radius: 3px;
|
||||
border: 1px solid #EBEBDB;
|
||||
border-radius: 3px;
|
||||
padding: 5px;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
a.icon:hover {
|
||||
border: 1px solid #9BB9F5;
|
||||
}
|
||||
.toolbarButton {
|
||||
-moz-border-radius: 3px;
|
||||
border: 1px solid #EBEBDB;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
width: 140px;
|
||||
}
|
||||
a.toolbarButton:hover {
|
||||
border: 1px solid #9BB9F5;
|
||||
}
|
||||
table.tableStyle {
|
||||
width: 600px;
|
||||
}
|
||||
.formStyle {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
border: 1px solid #9BB9F5;
|
||||
border-top: 0px;
|
||||
}
|
||||
|
||||
div.fileinputs {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.fakefile {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
input.file {
|
||||
position: relative;
|
||||
text-align: right;
|
||||
-moz-opacity:0 ;
|
||||
filter:alpha(opacity: 0);
|
||||
opacity: 0;
|
||||
z-index: 2;
|
||||
width: 260px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -1,620 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
||||
<script type="text/javascript">
|
||||
|
||||
String.prototype.replaceAll = function(s1, s2) {
|
||||
return this.replace(new RegExp(s1, "gm"), s2);
|
||||
}
|
||||
String.prototype.replaceAll2Excep = function(s1, s2) {
|
||||
var temp = this;
|
||||
while(temp.indexOf(s1) != -1) {
|
||||
temp = temp.replace(s1, s2);
|
||||
}
|
||||
return temp;
|
||||
}
|
||||
|
||||
function onResizeDocument () {
|
||||
var navName = navigator.appName;
|
||||
var newWidth = null;
|
||||
var tabs;
|
||||
var intWidth = null;
|
||||
var newWidth = null;
|
||||
if(navName == 'Microsoft Internet Explorer'){
|
||||
intWidth = (document.body.clientWidth - 213);
|
||||
}else{
|
||||
intWidth = (document.width - 213);
|
||||
}
|
||||
newWidth = intWidth+"px";
|
||||
tabs = document.getElementsByTagName("table");
|
||||
|
||||
tabs[0].style.width = newWidth;
|
||||
tabs[1].style.width = newWidth;
|
||||
tabs[2].style.width = (intWidth - 20)+"px";
|
||||
tabs[4].style.width = newWidth;
|
||||
tabs[5].style.width = newWidth;
|
||||
tabs[6].style.width = newWidth;
|
||||
tabs[9].style.width = newWidth;
|
||||
tabs[12].style.width = newWidth;
|
||||
}
|
||||
|
||||
function onchangeFileUpload(fileId,fakefileId){
|
||||
var v = document.getElementById(fileId).value;
|
||||
document.getElementById(fakefileId).value=v;
|
||||
}
|
||||
|
||||
function filterReWriteUrl() {
|
||||
var prefix = "http://org.eclipse.ui.intro/runAction?pluginId=org.talend.designer.components.exchange&class=org.talend.designer.components.exchange.ui.actions.FilterExtensionAction&id=org.talend.designer.components.exchange.ui.actions.FilterExtensionAction&text="
|
||||
var jsonObj = document.getElementById("avialable_filter_text").value;
|
||||
var url = prefix + jsonObj;
|
||||
document.getElementById('commit_filter').href = url;
|
||||
}
|
||||
|
||||
function createNewExtensionWriteUrl() {
|
||||
|
||||
|
||||
var prefix = "http://org.eclipse.ui.intro/runAction?pluginId=org.talend.designer.components.exchange&class=org.talend.designer.components.exchange.ui.htmlcontent.MyExtensionAction&id=org.talend.designer.components.exchange.ui.htmlcontent.MyExtensionAction&type=UPLOAD_MY_EXTENSION"
|
||||
|
||||
var label = "label:" + "'" + document.getElementById("extension_label").value + "'";
|
||||
var lastVersionAvailable = "lastVersionAvailable:" + "'" + document.getElementById("lastVersionAvailable").value + "'";
|
||||
var description = "description:" + "'" + document.getElementById("extension_description").value + "'";
|
||||
description = description.replaceAll2Excep("\r\n", "/n/r");
|
||||
|
||||
var checkedType = "";
|
||||
var filtervalue = "";
|
||||
var compatibilities = document.getElementsByName("compatibility");
|
||||
if(compatibilities[0].checked == true) {
|
||||
checkedType = "all"
|
||||
filtervalue = null;
|
||||
} else if(compatibilities[1].checked == true) {
|
||||
checkedType = "older"
|
||||
filtervalue = document.getElementById(checkedType).value;
|
||||
} else if(compatibilities[2].checked == true) {
|
||||
checkedType = "newer"
|
||||
filtervalue = document.getElementById(checkedType).value;
|
||||
} else if(compatibilities[3].checked == true) {
|
||||
checkedType = "except"
|
||||
filtervalue = document.getElementById(checkedType).value;
|
||||
} else if(compatibilities[4].checked == true) {
|
||||
checkedType = "only"
|
||||
filtervalue = document.getElementById(checkedType).value;
|
||||
}
|
||||
|
||||
<!-- validate the createNewExtension text start-->
|
||||
var labelValidate = document.getElementById("extension_label").value;
|
||||
var lastVersionAvailableValidate = document.getElementById("lastVersionAvailable").value;
|
||||
var filename = document.getElementById("filename").value;
|
||||
var isSkipPage = true;
|
||||
if(labelValidate.replace(/\s/g,"")==""){
|
||||
alert("Extension Title is empty");
|
||||
isSkipPage = false;
|
||||
}else if(labelValidate!=labelValidate.replace(/(^\s*)|(\s*$)/g,"")){
|
||||
alert("Extension Title contains incorrect characters!");
|
||||
isSkipPage = false;
|
||||
}else if(labelValidate=="null"){
|
||||
alert("Extension Title can not be null");
|
||||
isSkipPage = false;
|
||||
}else if(lastVersionAvailableValidate.replace(/\s/g,"")==""){
|
||||
alert("Initial Version is empty");
|
||||
isSkipPage = false;
|
||||
}else if(lastVersionAvailableValidate!=lastVersionAvailableValidate.replace(/[^\w\.\/]/ig,'')){
|
||||
alert("Initial Version contains incorrect characters!");
|
||||
isSkipPage = false;
|
||||
}else if(lastVersionAvailableValidate=="null"){
|
||||
alert("Initial Version can not be null");
|
||||
isSkipPage = false;
|
||||
}else if(filename.replace(/\s/g,"")==""){
|
||||
alert("Please input a vaild File path");
|
||||
isSkipPage = false;
|
||||
}
|
||||
|
||||
<!-- validate the createNewExtension text end-->
|
||||
if (isSkipPage == true) {
|
||||
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
|
||||
var filter = "filter:" + "'" + filtervalue + "'";
|
||||
var filename = "filename:" + "'" + document.getElementById("filename").value + "'";
|
||||
filename = filename.replaceAll2Excep("\\", "/");
|
||||
var jsonObj = "{" + label + "," + lastVersionAvailable + "," + description + "," + listVersionCompatibles + "," + filter + "," + filename + "}"
|
||||
|
||||
var url = prefix + "&extensionValues=" + jsonObj;
|
||||
document.getElementById('commit').href = url;
|
||||
window.location.href = document.getElementById('commit').href;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function updateReWriteUrl() {
|
||||
|
||||
var prefix = "http://org.eclipse.ui.intro/runAction?pluginId=org.talend.designer.components.exchange&class=org.talend.designer.components.exchange.ui.htmlcontent.MyExtensionAction&id=org.talend.designer.components.exchange.ui.htmlcontent.MyExtensionAction&type=UPDATE_MY_EXTENSION"
|
||||
|
||||
var lastVersionAvailable = "lastVersionAvailable:" + "'" + document.getElementById("lastVersionAvailable_update").value + "'";
|
||||
|
||||
var checkedType = "";
|
||||
var filtervalue = "";
|
||||
var compatibilities = document.getElementsByName("compatibility_update");
|
||||
if(compatibilities[0].checked == true) {
|
||||
checkedType = "all"
|
||||
filtervalue = null;
|
||||
} else if(compatibilities[1].checked == true) {
|
||||
checkedType = "older"
|
||||
filtervalue = document.getElementById(checkedType + "_update").value;
|
||||
} else if(compatibilities[2].checked == true) {
|
||||
checkedType = "newer"
|
||||
filtervalue = document.getElementById(checkedType + "_update").value;
|
||||
} else if(compatibilities[3].checked == true) {
|
||||
checkedType = "except"
|
||||
filtervalue = document.getElementById(checkedType + "_update").value;
|
||||
} else if(compatibilities[4].checked == true) {
|
||||
checkedType = "only"
|
||||
filtervalue = document.getElementById(checkedType + "_update").value;
|
||||
}
|
||||
|
||||
<!-- validate the updateExtension text start-->
|
||||
var lastVersionAvailable_updateValidate = document.getElementById("lastVersionAvailable_update").value;
|
||||
var filename_update = document.getElementById("filename_update").value;
|
||||
var isSkipPage = true;
|
||||
if(lastVersionAvailable_updateValidate.replace(/\s/g,"")==""){
|
||||
alert("New Version is empty");
|
||||
isSkipPage = false;
|
||||
}else if(lastVersionAvailable_updateValidate!=lastVersionAvailable_updateValidate.replace(/[^\w\.\/]/ig,'')){
|
||||
alert("New Version contains incorrect characters!");
|
||||
isSkipPage = false;
|
||||
}else if(lastVersionAvailable_updateValidate=="null"){
|
||||
alert("New Version can not be null");
|
||||
isSkipPage = false;
|
||||
}else if(filename_update.replace(/\s/g,"")==""){
|
||||
alert("Please input a vaild File path");
|
||||
isSkipPage = false;
|
||||
}
|
||||
<!-- validate the updateExtension text end-->
|
||||
|
||||
if (isSkipPage == true) {
|
||||
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
|
||||
var filter = "filter:" + "'" + filtervalue + "'";
|
||||
var filename = "filename:" + "'" + document.getElementById("filename_update").value + "'";
|
||||
filename = filename.replaceAll2Excep("\\", "/");
|
||||
var jsonObj = "{" + lastVersionAvailable + "," + listVersionCompatibles + "," + filter + "," + filename + "}"
|
||||
|
||||
var url = prefix + "&extensionValues=" + jsonObj;
|
||||
document.getElementById('commit_update').href = url;
|
||||
window.location.href = document.getElementById('commit_update').href;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function modifyReWriteUrl() {
|
||||
var prefix = "http://org.eclipse.ui.intro/runAction?pluginId=org.talend.designer.components.exchange&class=org.talend.designer.components.exchange.ui.htmlcontent.MyExtensionAction&id=org.talend.designer.components.exchange.ui.htmlcontent.MyExtensionAction&type=MODIFY_MY_EXTENSION"
|
||||
var leabel = "label:" + "'" + document.getElementById("extension_label_modify").value + "'"
|
||||
var description = "description:" + "'" + document.getElementById("extension_description_modify").value + "'"
|
||||
|
||||
|
||||
description = description.replaceAll2Excep("\r\n", "/n/r");
|
||||
var checkedType = "";
|
||||
var filtervalue = "";
|
||||
var compatibilities = document.getElementsByName("compatibility_modify");
|
||||
|
||||
|
||||
if(compatibilities[0].checked == true) {
|
||||
checkedType = "all"
|
||||
filtervalue = null;
|
||||
} else if(compatibilities[1].checked == true) {
|
||||
checkedType = "older"
|
||||
filtervalue = document.getElementById(checkedType + "_modify").value;
|
||||
} else if(compatibilities[2].checked == true) {
|
||||
checkedType = "newer"
|
||||
filtervalue = document.getElementById(checkedType + "_modify").value;
|
||||
} else if(compatibilities[3].checked == true) {
|
||||
checkedType = "except"
|
||||
filtervalue = document.getElementById(checkedType + "_modify").value;
|
||||
} else if(compatibilities[4].checked == true) {
|
||||
checkedType = "only"
|
||||
filtervalue = document.getElementById(checkedType + "_modify").value;
|
||||
}
|
||||
|
||||
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
|
||||
var filter = "filter:" + "'" + filtervalue + "'";
|
||||
var jsonObj = "{" + leabel + "," + description + "," + listVersionCompatibles + "," + filter + "}"
|
||||
|
||||
var url = prefix + "&extensionValues=" + jsonObj;
|
||||
|
||||
|
||||
document.getElementById('commit_modify').href = url;
|
||||
}
|
||||
|
||||
//can't use for cycle in the javascript,each time call the length fuction ,get error in document parser
|
||||
function setTab(tabIndex, pageId) {
|
||||
var tli = document.getElementById("menu").getElementsByTagName("li");
|
||||
var mli = document.getElementById("main1").getElementsByTagName("ul");
|
||||
if(tabIndex == 0) {
|
||||
tli[0].className = "hover"
|
||||
tli[1].className = "leave"
|
||||
tli[2].className = "leave"
|
||||
} else if(tabIndex == 1) {
|
||||
tli[0].className = "leave"
|
||||
tli[1].className = "hover"
|
||||
tli[2].className = "leave"
|
||||
} else if(tabIndex == 2) {
|
||||
tli[0].className = "leave"
|
||||
tli[1].className = "leave"
|
||||
tli[2].className = "hover"
|
||||
}
|
||||
if(pageId == mli[0].id) {
|
||||
mli[0].className = "ulblock"
|
||||
mli[1].className = "ulhide"
|
||||
mli[2].className = "ulhide"
|
||||
mli[3].className = "ulhide"
|
||||
mli[4].className = "ulhide"
|
||||
mli[5].className = "ulhide"
|
||||
mli[6].className = "ulhide"
|
||||
} else if(pageId == mli[1].id) {
|
||||
mli[0].className = "ulhide"
|
||||
mli[1].className = "ulblock"
|
||||
mli[2].className = "ulhide"
|
||||
mli[3].className = "ulhide"
|
||||
mli[4].className = "ulhide"
|
||||
mli[5].className = "ulhide"
|
||||
mli[6].className = "ulhide"
|
||||
} else if(pageId == mli[2].id) {
|
||||
mli[0].className = "ulhide"
|
||||
mli[1].className = "ulhide"
|
||||
mli[2].className = "ulblock"
|
||||
mli[3].className = "ulhide"
|
||||
mli[4].className = "ulhide"
|
||||
mli[5].className = "ulhide"
|
||||
mli[6].className = "ulhide"
|
||||
} else if(pageId == mli[3].id) {
|
||||
mli[0].className = "ulhide"
|
||||
mli[1].className = "ulhide"
|
||||
mli[2].className = "ulhide"
|
||||
mli[3].className = "ulblock"
|
||||
mli[4].className = "ulhide"
|
||||
mli[5].className = "ulhide"
|
||||
mli[6].className = "ulhide"
|
||||
} else if(pageId == mli[4].id) {
|
||||
mli[0].className = "ulhide"
|
||||
mli[1].className = "ulhide"
|
||||
mli[2].className = "ulhide"
|
||||
mli[3].className = "ulhide"
|
||||
mli[4].className = "ulblock"
|
||||
mli[5].className = "ulhide"
|
||||
mli[6].className = "ulhide"
|
||||
} else if(pageId == mli[5].id) {
|
||||
mli[0].className = "ulhide"
|
||||
mli[1].className = "ulhide"
|
||||
mli[2].className = "ulhide"
|
||||
mli[3].className = "ulhide"
|
||||
mli[4].className = "ulhide"
|
||||
mli[5].className = "ulblock"
|
||||
mli[6].className = "ulhide"
|
||||
} else if(pageId == mli[6].id) {
|
||||
mli[0].className = "ulhide"
|
||||
mli[1].className = "ulhide"
|
||||
mli[2].className = "ulhide"
|
||||
mli[3].className = "ulhide"
|
||||
mli[4].className = "ulhide"
|
||||
mli[5].className = "ulhide"
|
||||
mli[6].className = "ulblock"
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<link rel="stylesheet" href="css/exchange.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
|
||||
</head>
|
||||
<body onresize="onResizeDocument()" onload="onResizeDocument()" >
|
||||
<div id="container">
|
||||
<div class="menu" id="menu">
|
||||
<ul id="ul_menu">
|
||||
<li class="hover" id="tab1" onclick="setTab(0,'list_available_extensions')">
|
||||
Available Extensions
|
||||
</li>
|
||||
<li id="tab2" onclick="setTab(1,'downloaded_extensions')">
|
||||
Downloaded Extensions
|
||||
</li>
|
||||
<li id="tab3" onclick="setTab(2,'list_my_extensions')">
|
||||
My Extensions
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="main1" id="main1">
|
||||
<!-- available extension list -->
|
||||
<ul class="ulhide" id="list_available_extensions">
|
||||
<li>
|
||||
<table align="center" cellpadding="0" cellspacing="0" class="tableStyle">
|
||||
<tr align="right">
|
||||
<td colspan="5" class="toolbar">
|
||||
<input id="avialable_filter_text" name="avialable_filter_text" type="text" />
|
||||
<a class="icon" href="http://org.eclipse.ui.intro/runAction?pluginId=org.talend.designer.components.exchange&class=org.talend.designer.components.exchange.ui.actions.FilterExtensionAction&id=org.talend.designer.components.exchange.ui.actions.FilterExtensionAction&text=" id="commit_filter"><img onmouseover="filterReWriteUrl()" src="imgs/refresh.gif"/> </a></td>
|
||||
</tr>
|
||||
<div id="INSERT_EXTENSION_DATA" xmlns="">
|
||||
<contentProvider id="INSERT_EXTENSION_DATA" class="org.talend.designer.components.exchange.ui.htmlcontent.AvailableCompositeProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- extension details -->
|
||||
<ul class="ulblock" id="extension_details">
|
||||
<li>
|
||||
<table align="center" cellpadding="0" cellspacing="0" class="tableStyle" style="border: 1px solid #9BB9F5;" >
|
||||
<tr align="left">
|
||||
<td class="toolbar" colspan="5" style="border:0px;border-bottom:1px solid #9BB9F5;"><a class="icon"><img onclick="setTab(0,'list_available_extensions')" src="imgs/backward_nav.gif"/></a></td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td>
|
||||
<div id="div_name_part">
|
||||
<div id="LEFT_NAME_PART" xmlns="">
|
||||
<contentProvider id="LEFT_NAME_PART" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</div></td>
|
||||
</tr>
|
||||
<tr align="left" valign="top">
|
||||
<td valign="top">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="75%">
|
||||
<div class="compDesc" id="component_description_part">
|
||||
<div id="COMPONENT_DESCRIPTION" xmlns="">
|
||||
<contentProvider id="COMPONENT_DESCRIPTION" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="25%">
|
||||
<div class="compImg" id="component_Image_part">
|
||||
<table align="center" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="GET_EXTENSION_IMAGE" xmlns="">
|
||||
<contentProvider id="GET_EXTENSION_IMAGE" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="RATE_IMANGE" xmlns="">
|
||||
<contentProvider id="RATE_IMANGE" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="INSTALL_COMPONENT" xmlns="">
|
||||
<contentProvider id="INSTALL_COMPONENT" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="userreview">User Reviews </td>
|
||||
<td>
|
||||
<div id="WRITE_REVIEWS" xmlns="">
|
||||
<contentProvider id="WRITE_REVIEWS" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="reviews" id="component_reviews_part">
|
||||
<div id="EXTENSION_REVIEWS" xmlns=""/>
|
||||
<contentProvider id="EXTENSION_REVIEWS" class="org.talend.designer.components.exchange.ui.htmlcontent.ExchangeContentProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!--downloaded extensions page -->
|
||||
<ul class="ulhide" id="downloaded_extensions">
|
||||
<li>
|
||||
<table align="center" cellpadding="0" cellspacing="0" class="tableStyle">
|
||||
<tr align="left">
|
||||
<td class="toolbar" colspan="5" style="border-bottom:0px solid #9BB9F5;"><a class="icon"><img onclick="setTab(2,'list_my_extensions')" src="imgs/backward_nav.gif"/></a></td>
|
||||
</tr>
|
||||
<div id="DOWNLOADEXTENSION_DATA" xmlns="">
|
||||
<contentProvider id="DOWNLOADEXTENSION_DATA" class="org.talend.designer.components.exchange.ui.htmlcontent.DownloadExtensionProvider" pluginId="org.talend.designer.components.exchange"> </contentProvider>
|
||||
</div>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- my extension list -->
|
||||
<ul class="ulhide" id="list_my_extensions">
|
||||
<li>
|
||||
<table align="center" cellpadding="0" cellspacing="0" id="table" class="tableStyle">
|
||||
<tr align="right">
|
||||
<td class="toolbar" colspan="5">
|
||||
<a onclick="setTab(2,'creat_new_extension')" class="toolbarButton">
|
||||
Add New Extension
|
||||
</a></td>
|
||||
</tr>
|
||||
<div id="LIST_MY_EXTENSION" xmlns="">
|
||||
<contentProvider id="LIST_MY_EXTENSION" class="org.talend.designer.components.exchange.ui.htmlcontent.MyExchangeContentProvider" pluginId="org.talend.designer.components.exchange"/>
|
||||
</div>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- create new extension -->
|
||||
<ul class="ulhide" id="creat_new_extension">
|
||||
<li>
|
||||
<table align="center" cellpadding="0" cellspacing="0" id="tab_creat_new_extension" class="tableStyle">
|
||||
<tr align="left">
|
||||
<td class="toolbar" colspan="5" style="border-bottom:1px solid #9BB9F5;"><a class="icon"><img onclick="setTab(2,'list_my_extensions')" src="imgs/backward_nav.gif"/></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px">
|
||||
<div class="formStyle">
|
||||
<table>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;font-weight:bold;"> Add New Extension </span></td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;"> Extension Title: </span></td>
|
||||
<td width="100%"><input id="extension_label" name="extension_label" style="width:230px;margin-left:5px" type="text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px"> Initial Version: </span></td>
|
||||
<td><input id="lastVersionAvailable" name="lastVersionAvailable" style="width:100px;margin-left:5px" type="text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap" valign="top"><span style="margin-left:10px;"> Compatibility: </span></td>
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr ><td><input checked="checked" name="compatibility" type="radio"/></td><td>All versions</td><td></td></tr>
|
||||
<tr><td><input name="compatibility" type="radio"/></td><td nowrap="nowrap">Version and older:</td><td width="100%"><input id="older" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility" type="radio"/></td><td nowrap="nowrap">Versions and newer:</td><td><input id="newer" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility" type="radio"/></td><td nowrap="nowrap">All versions except:</td><td><input id="except" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility" type="radio"/></td><td nowrap="nowrap">Only these versions:</td><td><input id="only" style="width:100%;" type="text"/></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap" valign="top"><span style="margin-left:10px;"> Description: </span></td>
|
||||
<td><textarea id="extension_description" name="extension_description" style="width:100%;height:100px;margin-left:5px" type="text"> </textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;"> File: </span></td>
|
||||
<td>
|
||||
<div class="fileinputs" style="margin-left:3px;">
|
||||
<input id="filename" name="filename" type="file" class="file myFileUpload" onchange="onchangeFileUpload('filename','fake_filename')" style="cursor: pointer" />
|
||||
<div class="fakefile" style="cursor: pointer; width: 260px">
|
||||
<input id="fake_filename" style="cursor: pointer; width: 230px" class="myFileUpload"/>
|
||||
<img src="imgs/upload.png" style="cursor: pointer"/>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ></td>
|
||||
<td>
|
||||
<a class="xh" href="" id="commit" style="margin-left:5px;">
|
||||
<button onclick="createNewExtensionWriteUrl()" style="width: 176px">
|
||||
Add Extension
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- update extension -->
|
||||
<ul class="ulblock" id="upload_extension_version">
|
||||
<li>
|
||||
<table align="center" cellpadding="0" cellspacing="0" class="tableStyle" id="tab_upload_extension_version">
|
||||
<tr align="left">
|
||||
<td class="toolbar" colspan="5" style="border-bottom:1px solid #9BB9F5;"><a class="icon"><img onclick="setTab(2,'list_my_extensions')" src="imgs/backward_nav.gif"/></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px">
|
||||
<div class="formStyle">
|
||||
<table>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;font-weight:bold;"> Upload New Version </span></td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px"> New Version: </span></td>
|
||||
<td><contentProvider id="LAST_AVAILABLE_VERSION" class="org.talend.designer.components.exchange.ui.htmlcontent.MyExchangeContentProvider" pluginId="org.talend.designer.components.exchange"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap" valign="top"><span style="margin-left:10px;"> Compatibility: </span></td>
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr ><td><input checked="checked" name="compatibility_update" type="radio"/></td><td>All versions</td><td></td></tr>
|
||||
<tr><td><input name="compatibility_update" type="radio"/></td><td nowrap="nowrap">Version and older:</td><td width="100%"><input id="older_update" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility_update" type="radio"/></td><td nowrap="nowrap">Versions and newer:</td><td><input id="newer_update" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility_update" type="radio"/></td><td nowrap="nowrap">All versions except:</td><td><input id="except_update" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility_update" type="radio"/></td><td nowrap="nowrap">Only these versions:</td><td><input id="only_update" style="width:100%;" type="text"/></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;"> File: </span></td>
|
||||
<td>
|
||||
<div class="fileinputs" style="margin-left:3px;">
|
||||
<input id="filename_update" name="filename" type="file" class="file myFileUpload" onchange="onchangeFileUpload('filename_update','fake_filename_update')" style="cursor: pointer" /> <div class="fakefile" style="cursor: pointer; width: 260px">
|
||||
<input id="fake_filename_update" style="cursor: pointer; width: 230px" class="myFileUpload"/>
|
||||
<img src="imgs/upload.png" style="cursor: pointer"/>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ></td>
|
||||
<td>
|
||||
<a class="xh" href="" id="commit_update" style="margin-left:5px;">
|
||||
<button onclick="updateReWriteUrl()" style="width: 176px">
|
||||
Upload Extension
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- modify myextension -->
|
||||
<ul class="ulblock" id="modify_my_extension_page">
|
||||
<li>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" id="tab_modify_my_extension_page" class="tableStyle">
|
||||
<tr align="left">
|
||||
<td class="toolbar" colspan="5" style="border-bottom:1px solid #9BB9F5;"><a class="icon"><img onclick="setTab(2,'list_my_extensions')" src="imgs/backward_nav.gif" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px">
|
||||
|
||||
<table style="border: 1px solid #9BB9F5; border-top: 0px">
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;font-weight:bold;"> Modify Last Revision </span></td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><span style="margin-left:10px;"> Extension Title: </span></td>
|
||||
<td width="100%"><contentProvider id="EXTENSION_LABEL" class="org.talend.designer.components.exchange.ui.htmlcontent.MyExchangeContentProvider" pluginId="org.talend.designer.components.exchange"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap" valign="top"><span style="margin-left:10px;"> Compatibility: </span></td>
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr ><td><input checked="checked" name="compatibility_modify" type="radio"/></td><td>All versions</td><td></td></tr>
|
||||
<tr><td><input name="compatibility_modify" type="radio"/></td><td nowrap="nowrap">Version and older:</td><td width="100%"><input id="older_modify" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility_modify" type="radio"/></td><td nowrap="nowrap">Versions and newer:</td><td><input id="newer_modify" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility_modify" type="radio"/></td><td nowrap="nowrap">All versions except:</td><td><input id="except_modify" style="width:100%;" type="text"/></td></tr>
|
||||
<tr><td><input name="compatibility_modify" type="radio"/></td><td nowrap="nowrap">Only these versions:</td><td><input id="only_modify" style="width:100%;" type="text"/></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap" valign="top"><span style="margin-left:10px;"> Description: </span></td>
|
||||
<td><textarea id="extension_description_modify" name="extension_description" style="width:100%;height:100px;margin-left:5px" type="text"> </textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<a class="xh" href="" id="commit_modify" style="margin-left:5px;">
|
||||
<button onclick="window.location.href=document.getElementById('commit_modify').href" onmouseover="modifyReWriteUrl()" style="width: 176px">
|
||||
Modify Last Revision
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 327 B |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 360 B |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 225 B |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 139 B |
|
Before Width: | Height: | Size: 746 B |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 952 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 210 B |
|
Before Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 128 B |
@@ -1,66 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ecore:EPackage xmi:version="2.0"
|
||||
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
|
||||
nsURI="exchange" nsPrefix="exchange">
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="Language">
|
||||
<eLiterals name="PERL" value="1"/>
|
||||
<eLiterals name="JAVA" value="2"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Category">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="categoryId" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="categoryName" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="VersionRevision">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="versionId" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="versionName" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ComponentExtension">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="idExtension" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="label" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="typeExtension" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="versionExtension" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lastVersionAvailable" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="publicationDate" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="rate" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="author" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="language" lowerBound="1"
|
||||
eType="#//Language" defaultValueLiteral=""/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="reviews" lowerBound="1"
|
||||
upperBound="-1" eType="#//AvailableExtensionViewDetail" containment="true"
|
||||
eOpposite="#//AvailableExtensionViewDetail/extension"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="downloadedVersion" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dateDownload" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="listVersionCompatibles"
|
||||
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="filename" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="linkDownload" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AvailableExtensionViewDetail">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="author" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="title" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="reviewrate" lowerBound="1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="extension" lowerBound="1"
|
||||
eType="#//ComponentExtension" eOpposite="#//ComponentExtension/reviews"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
||||
@@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<genmodel:GenModel xmi:version="2.0"
|
||||
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="// ============================================================================
//
// Copyright (C) 2006-2019 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
//
// ============================================================================"
|
||||
modelDirectory="/org.talend.designer.components.exchange/src/main/java" editDirectory="/org.talend.designer.components.exchange.edit/src"
|
||||
editorDirectory="/org.talend.designer.components.exchange.editor/src" modelPluginID="org.talend.designer.components.exchange"
|
||||
modelName="Exchange" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0"
|
||||
copyrightFields="false" editPluginID="org.talend.designer.components.exchange.edit"
|
||||
editorPluginID="org.talend.designer.components.exchange.editor">
|
||||
<foreignModel>exchange.ecore</foreignModel>
|
||||
<genPackages prefix="Exchange" basePackage="org.talend.designer.components.exchange"
|
||||
disposableProviderFactory="true" ecorePackage="exchange.ecore#/">
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="exchange.ecore#//Language">
|
||||
<genEnumLiterals ecoreEnumLiteral="exchange.ecore#//Language/PERL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="exchange.ecore#//Language/JAVA"/>
|
||||
</genEnums>
|
||||
<genClasses ecoreClass="exchange.ecore#//Category">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//Category/categoryId"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//Category/categoryName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="exchange.ecore#//VersionRevision">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//VersionRevision/versionId"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//VersionRevision/versionName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="exchange.ecore#//ComponentExtension">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/idExtension"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/label"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/typeExtension"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/versionExtension"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/lastVersionAvailable"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/publicationDate"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/description"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/rate"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/author"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/language"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference exchange.ecore#//ComponentExtension/reviews"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/downloadedVersion"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/dateDownload"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/listVersionCompatibles"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/filename"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//ComponentExtension/linkDownload"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="exchange.ecore#//AvailableExtensionViewDetail">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//AvailableExtensionViewDetail/author"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//AvailableExtensionViewDetail/title"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//AvailableExtensionViewDetail/comment"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exchange.ecore#//AvailableExtensionViewDetail/reviewrate"/>
|
||||
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference exchange.ecore#//AvailableExtensionViewDetail/extension"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
||||
@@ -1,5 +0,0 @@
|
||||
Exchange=Exchange
|
||||
DownloadComponenentsAction.Label=Download Selected Components
|
||||
RefreshComponenentsAction.Label=Refresh Components List
|
||||
providerName=www.example.org
|
||||
pluginName=Exchange Model
|
||||
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse version="3.4"?>
|
||||
<plugin>
|
||||
<extension
|
||||
point="org.talend.core.components_provider">
|
||||
<ComponentsProvider
|
||||
class="org.talend.designer.components.exchange.ExchangeComponentsProvider"
|
||||
folderName="exchange"
|
||||
id="org.talend.designer.components.exchange.ExchangeComponentsProvider">
|
||||
</ComponentsProvider>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.talend.core.components_provider">
|
||||
<ComponentsProvider
|
||||
class="org.talend.designer.components.exchange.SharedStudioExchangeComponentsProvider"
|
||||
folderName="exchange"
|
||||
id="org.talend.designer.components.exchange.SharedStudioExchangeComponentsProvider">
|
||||
</ComponentsProvider>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.talend.core.runtime.service">
|
||||
<Service
|
||||
class="org.talend.designer.components.exchange.ui.dialog.ExchangeService"
|
||||
serviceId="IExchangeService">
|
||||
</Service>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.ui.editors">
|
||||
<editor
|
||||
class="org.talend.designer.components.exchange.ui.views.ExchangeView"
|
||||
default="false"
|
||||
icon="icons/exchange_view.png"
|
||||
id="org.talend.designer.components.exchange.ui.views.ExchangeView"
|
||||
name="Exchange">
|
||||
</editor>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
@@ -1,3 +0,0 @@
|
||||
DownloadComponenentsAction.Label=Lade ausgew\u00E4hlte Komponente
|
||||
RefreshComponenentsAction.Label=Komponentenliste aktualisieren
|
||||
providerName=www.beispiel.de
|
||||
@@ -1 +0,0 @@
|
||||
providerName=www.example.org
|
||||
@@ -1,5 +0,0 @@
|
||||
Exchange=Exchange
|
||||
DownloadComponenentsAction.Label=\u9078\u629E\u3057\u305F\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9
|
||||
RefreshComponenentsAction.Label=\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u30EA\u30B9\u30C8\u3092\u66F4\u65B0
|
||||
providerName=www.example.org
|
||||
pluginName=Exchange\u30E2\u30C7\u30EB
|
||||
@@ -1,3 +0,0 @@
|
||||
DownloadComponenentsAction.Label=\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u044B
|
||||
RefreshComponenentsAction.Label=\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043E\u0432
|
||||
providerName=www.example.org
|
||||
@@ -1,5 +0,0 @@
|
||||
Exchange=Exchange
|
||||
DownloadComponenentsAction.Label=Download Selected Components
|
||||
RefreshComponenentsAction.Label=Refresh Componenents List
|
||||
providerName=www.example.org
|
||||
pluginName = Exchange Model
|
||||
@@ -1,101 +0,0 @@
|
||||
ExchangeView.Exchange=Exchange
|
||||
AvailableExtensionsComposite.ExtensionName=Extension Name
|
||||
AvailableExtensionsComposite.Version=Version
|
||||
AvailableExtensionsComposite.Rating=Rating
|
||||
AvailableExtensionsComposite.Author=Author
|
||||
AvailableExtensionsComposite.FilterTitle=Filter
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Install
|
||||
AvailableExtensionsComposite.ViewDetail.WriteReview=Write a review
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailure=Insertion Review failure.
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailureTip=You should check it.
|
||||
DownloadedExtensionsComposite.ExtensionName=Extension Name
|
||||
DownloadedExtensionsComposite.DownloadedVersion=Downloaded Version
|
||||
DownloadedExtensionsComposite.DownloadDate=Download Date
|
||||
DownloadedExtensionsComposite.OperateStatus=Operate Status
|
||||
DownloadedExtensionsComposite.installOperateStatus=Install
|
||||
DownloadedExtensionsComposite.installedOperateStatus=Installed
|
||||
DownloadedExtensionsComposite.updateOperateStatus=Update
|
||||
MyExtensionsComposite.ExtensionName=Extension Name
|
||||
MyExtensionsComposite.Version=Version
|
||||
MyExtensionsComposite.UploadDate=Upload Date
|
||||
MyExtensionsComposite.AddNewExtensionTitle=Add New Extension
|
||||
MyExtensionsComposite.UpLoadNewVersionOperateStatus=Upload New Version
|
||||
MyExtensionsComposite.UpdateOperateStatus=Update
|
||||
MyExtensionsComposite.ModifyOperateStatus=Modify
|
||||
MyExtensionsComposite.DeleteOperateStatus=Delete
|
||||
MyExtensionsComposite.Form.Return=Return
|
||||
MyExtensionsComposite.Form.ExtensionTitle=Extension Title
|
||||
MyExtensionsComposite.Form.InitialVersion=Initial Version
|
||||
MyExtensionsComposite.Form.Compatibility=Compatibility
|
||||
MyExtensionsComposite.Form.Compatibility.AllVersions=All versions
|
||||
MyExtensionsComposite.Form.Compatibility.Version=Version
|
||||
MyExtensionsComposite.Form.Compatibility.AndOlder=and older
|
||||
MyExtensionsComposite.Form.Compatibility.AndNewer=and newer
|
||||
MyExtensionsComposite.Form.Compatibility.AllVersionsExcept=All versions except:
|
||||
MyExtensionsComposite.Form.Compatibility.OnlyTheseVersions=Only these versions:
|
||||
MyExtensionsComposite.Form.Description=Description
|
||||
MyExtensionsComposite.Form.Visibility=Visibility
|
||||
MyExtensionsComposite.Form.Visibility.Public=Public(visible by all)
|
||||
MyExtensionsComposite.Form.Visibility.Private=Private(visible by me)
|
||||
MyExtensionsComposite.Form.Upload=Upload
|
||||
MyExtensionsComposite.Form.Upload.SelectAnItem=Select an item from the currently open project
|
||||
MyExtensionsComposite.Form.Upload.File=File:
|
||||
MyExtensionsComposite.Form.Upload.Browse=Browse...
|
||||
MyExtensionsComposite.Form.Upload.Browse.SelectFile=Select a File of the extension to upload
|
||||
MyExtensionsComposite.Form.DeleteExtensionTile=Delete Extension
|
||||
MyExtensionsComposite.Form.DeleteExtensionMessage=Are you sure you want to delete this Extension?
|
||||
MyExtensionsComposite.Form.UploadExtension=Upload Extension
|
||||
MyExtensionsComposite.Form.UpdateExtension=Update Extension
|
||||
MyExtensionsComposite.Form.ModifyExtension=Modify Extension
|
||||
Exchange.logon.error=Exchange user have not been registered, please register using the preferences .
|
||||
RefreshJob.FindExtensions.Title=Finding available extensions
|
||||
RefreshJob.FindExtensions.Message=Finding extensions from exchange...
|
||||
ShowContributedExtensionsJob.ShowContributedExtensions.Title=Finding contributed extensions
|
||||
ShowContributedExtensionsJob.ShowContributedExtensions.Message=Finding contributed extensions from exchange...
|
||||
ShowInstalledExtensionsJob.ShowInstalledExtensions.Title=Finding installed extensions
|
||||
ShowInstalledExtensionsJob.ShowInstalledExtensions.Message=Finding installed extensions from exchange...
|
||||
DeleteExtensionJob.DeleteExtensionJob.Title=Delete an extension...
|
||||
DeleteExtensionJob.DeleteExtensionJob.Message=Delete an extension...
|
||||
DeleteExtensionJob.DeleteFailure=Delete failure.
|
||||
DeleteExtensionJob.DeleteFailureTip=You should check it.
|
||||
ModifyExtensionJob.Title=Modify an extension...
|
||||
ModifyExtensionJob.Message=Modify an extension...
|
||||
ModifyExtensionJob.ModifyFailure=Modify failure.
|
||||
ModifyExtensionJob.ModifyFailureTip=You should check it.
|
||||
InstalledExtensionJob.Title=Installed an extension...
|
||||
InstalledExtensionJob.Message=Installed an extension...
|
||||
InsertionExtensionAction.InstalledFailure=Installed failure.
|
||||
InsertionExtensionAction.InstalledFailureTip=You should check it.
|
||||
UploadRevisionJob.Title=Upload Revision...
|
||||
UploadRevisionJob.Message=Upload Revision...
|
||||
UploadRevisionAction.InstalledFailure=Upload Revision failure.
|
||||
UploadRevisionAction.InstalledFailureTip=You should check it.
|
||||
DownloadComponenentsAction_restartMessage=Install the new component successfully, but need to restart studio to load it, do you want to restart now?
|
||||
DownloadComponenentsAction_restartTitle=Need restart
|
||||
DownloadComponenentsAction_failureTitle=Failure
|
||||
DownloadComponenentsAction_failureMessage=Fail to install the component {0}, need check the component is valid or not.
|
||||
DownloadComponenentsAction.installExchange=Install Exchange Components
|
||||
DownloadComponenentsAction.DownloadTaskTitle=Downloading files from Exchange
|
||||
DownloadComponenentsAction.DownloadTaskName=Downloading file from url:
|
||||
DownloadComponenentsAction.ReloadPalette=Reloading palette...
|
||||
DownloadComponenentsAction.DownloadFailure=Download failure.
|
||||
DownloadComponenentsAction.DownloadFailureTip=You must change the Download Settings.
|
||||
DownloadComponenentsAction.installComponentsTitle=Install components
|
||||
ExchangeWebService.insertionExtensionSuccessful=Insertion Extension successful.
|
||||
ExchangeWebService.downloadingExtensionSuccessful=Downloaded Extension successful.
|
||||
ExchangeWebService.deleteExtensionSuccessful=Deleted Extension successful.
|
||||
ExchangeWebService.insertReviewSuccessful=Insertion Review successful.
|
||||
ExchangeWebService.updateRevisionSuccessful=Update Revision successful.
|
||||
ExchangeWebService.insertionRevisionSuccessful=Insertion Revision successful.
|
||||
ImportExchangeDialog.dialogTitle=Select an item from Talend Exchange
|
||||
ImportExchangeDialog.WARNING=WARNING
|
||||
ImportExchangeDialog.NOTSELECTWARNING=Please select one item from table.
|
||||
ImportExchangeDialog.downloadProgressBar=Download Item,Please Wait\!
|
||||
ImportExchangeDialog.EXTENSION_NAME=Extension Name
|
||||
ImportExchangeDialog.AUTHOR_NAME=Author Name
|
||||
ImportExchangeDialog.LATEST_REVISION=Latest Revision
|
||||
ImportExchangeDialog.EXTENSION_DESCRIPTION=Extension Description
|
||||
ImportExchangeDialog.download.extensions=Download extensions\! Please Wait\!
|
||||
ImportExchangeDialog.REFRESH_BUTTON=Refresh
|
||||
ImportExchangeDialog.REFRESHING_PROGRESSBAR=Refreshing\! Please Wait.....
|
||||
ImportExchangeDialog.OPERATION_CANCELLED=Operation was cancelled
|
||||
@@ -1,19 +0,0 @@
|
||||
AvailableExtensionsComposite.Author=Autor
|
||||
AvailableExtensionsComposite.FilterTitle=Filter
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Installieren
|
||||
AvailableExtensionsComposite.ViewDetail.WriteReview=Bericht schreiben
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailureTip=Sie sollten es pr\u00FCfen.
|
||||
DownloadedExtensionsComposite.installedOperateStatus=Installiert
|
||||
DownloadedExtensionsComposite.updateOperateStatus=Update
|
||||
MyExtensionsComposite.UpdateOperateStatus=Update
|
||||
MyExtensionsComposite.ModifyOperateStatus=Modifiziere
|
||||
MyExtensionsComposite.DeleteOperateStatus=L\u00F6schen
|
||||
MyExtensionsComposite.Form.Description=Beschreibung
|
||||
MyExtensionsComposite.Form.Upload.Browse=Durchsuchen...
|
||||
DeleteExtensionJob.DeleteFailure=L\u00F6schung fehlgeschlagen
|
||||
DeleteExtensionJob.DeleteFailureTip=Sie sollten es pr\u00FCfen.
|
||||
DownloadComponenentsAction.DownloadTaskName=Lade Datei von URL:
|
||||
ImportExchangeDialog.WARNING=Warnung
|
||||
ImportExchangeDialog.AUTHOR_NAME=Name des Autors
|
||||
ImportExchangeDialog.LATEST_REVISION=Aktuellste Revision
|
||||
ImportExchangeDialog.OPERATION_CANCELLED=Operation wurde abgebrochen
|
||||
@@ -1,8 +0,0 @@
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Instalar
|
||||
AvailableExtensionsComposite.ViewDetail.WriteReview=Escribir un comentario
|
||||
DownloadedExtensionsComposite.installOperateStatus=Instalar
|
||||
MyExtensionsComposite.ModifyOperateStatus=Modificar
|
||||
MyExtensionsComposite.DeleteOperateStatus=Borrar
|
||||
MyExtensionsComposite.Form.Description=Descripci\u00F3n
|
||||
ImportExchangeDialog.WARNING=Advertencia
|
||||
ImportExchangeDialog.REFRESH_BUTTON=Actualizar
|
||||
@@ -1,17 +0,0 @@
|
||||
AvailableExtensionsComposite.Version=Versione
|
||||
AvailableExtensionsComposite.Author=Autore
|
||||
AvailableExtensionsComposite.FilterTitle=Filtro
|
||||
DownloadedExtensionsComposite.installedOperateStatus=Installato
|
||||
DownloadedExtensionsComposite.updateOperateStatus=Aggiornato
|
||||
MyExtensionsComposite.Version=Versione
|
||||
MyExtensionsComposite.UpdateOperateStatus=Aggiornato
|
||||
MyExtensionsComposite.DeleteOperateStatus=Cancellare
|
||||
MyExtensionsComposite.Form.Compatibility.Version=Versione
|
||||
MyExtensionsComposite.Form.Description=Descrizione
|
||||
MyExtensionsComposite.Form.Upload=Carica
|
||||
MyExtensionsComposite.Form.Upload.Browse=Naviga...
|
||||
ImportExchangeDialog.dialogTitle=Seleziona oggetto da Talend Exchange
|
||||
ImportExchangeDialog.WARNING=Avvertimento
|
||||
ImportExchangeDialog.LATEST_REVISION=Ultima Revisione
|
||||
ImportExchangeDialog.EXTENSION_DESCRIPTION=Descrizione estensione
|
||||
ImportExchangeDialog.REFRESH_BUTTON=Aggiorna
|
||||
@@ -1,101 +0,0 @@
|
||||
ExchangeView.Exchange=Exchange
|
||||
AvailableExtensionsComposite.ExtensionName=Extension\u540D
|
||||
AvailableExtensionsComposite.Version=\u30D0\u30FC\u30B8\u30E7\u30F3
|
||||
AvailableExtensionsComposite.Rating=\u8A55\u4FA1
|
||||
AvailableExtensionsComposite.Author=\u4F5C\u6210\u8005
|
||||
AvailableExtensionsComposite.FilterTitle=\u30D5\u30A3\u30EB\u30BF\u30FC
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB
|
||||
AvailableExtensionsComposite.ViewDetail.WriteReview=\u518D\u8ABF\u67FB\u306E\u66F8\u304D\u8FBC\u307F
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailure=Review\u633F\u5165\u5931\u6557\u3002
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailureTip=\u30C1\u30A7\u30C3\u30AF\u3092\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
DownloadedExtensionsComposite.ExtensionName=Extension\u540D
|
||||
DownloadedExtensionsComposite.DownloadedVersion=\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u30D0\u30FC\u30B8\u30E7\u30F3
|
||||
DownloadedExtensionsComposite.DownloadDate=\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u65E5\u4ED8
|
||||
DownloadedExtensionsComposite.OperateStatus=\u30B9\u30C6\u30FC\u30BF\u30B9\u64CD\u4F5C
|
||||
DownloadedExtensionsComposite.installOperateStatus=\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB
|
||||
DownloadedExtensionsComposite.installedOperateStatus=\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u6E08\u307F
|
||||
DownloadedExtensionsComposite.updateOperateStatus=\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8
|
||||
MyExtensionsComposite.ExtensionName=Extension\u540D
|
||||
MyExtensionsComposite.Version=\u30D0\u30FC\u30B8\u30E7\u30F3
|
||||
MyExtensionsComposite.UploadDate=\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u65E5\u4ED8
|
||||
MyExtensionsComposite.AddNewExtensionTitle=\u65B0\u898FExtension\u8FFD\u52A0
|
||||
MyExtensionsComposite.UpLoadNewVersionOperateStatus=\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9
|
||||
MyExtensionsComposite.UpdateOperateStatus=\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8
|
||||
MyExtensionsComposite.ModifyOperateStatus=\u5909\u66F4
|
||||
MyExtensionsComposite.DeleteOperateStatus=\u524A\u9664
|
||||
MyExtensionsComposite.Form.Return=\u623B\u308A\u5024
|
||||
MyExtensionsComposite.Form.ExtensionTitle=Extension\u30BF\u30A4\u30C8\u30EB
|
||||
MyExtensionsComposite.Form.InitialVersion=\u521D\u671F\u30D0\u30FC\u30B8\u30E7\u30F3
|
||||
MyExtensionsComposite.Form.Compatibility=\u4E92\u63DB\u6027
|
||||
MyExtensionsComposite.Form.Compatibility.AllVersions=\u3059\u3079\u3066\u306E\u30D0\u30FC\u30B8\u30E7\u30F3
|
||||
MyExtensionsComposite.Form.Compatibility.Version=\u30D0\u30FC\u30B8\u30E7\u30F3
|
||||
MyExtensionsComposite.Form.Compatibility.AndOlder=\u3088\u308A\u53E4\u3044
|
||||
MyExtensionsComposite.Form.Compatibility.AndNewer=\u3088\u308A\u65B0\u3057\u3044
|
||||
MyExtensionsComposite.Form.Compatibility.AllVersionsExcept=\u3059\u3079\u3066\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u4EE5\u5916
|
||||
MyExtensionsComposite.Form.Compatibility.OnlyTheseVersions=\u3053\u308C\u3089\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3060\u3051:
|
||||
MyExtensionsComposite.Form.Description=\u8AAC\u660E
|
||||
MyExtensionsComposite.Form.Visibility=\u53EF\u8996\u6027
|
||||
MyExtensionsComposite.Form.Visibility.Public=\u5171\u6709(\u5168\u54E1\u304C\u53EF\u8996)
|
||||
MyExtensionsComposite.Form.Visibility.Private=\u500B\u4EBA(\u81EA\u5206\u306E\u307F\u53EF\u8996)
|
||||
MyExtensionsComposite.Form.Upload=\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9
|
||||
MyExtensionsComposite.Form.Upload.SelectAnItem=\u73FE\u5728\u958B\u3044\u3066\u3044\u308B\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304B\u3089\u30A2\u30A4\u30C6\u30E0\u3092\u9078\u629E
|
||||
MyExtensionsComposite.Form.Upload.File=\u30D5\u30A1\u30A4\u30EB:
|
||||
MyExtensionsComposite.Form.Upload.Browse=\u53C2\u7167...
|
||||
MyExtensionsComposite.Form.Upload.Browse.SelectFile=\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3059\u308Bextension\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E
|
||||
MyExtensionsComposite.Form.DeleteExtensionTile=Extension\u524A\u9664
|
||||
MyExtensionsComposite.Form.DeleteExtensionMessage=\u3053\u306E\u62E1\u5F35\u5B50\u3092\u524A\u9664\u3057\u307E\u3059\u304B?
|
||||
MyExtensionsComposite.Form.UploadExtension=Extension\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9
|
||||
MyExtensionsComposite.Form.UpdateExtension=Extension\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8
|
||||
MyExtensionsComposite.Form.ModifyExtension=Extension\u4FEE\u6B63
|
||||
Exchange.logon.error=Exchange\u30E6\u30FC\u30B6\u30FC\u304C\u767B\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u521D\u671F\u8A2D\u5B9A\u3092\u4F7F\u7528\u3057\u3066\u767B\u9332\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
RefreshJob.FindExtensions.Title=\u53D6\u5F97\u53EF\u80FD\u306Aextensions
|
||||
RefreshJob.FindExtensions.Message=Exchange\u304B\u3089\u62E1\u5F35\u6A5F\u80FD\u3092\u691C\u7D22...
|
||||
ShowContributedExtensionsJob.ShowContributedExtensions.Title=extensions\u3092\u53D6\u5F97
|
||||
ShowContributedExtensionsJob.ShowContributedExtensions.Message=exchange\u304B\u3089extensions\u3092\u53D6\u5F97\u2026
|
||||
ShowInstalledExtensionsJob.ShowInstalledExtensions.Title=extensions\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB
|
||||
ShowInstalledExtensionsJob.ShowInstalledExtensions.Message=exchange\u304B\u3089extensions\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u2026
|
||||
DeleteExtensionJob.DeleteExtensionJob.Title=Extension\u3092\u524A\u9664\u3057\u307E\u3059\u2026
|
||||
DeleteExtensionJob.DeleteExtensionJob.Message=Extension\u3092\u524A\u9664\u3057\u307E\u3059\u2026
|
||||
DeleteExtensionJob.DeleteFailure=\u524A\u9664\u3067\u304D\u307E\u305B\u3093
|
||||
DeleteExtensionJob.DeleteFailureTip=\u30C1\u30A7\u30C3\u30AF\u3092\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
ModifyExtensionJob.Title=Extension\u3092\u4FEE\u6B63\u2026
|
||||
ModifyExtensionJob.Message=Extension\u3092\u4FEE\u6B63\u2026
|
||||
ModifyExtensionJob.ModifyFailure=\u4FEE\u6B63\u5931\u6557\u3002
|
||||
ModifyExtensionJob.ModifyFailureTip=\u30C1\u30A7\u30C3\u30AF\u3092\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
InstalledExtensionJob.Title=Extension\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB...
|
||||
InstalledExtensionJob.Message=Extension\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB...
|
||||
InsertionExtensionAction.InstalledFailure=\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306B\u5931\u6557\u3057\u307E\u3057\u305F
|
||||
InsertionExtensionAction.InstalledFailureTip=\u30C1\u30A7\u30C3\u30AF\u3092\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
UploadRevisionJob.Title=\u30EA\u30D3\u30B8\u30E7\u30F3\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9
|
||||
UploadRevisionJob.Message=\u30EA\u30D3\u30B8\u30E7\u30F3\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9
|
||||
UploadRevisionAction.InstalledFailure=\u30EA\u30D3\u30B8\u30E7\u30F3\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3002
|
||||
UploadRevisionAction.InstalledFailureTip=\u30C1\u30A7\u30C3\u30AF\u3092\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
DownloadComponenentsAction_restartMessage=\u65B0\u898F\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u304C\u6210\u529F\u3057\u307E\u3057\u305F\u3002Studio\u306E\u518D\u8D77\u52D5\u304C\u5FC5\u8981\u3067\u3059\u3002\u518D\u8D77\u52D5\u3057\u307E\u3059\u304B?
|
||||
DownloadComponenentsAction_restartTitle=\u518D\u8D77\u52D5\u8981
|
||||
DownloadComponenentsAction_failureTitle=\u5931\u6557
|
||||
DownloadComponenentsAction_failureMessage=\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8{0}\u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u59A5\u5F53\u304B\u3054\u78BA\u8A8D\u304F\u3060\u3055\u3044\u3002
|
||||
DownloadComponenentsAction.installExchange=Exchange\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB
|
||||
DownloadComponenentsAction.DownloadTaskTitle=Exchange\u304B\u3089\u30D5\u30A1\u30A4\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9
|
||||
DownloadComponenentsAction.DownloadTaskName=\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D URL:
|
||||
DownloadComponenentsAction.ReloadPalette=\u30D1\u30EC\u30C3\u30C8\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8...
|
||||
DownloadComponenentsAction.DownloadFailure=\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u5931\u6557\u3002
|
||||
DownloadComponenentsAction.DownloadFailureTip=\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u8A2D\u5B9A\u3092\u5909\u66F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
||||
DownloadComponenentsAction.installComponentsTitle=\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB
|
||||
ExchangeWebService.insertionExtensionSuccessful=Extension\u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u304C\u6210\u529F\u3057\u307E\u3057\u305F
|
||||
ExchangeWebService.downloadingExtensionSuccessful=Extension\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u6210\u529F\u3002
|
||||
ExchangeWebService.deleteExtensionSuccessful=Extension\u524A\u9664\u6210\u529F\u3002
|
||||
ExchangeWebService.insertReviewSuccessful=Review\u633F\u5165\u6210\u529F\u3002
|
||||
ExchangeWebService.updateRevisionSuccessful=\u30EA\u30D3\u30B8\u30E7\u30F3\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u6210\u529F\u3002
|
||||
ExchangeWebService.insertionRevisionSuccessful=\u30EA\u30D3\u30B8\u30E7\u30F3\u633F\u5165\u6210\u529F\u3002
|
||||
ImportExchangeDialog.dialogTitle=Talend Exchange \u304B\u3089\u9805\u76EE\u306E\u9078\u629E
|
||||
ImportExchangeDialog.WARNING=\u8B66\u544A
|
||||
ImportExchangeDialog.NOTSELECTWARNING=\u30C6\u30FC\u30D6\u30EB\u304B\u3089\u9805\u76EE\u3092\uFF11\u3064\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044...
|
||||
ImportExchangeDialog.downloadProgressBar=\u9805\u76EE\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D\u3067\u3059\u3002\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044!
|
||||
ImportExchangeDialog.EXTENSION_NAME=\u62E1\u5F35\u5B50\u540D
|
||||
ImportExchangeDialog.AUTHOR_NAME=\u4F5C\u6210\u8005\u540D
|
||||
ImportExchangeDialog.LATEST_REVISION=\u6700\u65B0\u30EA\u30D3\u30B8\u30E7\u30F3
|
||||
ImportExchangeDialog.EXTENSION_DESCRIPTION=\u62E1\u5F35\u306E\u8AAC\u660E
|
||||
ImportExchangeDialog.download.extensions=\u62E1\u5F35\u6A5F\u80FD\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D\u3067\u3059\u3002\u66AB\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002
|
||||
ImportExchangeDialog.REFRESH_BUTTON=\u66F4\u65B0
|
||||
ImportExchangeDialog.REFRESHING_PROGRESSBAR=\u66F4\u65B0\u4E2D\u3067\u3059\u3002\u66AB\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002
|
||||
ImportExchangeDialog.OPERATION_CANCELLED=\u64CD\u4F5C\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F
|
||||
@@ -1,13 +0,0 @@
|
||||
AvailableExtensionsComposite.Version=\u0412\u0435\u0440\u0441\u0438\u044F
|
||||
AvailableExtensionsComposite.Author=\u0410\u0432\u0442\u043E\u0440
|
||||
AvailableExtensionsComposite.FilterTitle=\u0444\u0438\u043B\u044C\u0442\u0440
|
||||
DownloadedExtensionsComposite.installedOperateStatus=\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D
|
||||
MyExtensionsComposite.Version=\u0412\u0435\u0440\u0441\u0438\u044F
|
||||
MyExtensionsComposite.ModifyOperateStatus=\u041C\u043E\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043E\u0432\u0430\u0442\u044C
|
||||
MyExtensionsComposite.DeleteOperateStatus=\u0423\u0434\u0430\u043B\u0438\u0442\u044C
|
||||
MyExtensionsComposite.Form.Compatibility.Version=\u0412\u0435\u0440\u0441\u0438\u044F
|
||||
MyExtensionsComposite.Form.Description=\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435
|
||||
MyExtensionsComposite.Form.Upload.Browse=\u041E\u0431\u0437\u043E\u0440...
|
||||
DownloadComponenentsAction.DownloadTaskName=\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B \u043F\u043E \u0441\u0441\u044B\u043B\u043A\u0435:
|
||||
ImportExchangeDialog.WARNING=\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435
|
||||
ImportExchangeDialog.REFRESH_BUTTON=\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C
|
||||
@@ -1,18 +0,0 @@
|
||||
AvailableExtensionsComposite.Version=Verzia
|
||||
AvailableExtensionsComposite.Author=Autor
|
||||
AvailableExtensionsComposite.FilterTitle=Filter
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=In\u0161talova\u0165
|
||||
DownloadedExtensionsComposite.installOperateStatus=In\u0161talova\u0165
|
||||
DownloadedExtensionsComposite.updateOperateStatus=Obnovi\u0165
|
||||
MyExtensionsComposite.Version=Verzia
|
||||
MyExtensionsComposite.UpdateOperateStatus=Obnovi\u0165
|
||||
MyExtensionsComposite.ModifyOperateStatus=Modifikova\u0165
|
||||
MyExtensionsComposite.DeleteOperateStatus=Zmaza\u0165
|
||||
MyExtensionsComposite.Form.Compatibility=Kompatibilita
|
||||
MyExtensionsComposite.Form.Compatibility.Version=Verzia
|
||||
MyExtensionsComposite.Form.Description=Popis
|
||||
MyExtensionsComposite.Form.Visibility=Vidite\u013Enos\u0165
|
||||
MyExtensionsComposite.Form.Upload=Nahra\u0165
|
||||
ImportExchangeDialog.WARNING=Varovanie
|
||||
ImportExchangeDialog.AUTHOR_NAME=Meno autora
|
||||
ImportExchangeDialog.REFRESH_BUTTON=Obnovi\u0165
|
||||
@@ -1,18 +0,0 @@
|
||||
AvailableExtensionsComposite.Version=Verzia
|
||||
AvailableExtensionsComposite.Author=Autor
|
||||
AvailableExtensionsComposite.FilterTitle=Filter
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=In\u0161talova\u0165
|
||||
DownloadedExtensionsComposite.installOperateStatus=In\u0161talova\u0165
|
||||
DownloadedExtensionsComposite.updateOperateStatus=Obnovi\u0165
|
||||
MyExtensionsComposite.Version=Verzia
|
||||
MyExtensionsComposite.UpdateOperateStatus=Obnovi\u0165
|
||||
MyExtensionsComposite.ModifyOperateStatus=Modifikova\u0165
|
||||
MyExtensionsComposite.DeleteOperateStatus=Zmaza\u0165
|
||||
MyExtensionsComposite.Form.Compatibility=Kompatibilita
|
||||
MyExtensionsComposite.Form.Compatibility.Version=Verzia
|
||||
MyExtensionsComposite.Form.Description=Popis
|
||||
MyExtensionsComposite.Form.Visibility=Vidite\u013Enos\u0165
|
||||
MyExtensionsComposite.Form.Upload=Nahra\u0165
|
||||
ImportExchangeDialog.WARNING=Varovanie
|
||||
ImportExchangeDialog.AUTHOR_NAME=Meno autora
|
||||
ImportExchangeDialog.REFRESH_BUTTON=Obnovi\u0165
|
||||
@@ -1,103 +0,0 @@
|
||||
ExchangeView.Exchange=Exchange
|
||||
AvailableExtensionsComposite.ExtensionName=Extension Name
|
||||
AvailableExtensionsComposite.Version=Version
|
||||
AvailableExtensionsComposite.Rating=Rating
|
||||
AvailableExtensionsComposite.Author=Author
|
||||
AvailableExtensionsComposite.FilterTitle=Filter
|
||||
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Install
|
||||
AvailableExtensionsComposite.ViewDetail.WriteReview=Write a review
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailure=Insertion Review failure.
|
||||
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailureTip=You should check it.
|
||||
DownloadedExtensionsComposite.ExtensionName=Extension Name
|
||||
DownloadedExtensionsComposite.DownloadedVersion=Downloaded Version
|
||||
DownloadedExtensionsComposite.DownloadDate=Download Date
|
||||
DownloadedExtensionsComposite.OperateStatus=Operate Status
|
||||
DownloadedExtensionsComposite.installOperateStatus=Install
|
||||
DownloadedExtensionsComposite.installedOperateStatus=Installed
|
||||
DownloadedExtensionsComposite.updateOperateStatus=Update
|
||||
MyExtensionsComposite.ExtensionName=Extension Name
|
||||
MyExtensionsComposite.Version=Version
|
||||
MyExtensionsComposite.UploadDate=Upload Date
|
||||
MyExtensionsComposite.AddNewExtensionTitle=Add New Extension
|
||||
MyExtensionsComposite.UpLoadNewVersionOperateStatus=UpLoad New Version
|
||||
MyExtensionsComposite.UpdateOperateStatus=Update
|
||||
MyExtensionsComposite.ModifyOperateStatus=Modify
|
||||
MyExtensionsComposite.DeleteOperateStatus=Delete
|
||||
MyExtensionsComposite.Form.Return=Return
|
||||
MyExtensionsComposite.Form.ExtensionTitle=Extension Title
|
||||
MyExtensionsComposite.Form.InitialVersion=Initial Version
|
||||
MyExtensionsComposite.Form.Compatibility=Compatibility
|
||||
MyExtensionsComposite.Form.Compatibility.AllVersions=All versions
|
||||
MyExtensionsComposite.Form.Compatibility.Version=Version
|
||||
MyExtensionsComposite.Form.Compatibility.AndOlder=and older
|
||||
MyExtensionsComposite.Form.Compatibility.AndNewer=and newer
|
||||
MyExtensionsComposite.Form.Compatibility.AllVersionsExcept=All versions except:
|
||||
MyExtensionsComposite.Form.Compatibility.OnlyTheseVersions=Only these versions:
|
||||
MyExtensionsComposite.Form.Description=Description
|
||||
MyExtensionsComposite.Form.Visibility=Visibility
|
||||
MyExtensionsComposite.Form.Visibility.Public=Public(visible by all)
|
||||
MyExtensionsComposite.Form.Visibility.Private=Private(visible by me)
|
||||
MyExtensionsComposite.Form.Upload=Upload
|
||||
MyExtensionsComposite.Form.Upload.SelectAnItem=Select an item from the currently open project
|
||||
MyExtensionsComposite.Form.Upload.File=File:
|
||||
MyExtensionsComposite.Form.Upload.Browse=Browse
|
||||
MyExtensionsComposite.Form.Upload.Browse.SelectFile=Select a File of the extension to upload
|
||||
MyExtensionsComposite.Form.DeleteExtensionTile=Delete Extension
|
||||
MyExtensionsComposite.Form.DeleteExtensionMessage=You sure delete this Extension
|
||||
MyExtensionsComposite.Form.UploadExtension=Upload Extension
|
||||
MyExtensionsComposite.Form.UpdateExtension=Update Extension
|
||||
MyExtensionsComposite.Form.ModifyExtension=Modify Extension
|
||||
Exchange.logon.error=Exchange user have not been registered, please register using the preferences .
|
||||
RefreshJob.FindExtensions.Title=Finding available extensions
|
||||
RefreshJob.FindExtensions.Message=Finding extensions from exchange...
|
||||
ShowContributedExtensionsJob.ShowContributedExtensions.Title=Finding contributed extensions
|
||||
ShowContributedExtensionsJob.ShowContributedExtensions.Message=Finding contributed extensions from exchange...
|
||||
ShowInstalledExtensionsJob.ShowInstalledExtensions.Title=Finding installed extensions
|
||||
ShowInstalledExtensionsJob.ShowInstalledExtensions.Message=Finding installed extensions from exchange...
|
||||
DeleteExtensionJob.DeleteExtensionJob.Title=Delete an extension...
|
||||
DeleteExtensionJob.DeleteExtensionJob.Message=Delete an extension...
|
||||
DeleteExtensionJob.DeleteFailure=Delete failure.
|
||||
DeleteExtensionJob.DeleteFailureTip=You should check it.
|
||||
ModifyExtensionJob.Title=Modify an extension...
|
||||
ModifyExtensionJob.Message=Modify an extension...
|
||||
ModifyExtensionJob.ModifyFailure=Modify failure.
|
||||
ModifyExtensionJob.ModifyFailureTip=You should check it.
|
||||
InstalledExtensionJob.Title=Installed an extension...
|
||||
InstalledExtensionJob.Message=Installed an extension...
|
||||
InsertionExtensionAction.InstalledFailure=Installed failure.
|
||||
InsertionExtensionAction.InstalledFailureTip=You should check it.
|
||||
UploadRevisionJob.Title=Upload Revision...
|
||||
UploadRevisionJob.Message=Upload Revision...
|
||||
UploadRevisionAction.InstalledFailure=Upload Revision failure.
|
||||
UploadRevisionAction.InstalledFailureTip=You should check it.
|
||||
DownloadComponenentsAction.installExchange=Installed Exchange Components
|
||||
DownloadComponenentsAction.DownloadTaskTitle=Downloading files from Exchange
|
||||
DownloadComponenentsAction.DownloadTaskName=Downloading file from url:
|
||||
DownloadComponenentsAction.ReloadPalette=Reloading palette...
|
||||
DownloadComponenentsAction.DownloadFailure=Download failure.
|
||||
DownloadComponenentsAction.DownloadFailureTip=You must change the Download Settings.
|
||||
ExchangeWebService.insertionExtensionSuccessful=Insertion Extension successful.
|
||||
ExchangeWebService.downloadingExtensionSuccessful=Downloaded Extension successful.
|
||||
ExchangeWebService.deleteExtensionSuccessful=Deleted Extension successful.
|
||||
ExchangeWebService.insertReviewSuccessful=Insertion Review successful.
|
||||
ExchangeWebService.updateRevisionSuccessful=Update Revision successful.
|
||||
ExchangeWebService.insertionRevisionSuccessful=Insertion Revision successful.
|
||||
ImportExchangeDialog.dialogTitle=Select an item from Talend Exchange
|
||||
ImportExchangeDialog.WARNING=WARNING
|
||||
ImportExchangeDialog.NOTSELECTWARNING=Please select one item from table.....
|
||||
ImportExchangeDialog.downloadProgressBar=Download Item,Please Wait\!
|
||||
ImportExchangeDialog.EXTENSION_NAME=Extension Name
|
||||
ImportExchangeDialog.AUTHOR_NAME=Author Name
|
||||
ImportExchangeDialog.LATEST_REVISION=Latest Revision
|
||||
ImportExchangeDialog.EXTENSION_DESCRIPTION=Extension Description
|
||||
ImportExchangeDialog.download.components=Download Components Please Wait\!
|
||||
ImportExchangeDialog.JOB_BUTTON=Job Designs
|
||||
ImportExchangeDialog.DOWNLOAD_JOB=Download Some Job Designs...
|
||||
ImportExchangeDialog.ROUTINES_BUTTON=Routines
|
||||
ImportExchangeDialog.ROUTINES_PROGRESSBAR=Download Some Routines...
|
||||
ImportExchangeDialog.TEMPLATES_BUTTON=SQL Templates
|
||||
ImportExchangeDialog.TEMPLATES_PROGRESSBAR=Download Some SQL Templates...
|
||||
ImportExchangeDialog.REFRESH_BUTTON=Refresh
|
||||
ImportExchangeDialog.REFRESHING_PROGRESSBAR=Refreshing\! Please Wait.....
|
||||
ImportExchangeDialog.NOT_SELECT_BUTTON=Please select a choice first
|
||||
ImportExchangeDialog.OPERATION_CANCELLED=Operation was cancelled
|
||||
@@ -1,195 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2021 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.designer.components.exchange;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileFilter;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import org.eclipse.core.runtime.FileLocator;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
|
||||
import org.talend.commons.utils.io.FilesUtils;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.model.components.AbstractComponentsProvider;
|
||||
import org.talend.core.model.components.ComponentUtilities;
|
||||
import org.talend.core.model.components.IComponentsFactory;
|
||||
import org.talend.core.runtime.util.SharedStudioInfoProvider;
|
||||
import org.talend.core.runtime.util.SharedStudioUtils;
|
||||
import org.talend.core.ui.branding.IBrandingService;
|
||||
import org.talend.designer.components.exchange.util.ExchangeUtils;
|
||||
|
||||
/**
|
||||
* DOC hcyi class global comment. Detailled comment
|
||||
*/
|
||||
public class ExchangeComponentsProvider extends AbstractComponentsProvider implements SharedStudioInfoProvider{
|
||||
|
||||
/**
|
||||
* ExchangeComponentsProvider constructor.
|
||||
*/
|
||||
public ExchangeComponentsProvider() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preComponentsLoad() throws IOException {
|
||||
File installFolder = getInstallationFolder();
|
||||
|
||||
// clean folder
|
||||
if (installFolder.exists()) {
|
||||
FilesUtils.removeFolder(installFolder, true);
|
||||
}
|
||||
FilesUtils.createFoldersIfNotExists(installFolder.getAbsolutePath(), false);
|
||||
|
||||
File externalComponentsLocation = getExternalComponentsLocation();
|
||||
if (externalComponentsLocation != null) {
|
||||
if (externalComponentsLocation.exists()) {
|
||||
try {
|
||||
copyFolder(externalComponentsLocation, installFolder);
|
||||
} catch (Throwable e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC hcyi Comment method "copyFolder".
|
||||
*
|
||||
* @param externalComponentsLocation
|
||||
* @param installFolder
|
||||
* @throws IOException
|
||||
*/
|
||||
private void copyFolder(File externalComponentsLocation, File installFolder) throws IOException {
|
||||
FileFilter folderFilter = new FileFilter() {
|
||||
|
||||
@Override
|
||||
public boolean accept(File file) {
|
||||
return file.isDirectory();
|
||||
}
|
||||
};
|
||||
FileFilter ff = new FileFilter() {
|
||||
|
||||
@Override
|
||||
public boolean accept(File pathname) {
|
||||
if (FilesUtils.isSVNFolder(pathname)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
for (File folder : externalComponentsLocation.listFiles(folderFilter)) {
|
||||
/*
|
||||
* Some components have: <componentName>/<files> . some other have: <folder>/<componentName>/<files> .
|
||||
*/
|
||||
File componentFolder = searchComponentFolder(folder);
|
||||
// if we cannot find the component folder, just ignore it
|
||||
if (componentFolder != null) {
|
||||
File target = new File(installFolder, componentFolder.getName());
|
||||
// FileUtils.copyDirectory(componentFolder, target);
|
||||
FilesUtils.copyFolder(componentFolder, target, true, ff, null, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC hcyi Comment method "searchComponentFolder".
|
||||
*
|
||||
* @param folder
|
||||
* @return
|
||||
*/
|
||||
public static File searchComponentFolder(File folder) {
|
||||
File componentFolder = null;
|
||||
File[] files = folder.listFiles();
|
||||
if (files != null) {
|
||||
for (File file : files) {
|
||||
if (file.isDirectory()) {
|
||||
componentFolder = searchComponentFolder(file);
|
||||
if (componentFolder != null) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
// assumes that if the folder contains properties file, it is the root folder of component
|
||||
if (file.getName().endsWith(".properties")) { //$NON-NLS-1$
|
||||
componentFolder = folder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return componentFolder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected File getExternalComponentsLocation() {
|
||||
return ExchangeUtils.getComponentFolder();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentsLocation() {
|
||||
return new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER).append(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER)
|
||||
.append(ComponentUtilities.getExtFolder(getFolderName())).toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getInstallationFolder() throws IOException {
|
||||
String componentsPath = IComponentsFactory.COMPONENTS_LOCATION;
|
||||
IBrandingService breaningService = (IBrandingService) GlobalServiceRegister.getDefault().getService(
|
||||
IBrandingService.class);
|
||||
if (breaningService.isPoweredOnlyCamel()) {
|
||||
componentsPath = IComponentsFactory.CAMEL_COMPONENTS_LOCATION;
|
||||
}
|
||||
Bundle b = Platform.getBundle(componentsPath);
|
||||
|
||||
File installationFolder = null;
|
||||
IPath nullPath = new Path(""); //$NON-NLS-1$
|
||||
URL url = FileLocator.find(b, nullPath, null);
|
||||
URL fileUrl = FileLocator.toFileURL(url);
|
||||
File bundleFolder = new File(fileUrl.getPath());
|
||||
|
||||
IPath path = new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER)
|
||||
.append(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER);
|
||||
path = path.append(ComponentUtilities.getExtFolder(getFolderName()));
|
||||
|
||||
installationFolder = new File(bundleFolder, path.toOSString());
|
||||
|
||||
return installationFolder;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseLocalProvider() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isCustom() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getComponentsBundle() {
|
||||
return IComponentsFactory.COMPONENTS_LOCATION;
|
||||
}
|
||||
|
||||
public boolean isSupportCurrentMode() {
|
||||
if (SharedStudioUtils.isSharedStudioMode()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2021 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.designer.components.exchange;
|
||||
|
||||
import org.talend.designer.components.exchange.i18n.Messages;
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC hcyi class global comment. Detailled comment
|
||||
*/
|
||||
public class ExchangeConstants {
|
||||
|
||||
/**
|
||||
* File that store information about the components we have downloaded.
|
||||
*/
|
||||
public static final String COMPONENT_MODEL_FILE = "component_extensions.xmi"; //$NON-NLS-1$
|
||||
|
||||
public static String getReloadPaletteLable() {
|
||||
return Messages.getString("DownloadComponenentsAction.ReloadPalette"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public static String getDownloadTaskTitleLable() {
|
||||
return Messages.getString("DownloadComponenentsAction.DownloadTaskTitle"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public static String getDownloadTaskNameLable() {
|
||||
return Messages.getString("DownloadComponenentsAction.DownloadTaskName"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
package org.talend.designer.components.exchange;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.eclipse.jface.resource.ImageDescriptor;
|
||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.talend.commons.utils.VersionUtils;
|
||||
import org.talend.designer.components.exchange.util.ExchangeUtils;
|
||||
|
||||
/**
|
||||
* The activator class controls the plug-in life cycle
|
||||
*/
|
||||
public class ExchangePlugin extends AbstractUIPlugin {
|
||||
|
||||
// The plug-in ID
|
||||
public static final String PLUGIN_ID = "org.talend.designer.components.exchange"; //$NON-NLS-1$
|
||||
|
||||
// The shared instance
|
||||
private static ExchangePlugin plugin;
|
||||
|
||||
private static final String LEVEL_SEPARATOR = "."; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* The constructor
|
||||
*/
|
||||
public ExchangePlugin() {
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
plugin = this;
|
||||
|
||||
createNecessaryFolders();
|
||||
}
|
||||
|
||||
private void createNecessaryFolders() {
|
||||
File file = ExchangeUtils.getComponentFolder("/"); //$NON-NLS-1$
|
||||
if (file != null) {
|
||||
File dowloadedFoder = new File(file, ExchangeUtils.FOLDER_DOWNLOADED);
|
||||
if (!dowloadedFoder.exists()) {
|
||||
dowloadedFoder.mkdir();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
|
||||
*/
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
plugin = null;
|
||||
super.stop(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the shared instance
|
||||
*
|
||||
* @return the shared instance
|
||||
*/
|
||||
public static ExchangePlugin getDefault() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
public static String getStudioVersion() {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
StringTokenizer stringTokenizer = new StringTokenizer(VersionUtils.getVersion(), LEVEL_SEPARATOR);
|
||||
try {
|
||||
sb.append(stringTokenizer.nextToken());
|
||||
sb.append(LEVEL_SEPARATOR);
|
||||
sb.append(stringTokenizer.nextToken());
|
||||
sb.append(LEVEL_SEPARATOR);
|
||||
sb.append(stringTokenizer.nextToken());
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static ImageDescriptor getImageDescriptor(String path) {
|
||||
return imageDescriptorFromPlugin(PLUGIN_ID, path);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
package org.talend.designer.components.exchange;
|
||||
//============================================================================
|
||||
//
|
||||
//Copyright (C) 2006-2021 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
|
||||
//
|
||||
//============================================================================
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.talend.core.model.components.ComponentUtilities;
|
||||
import org.talend.core.model.components.IComponentsFactory;
|
||||
import org.talend.core.runtime.util.ComponentsLocationProvider;
|
||||
import org.talend.core.runtime.util.SharedStudioUtils;
|
||||
import org.talend.designer.core.model.components.ComponentBundleToPath;
|
||||
|
||||
public class SharedStudioExchangeComponentsProvider extends ExchangeComponentsProvider implements ComponentsLocationProvider{
|
||||
@Override
|
||||
public File getInstallationFolder() throws IOException {
|
||||
File componentFolder = SharedStudioUtils.getSharedStudioComponentsParentFolder();
|
||||
IPath path = new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER);
|
||||
path = path.append(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER).append(ComponentUtilities.getExtFolder(getFolderName()));
|
||||
File installationFolder = new File (componentFolder, path.toOSString());
|
||||
return installationFolder;
|
||||
}
|
||||
|
||||
|
||||
public String getComponentsBundle() {
|
||||
return ComponentBundleToPath.SHARED_STUDIO_CUSTOM_COMPONENT_BUNDLE;
|
||||
}
|
||||
|
||||
public boolean isSupportCurrentMode() {
|
||||
if (SharedStudioUtils.isSharedStudioMode()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceBundle getResourceBundle(String label) {
|
||||
URL configFolderUrl = Platform.getConfigurationLocation().getURL();
|
||||
URLClassLoader urlLoader = new URLClassLoader(new java.net.URL[]{configFolderUrl});
|
||||
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle( label ,
|
||||
java.util.Locale.getDefault(), urlLoader );
|
||||
return bundle;
|
||||
}
|
||||
}
|
||||
@@ -1,136 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2021 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.designer.components.exchange.jobs;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Enumeration;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipFile;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.talend.commons.utils.io.FilesUtils;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.language.LanguageManager;
|
||||
import org.talend.core.ui.services.IComponentsLocalProviderService;
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC hcyi class global comment. Detailled comment
|
||||
*/
|
||||
public class ComponentInstaller {
|
||||
|
||||
/**
|
||||
* Unzip the component file to user folder.
|
||||
*
|
||||
* @param zipFile The component zip file
|
||||
* @param targetFolder The user folder
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static File unzip(String zipFile, String targetFolder) throws Exception {
|
||||
|
||||
ZipFile zip = new ZipFile(zipFile);
|
||||
|
||||
// folder that contains all the unzipped files
|
||||
File rootFolder = getRootFolder(zip, targetFolder);
|
||||
|
||||
if (rootFolder == null) {
|
||||
// the zip does not have any directory, fix it
|
||||
String fileName = new File(zip.getName()).getName();
|
||||
fileName = fileName.substring(0, fileName.lastIndexOf('.')); // remove extension
|
||||
Pattern pattern = Pattern.compile("^([\\w]*)");
|
||||
Matcher matcher = pattern.matcher(fileName);
|
||||
if (matcher.find()) {
|
||||
fileName = matcher.group(1);
|
||||
}
|
||||
rootFolder = new File(targetFolder, fileName);
|
||||
targetFolder = targetFolder + File.separatorChar + fileName;
|
||||
}
|
||||
|
||||
if (rootFolder.exists()) {
|
||||
// we have installed older revision, delete it
|
||||
FileUtils.deleteDirectory(rootFolder);
|
||||
}
|
||||
rootFolder.mkdir();
|
||||
// move some common use codes for unzipping file to FilesUtils
|
||||
FilesUtils.unzip(zipFile, targetFolder);
|
||||
boolean valid = false;
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(IComponentsLocalProviderService.class)) {
|
||||
IComponentsLocalProviderService service = (IComponentsLocalProviderService) GlobalServiceRegister.getDefault()
|
||||
.getService(IComponentsLocalProviderService.class);
|
||||
if (service != null) {
|
||||
valid = service.validateComponent(rootFolder.getAbsolutePath(), LanguageManager.getCurrentLanguage());
|
||||
}
|
||||
}
|
||||
|
||||
if (!valid) {
|
||||
if (rootFolder.exists() && rootFolder.isDirectory()) {
|
||||
for (File f : rootFolder.listFiles()) {
|
||||
f.delete();
|
||||
}
|
||||
rootFolder.delete();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return rootFolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the root folder that contains all the unzipped files
|
||||
*
|
||||
* @param zip The component zip file
|
||||
* @param targetFolder The user folder
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private static File getRootFolder(ZipFile zip, String targetFolder) {
|
||||
File rootFolder = null;
|
||||
Enumeration<ZipEntry> enumeration = (Enumeration<ZipEntry>) zip.entries();
|
||||
String directory = null;
|
||||
while (enumeration.hasMoreElements()) {
|
||||
ZipEntry entry = enumeration.nextElement();
|
||||
String entryName = entry.getName();
|
||||
File file = new File(targetFolder, entryName);
|
||||
if (entry.isDirectory()) {
|
||||
// assumes that the first folder is root folder
|
||||
if (rootFolder == null) {
|
||||
rootFolder = file;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
// some zip file does not have a directory entry, see bug 0005472: [exchange view] cannot install
|
||||
// tFileDelimitedSplit from exchange
|
||||
if (directory == null) {
|
||||
int pos = entryName.indexOf("/"); //$NON-NLS-1$
|
||||
if (pos > -1) {
|
||||
directory = entryName.substring(0, pos);
|
||||
} else {
|
||||
pos = entryName.indexOf("\\"); //$NON-NLS-1$
|
||||
if (pos > -1) {
|
||||
directory = entryName.substring(0, pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (rootFolder == null && directory != null) {
|
||||
rootFolder = new File(targetFolder, directory);
|
||||
}
|
||||
|
||||
return rootFolder;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,320 +0,0 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2021 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.designer.components.exchange.jobs;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.designer.components.exchange.model.AvailableExtensionViewDetail;
|
||||
import org.talend.designer.components.exchange.model.ComponentExtension;
|
||||
import org.talend.designer.components.exchange.model.ExchangeFactory;
|
||||
import org.talend.designer.components.exchange.model.Language;
|
||||
import org.talend.designer.components.exchange.model.RevisionInfo;
|
||||
import org.talend.designer.components.exchange.util.ExchangeUtils;
|
||||
import org.talend.designer.components.exchange.util.ExchangeWebService;
|
||||
|
||||
import us.monoid.json.JSONArray;
|
||||
import us.monoid.json.JSONObject;
|
||||
|
||||
/**
|
||||
*
|
||||
* DOC hcyi class global comment. Detailled comment
|
||||
*/
|
||||
public class ComponentSearcher {
|
||||
|
||||
private static final String RELEASE_DATE_FORMAT = "yyyy-MM-dd"; //$NON-NLS-1$
|
||||
|
||||
private static DateFormat formatter = new SimpleDateFormat(RELEASE_DATE_FORMAT);
|
||||
|
||||
/**
|
||||
* Find available components.
|
||||
*
|
||||
* @param version The tos version.
|
||||
* @param language The project language.
|
||||
* @return
|
||||
*/
|
||||
public static List<ComponentExtension> getAvailableComponentExtensions(String typeExtensionTemp, String versionStudioTemp,
|
||||
ECodeLanguage language, String category) {
|
||||
List<ComponentExtension> extensions = new ArrayList<ComponentExtension>();
|
||||
try {
|
||||
JSONArray extensionsJSONArray = ExchangeWebService.searchExtensionJSONArray(typeExtensionTemp, versionStudioTemp,
|
||||
category);
|
||||
if (extensionsJSONArray != null) {
|
||||
int size = extensionsJSONArray.length();
|
||||
for (int i = 0; i < size; i++) {
|
||||
JSONObject extensionObj = extensionsJSONArray.getJSONObject(i);
|
||||
Map<String, ComponentExtension> extensionsMap = new HashMap<String, ComponentExtension>();
|
||||
ComponentExtension extension = extensionsMap.get(extensionObj.getString("label"));
|
||||
if (extension == null) {
|
||||
extension = ExchangeFactory.eINSTANCE.createComponentExtension();
|
||||
//
|
||||
JSONObject extensionsViewDetailObj = ExchangeWebService.searchExtensionViewDetail(
|
||||
extensionObj.getString("idExtension"), "tos");
|
||||
extension.setIdExtension(extensionObj.getString("idExtension"));
|
||||
extension.setLabel(extensionObj.getString("label"));
|
||||
extension.setAuthor(extensionObj.getString("author"));
|
||||
extension.setRate(extensionObj.getString("rate"));
|
||||
extension.setTypeExtension(extensionObj.getString("typeExtension"));
|
||||
extension.setVersionExtension(extensionObj.getString("versionExtension"));
|
||||
if (extensionsViewDetailObj.length() > 0) {
|
||||
extension.setLastVersionAvailable(extensionsViewDetailObj.getString("lastVersionAvailable"));
|
||||
extension.setPublicationDate(formatter.parse(extensionsViewDetailObj.getString("publicationDate")));
|
||||
extension.setDescription(extensionsViewDetailObj.getString("description"));
|
||||
//
|
||||
List<AvailableExtensionViewDetail> reviews = new ArrayList<AvailableExtensionViewDetail>();
|
||||
if ((extensionsViewDetailObj.get("reviews")) != null
|
||||
&& (extensionsViewDetailObj.get("reviews") instanceof JSONArray)) {
|
||||
JSONArray o = extensionsViewDetailObj.getJSONArray("reviews");
|
||||
int sumRate = 0;
|
||||
int sizeDetail = o.length();
|
||||
for (int j = 0; j < sizeDetail; j++) {
|
||||
JSONObject review = o.getJSONObject(j);
|
||||
AvailableExtensionViewDetail extensionViewDetail = ExchangeFactory.eINSTANCE
|
||||
.createAvailableExtensionViewDetail();
|
||||
extensionViewDetail.setAuthor(review.getString("author"));
|
||||
extensionViewDetail.setTitle(review.getString("title"));
|
||||
extensionViewDetail.setComment(review.getString("comment"));
|
||||
extensionViewDetail.setReviewrate(review.getString("rate"));
|
||||
reviews.add(extensionViewDetail);
|
||||
sumRate = sumRate + Integer.parseInt(review.getString("rate"));
|
||||
}
|
||||
//
|
||||
if (sizeDetail > 0 && sumRate > 0) {
|
||||
int im = sumRate / sizeDetail;
|
||||
extension.setRate(im + "");
|
||||
}
|
||||
}
|
||||
extension.getReviews().addAll((Collection<? extends AvailableExtensionViewDetail>) reviews);
|
||||
}
|
||||
extensionsMap.put(extension.getIdExtension(), extension);
|
||||
extensions.add(extension);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
|
||||
return extensions;
|
||||
|
||||
}
|
||||
|
||||
public static ComponentExtension getAvailableExtensionViewDetail(String idExtension, String typeExtension) {
|
||||
ComponentExtension extension = null;
|
||||
|
||||
try {
|
||||
JSONObject extensionJSONObject = ExchangeWebService.searchExtensionViewDetail(idExtension, typeExtension);
|
||||
Map<String, ComponentExtension> extensionsMap = new HashMap<String, ComponentExtension>();
|
||||
extension = extensionsMap.get(extensionJSONObject.getString("label"));
|
||||
if (extension == null) {
|
||||
extension = ExchangeFactory.eINSTANCE.createComponentExtension();
|
||||
extension.setIdExtension(extensionJSONObject.getString("idExtension"));
|
||||
extension.setLabel(extensionJSONObject.getString("label"));
|
||||
extension.setLastVersionAvailable(extensionJSONObject.getString("lastVersionAvailable"));
|
||||
extension.setPublicationDate(formatter.parse(extensionJSONObject.getString("publicationDate")));
|
||||
extension.setDescription(extensionJSONObject.getString("description"));
|
||||
extension.setRate(extensionJSONObject.getString("rate"));
|
||||
extension.setAuthor(extensionJSONObject.getString("author"));
|
||||
//
|
||||
List<AvailableExtensionViewDetail> reviews = new ArrayList<AvailableExtensionViewDetail>();
|
||||
JSONArray o = extensionJSONObject.getJSONArray("Reviews");
|
||||
int size = o.length();
|
||||
for (int i = 0; i < size; i++) {
|
||||
JSONObject review = o.getJSONObject(i);
|
||||
AvailableExtensionViewDetail extensionViewDetail = ExchangeFactory.eINSTANCE
|
||||
.createAvailableExtensionViewDetail();
|
||||
extensionViewDetail.setAuthor(review.getString("author"));
|
||||
extensionViewDetail.setTitle(review.getString("title"));
|
||||
extensionViewDetail.setComment(review.getString("comment"));
|
||||
extensionViewDetail.setReviewrate(review.getString("rate"));
|
||||
reviews.add(extensionViewDetail);
|
||||
}
|
||||
extensionsMap.put(extension.getIdExtension(), extension);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
|
||||
return extension;
|
||||
|
||||
}
|
||||
|
||||
public static List<ComponentExtension> getImportComponentExtensions(String version, ECodeLanguage language, String type) {
|
||||
List<ComponentExtension> extensions = new ArrayList<ComponentExtension>();
|
||||
|
||||
try {
|
||||
List<RevisionInfo> revisions = ExchangeUtils.getRevisionList(version, getLanguageId(language), type);
|
||||
|
||||
Map<String, ComponentExtension> extensionsMap = new HashMap<String, ComponentExtension>();
|
||||
|
||||
for (RevisionInfo revision : revisions) {
|
||||
ComponentExtension extension = extensionsMap.get(revision.getExtension_id());
|
||||
if (extension == null) {
|
||||
extension = ExchangeFactory.eINSTANCE.createComponentExtension();
|
||||
extension.setIdExtension(revision.getExtension_id() + "");
|
||||
extension.setLabel(revision.getExtension_name());
|
||||
extension.setAuthor(revision.getAuthor_name());
|
||||
extension.setLanguage(Language.get(getLanguageId(language)));
|
||||
extension.setDescription(revision.getExtension_description());
|
||||
extension.setLinkDownload(revision.getDownload_url());
|
||||
extension.setFilename(revision.getFilename());
|
||||
extension.setVersionExtension(revision.getRevision_name());
|
||||
extensionsMap.put(revision.getExtension_id() + "", extension);
|
||||
extensions.add(extension);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
|
||||
return extensions;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Find Contributed components.
|
||||
*
|
||||
* @param version The tos version.
|
||||
* @param language The project language.
|
||||
* @return
|
||||
*/
|
||||
public static List<ComponentExtension> getContributedExtensions(String version, ECodeLanguage language, String username,
|
||||
String passwordHash) {
|
||||
List<ComponentExtension> extensions = new ArrayList<ComponentExtension>();
|
||||
try {
|
||||
JSONArray extensionsJSONArray = ExchangeWebService.searchContributedExtensionJSONArray(username, passwordHash);
|
||||
if (extensionsJSONArray != null) {
|
||||
int size = extensionsJSONArray.length();
|
||||
for (int i = 0; i < size; i++) {
|
||||
JSONObject extensionObj = extensionsJSONArray.getJSONObject(i);
|
||||
Map<String, ComponentExtension> extensionsMap = new HashMap<String, ComponentExtension>();
|
||||
ComponentExtension extension = extensionsMap.get(extensionObj.getString("name"));
|
||||
if (extension == null) {
|
||||
extension = ExchangeFactory.eINSTANCE.createComponentExtension();
|
||||
//
|
||||
extension.setIdExtension(extensionObj.getString("idExtension"));
|
||||
extension.setTypeExtension(extensionObj.getString("typeExtension"));
|
||||
extension.setLabel(extensionObj.getString("name"));
|
||||
if (extensionObj.getString("dateExtension") != null
|
||||
&& !"".equals(extensionObj.getString("dateExtension"))) {
|
||||
extension.setPublicationDate(formatter.parse(extensionObj.getString("dateExtension")));
|
||||
} else {
|
||||
extension.setPublicationDate(formatter.parse(formatter.format(new Date())));
|
||||
}
|
||||
extension.setLastVersionAvailable(extensionObj.getString("lastVersion"));
|
||||
extensionsMap.put(extension.getIdExtension(), extension);
|
||||
extensions.add(extension);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
|
||||
return extensions;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Find Installed components.
|
||||
*
|
||||
* @param version The tos version.
|
||||
* @param language The project language.
|
||||
* @return
|
||||
*/
|
||||
public static List<ComponentExtension> getInstalledExtensions(String version, ECodeLanguage language, String username,
|
||||
String passwordHash) {
|
||||
List<ComponentExtension> extensions = new ArrayList<ComponentExtension>();
|
||||
try {
|
||||
JSONArray extensionsJSONArray = ExchangeWebService.searchInstalledExtensionJSONArray(username, passwordHash);
|
||||
if (extensionsJSONArray != null) {
|
||||
int size = extensionsJSONArray.length();
|
||||
for (int i = 0; i < size; i++) {
|
||||
JSONObject extensionObj = extensionsJSONArray.getJSONObject(i);
|
||||
Map<String, ComponentExtension> extensionsMap = new HashMap<String, ComponentExtension>();
|
||||
ComponentExtension extension = extensionsMap.get(extensionObj.getString("name"));
|
||||
if (extension == null) {
|
||||
extension = ExchangeFactory.eINSTANCE.createComponentExtension();
|
||||
//
|
||||
extension.setIdExtension(extensionObj.getString("idExtension"));
|
||||
extension.setTypeExtension(extensionObj.getString("typeExtension"));
|
||||
extension.setLabel(extensionObj.getString("name"));
|
||||
extension.setDateDownload(formatter.parse(extensionObj.getString("dateDownload")));
|
||||
extension.setDownloadedVersion(extensionObj.getString("downloadedVersion"));
|
||||
extension.setVersionExtension(extensionObj.getString("lastVersion"));
|
||||
extensionsMap.put(extension.getIdExtension(), extension);
|
||||
extensions.add(extension);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
|
||||
return extensions;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Search components according to user input.
|
||||
*
|
||||
* @param components All available components.
|
||||
* @param query The user input.
|
||||
* @param featureIds The field to search, e.g. name or description.
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static List<ComponentExtension> filterComponentExtensions(List<ComponentExtension> components, String query,
|
||||
int[] featureIds) throws Exception {
|
||||
return components;
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the components that have been installed.
|
||||
*
|
||||
* @param components
|
||||
* @return
|
||||
*/
|
||||
public static List<ComponentExtension> getInstalledExtensions(List<ComponentExtension> components) {
|
||||
List<ComponentExtension> installed = new ArrayList<ComponentExtension>();
|
||||
for (ComponentExtension component : components) {
|
||||
}
|
||||
return installed;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the project language to id.
|
||||
*
|
||||
* @param language
|
||||
* @return
|
||||
*/
|
||||
private static int getLanguageId(ECodeLanguage language) {
|
||||
switch (language) {
|
||||
case JAVA:
|
||||
return Language.JAVA_VALUE;
|
||||
case PERL:
|
||||
return Language.PERL_VALUE;
|
||||
}
|
||||
// unknow language
|
||||
return -1;
|
||||
}
|
||||
}
|
||||