Compare commits

...

98 Commits

Author SHA1 Message Date
Zhiwei Xue
a16cf3e274 fix(TUP-24323):_tdm folder is missing after build thmap job (#2694) (#4008) 2021-01-21 15:02:10 +08:00
kjwang
f8a2fdc438 Kjwang/fix tup 29525 update certificates 71 (#3892) (#3898)
TUP-29525 Update certificates for item / job signing on 7.0 / 7.1
https://jira.talendforge.org/browse/TUP-29525
2020-12-07 14:19:53 +08:00
Zhiwei Xue
5b4267e251 kjwang/Fix TUP-24579 MacOS : unable to access remote project after (#2718) (#3386)
applying TPS-3363
https://jira.talendforge.org/browse/TUP-24579

Co-authored-by: kjwang <kjwang@talend.com>
2020-06-11 09:47:32 +08:00
Zhiwei Xue
30f0f163c4 fix(TUP-24623):fix regression. (#2787) 2020-06-02 15:17:24 +08:00
Zhiwei Xue
af04a91e97 fix(TUP-24623):Compilation error on the job with project
references(#2757)
2020-06-02 15:17:17 +08:00
Zhiwei Xue
85a09d324c fix(TUP-26233):[7.0.1] Sometimes , the ZIP file created by a commandline
(#3168)

PublishJob is not correct, missing item files.
2020-04-03 12:27:43 +08:00
hzhao-talendbj
582f8b2469 fix(TUP-24613)routine section does not allow user to edit required (#2759) (#2804)
* fix(TUP-24613)routine section does not allow user to edit required
checkbox

* fix(TUP-24613)routine section does not allow user to edit required
checkbox

* fix(TUP-24613)routine section does not allow user to edit required
checkbox

* fix(TUP-24613)routine section does not allow user to edit required
checkbox
2020-04-03 12:24:15 +08:00
Zhiwei Xue
1e5157cbd2 Zwxue/7.0/tup 25833 (#2996)
* fix(TUP-23637):7.x missing local_project for big data spark batch job
(#2604) (#2664)

* TESB-27139:"Could not find the context Default" is shown in runtime
when
deploy a route into runtime

Conflicts:
	main/plugins/org.talend.core/src/main/java/org/talend/designer/runprocess/ProcessorUtilities.java
2020-01-14 14:16:50 +08:00
zshen-talend
1b682fe5bc fix(TPS-3611):back port some code on patch/7.0.1 from TUP-21077 to fix (#2893)
edit rules can not export again
2019-12-13 14:49:47 +08:00
Chao MENG
c8e1c54aac Cmeng/backport/patch/7.0.1/tup 24942 sapbapi dnd (#2850)
* fix(TUP-24942): need to do studio metadata mapping to tsapbapi (#2843)

fix(TUP-24942): need to do studio metadata mapping to tsapbapi components for the new closedlist when D&D metadata to job
https://jira.talendforge.org/browse/TUP-24942

* fix(TUP-24942): need to do studio metadata mapping to tsapbapi (#2847)

fix(TUP-24942): need to do studio metadata mapping to tsapbapi components for the new closedlist when D&D metadata to job
https://jira.talendforge.org/browse/TUP-24942
2019-11-22 15:53:46 +08:00
Jane Ding
a96615ef09 fix(TUP-21596):exclude tLibraryLoad jars for independent subjob. (#2162) (#2794) 2019-10-29 14:53:10 +08:00
Jane Ding
a98a976cd0 fix(TUP-22490)Unable to transfer JAR file to Nexsus 3 due to repository (#2514) (#2517)
version policy: SNAPSHOT does not allow version
https://jira.talendforge.org/browse/TUP-22490
2019-07-19 12:35:21 +08:00
Zhiwei Xue
6b103fd3ac fix(TUP-21871):job run well on studio but failed after build. (#2227) 2019-07-19 12:30:57 +08:00
kjwang-talend
30b87e0681 fix(TUP-20197) Connection Talend-SAS (#1706)
https://jira.talendforge.org/browse/TUP-20197
2019-04-22 10:49:08 +08:00
Jane Ding
838a8a6684 Jding/tps 3005 nullpointer on build job (#2355)
* fix(TUP-21920)Nullpointer on build job (#2253) (#2286)

* fix(TUP-21920)Nullpointer on build job (#2309) (#2331)

https://jira.talendforge.org/browse/TUP-21920
Loop dependency classpath issue caused main class not found

Conflicts:
	main/plugins/org.talend.core/src/main/java/org/talend/designer/runprocess/ProcessorUtilities.java
2019-04-16 14:30:43 +08:00
hcyi
351b9a4b4a fix(TPS-2883): add new bug fix of TUP-20592. 2019-03-19 16:28:05 +08:00
Tao Tao
0dee4713dc fix(TUP-21903):tSalesForceConnection JWT flow does not work with Context (#2248)
* fix(TUP-21903):tSalesForceConnection JWT flow does not work with Context
group variable set for connection type Oauth.

https://jira.talendforge.org/browse/TUP-21903

* fix(TUP-21903):tSalesForceConnection JWT flow does not work with Context
group variable set for connection type Oauth.

https://jira.talendforge.org/browse/TUP-21903

* fix(TUP-21903):tSalesForceConnection JWT flow does not work with Context
group variable set for connection type Oauth.

https://jira.talendforge.org/browse/TUP-21903

* fix(TUP-21903):tSalesForceConnection JWT flow does not work with Context
group variable set for connection type Oauth.

https://jira.talendforge.org/browse/TUP-21903

* fix(TUP-21903):tSalesForceConnection JWT flow does not work with Context
group variable set for connection type Oauth.

https://jira.talendforge.org/browse/TUP-21903
2019-03-18 10:27:51 +08:00
hcyi
828eb43a7b fix(TUP-21777):[7.0.1] Metadata Wizard with SSL cannot retrieve cluster (#2230)
settings
2019-03-15 18:03:01 +08:00
Chao MENG
0a6bedba28 fix(TUP-21646): Job Build hangs when the "-talendDebug" flag are enabled (#2212)
https://jira.talendforge.org/browse/TUP-21646
fix(TUP-21646): Job Build hangs when the "-talendDebug" flag are enabled
2019-02-13 15:34:55 +08:00
Chao MENG
a34a0a88fd fix(TUP-21646): Job Build hangs when the "-talendDebug" flag are enabled (#2168) (#2178)
fix(TUP-21646): Job Build hangs when the "-talendDebug" flag are enabled
https://jira.talendforge.org/browse/TUP-21646
2019-02-13 15:33:43 +08:00
Zhiwei Xue
819ee6502b fix(TUP-21552):"Could not find the context Default" shows in (#2146)
Run->console after running a specific job
2019-01-10 11:47:07 +08:00
zwxue
f35f205c3b fix(TUP-20223):Wrong branch value in the jobs generated by CI. (#1714) 2018-12-24 11:42:04 +08:00
Tao Tao
c4fe7035b5 fix(TPS-2794):[7.0.1][20181221] (#2114)
"talend-bigdata-launcher-1.2.0-20170410.jar" not found when spark job
launched from standard job by jobserver (TBD-7933)
https://jira.talendforge.org/browse/TPS-2794
2018-12-20 14:36:48 +08:00
Igor Lazebny
a2d1786ea8 Pin plugin versions 2018-12-13 15:26:02 +02:00
hcyi
051fe3e48a fix(TUP-20838):Add Context to repository does not do anything. (#1902) 2018-12-10 12:04:34 +08:00
Jane Ding
d31b682b28 fix(TUP-20315)NPE show in error log when click Project settings after (#1889)
run a job
https://jira.talendforge.org/browse/TUP-20315
2018-12-10 12:04:31 +08:00
msjian
bae2cad315 fix(TDQ-15363): make initSelection compatible DQ view (#1718) 2018-12-10 12:04:29 +08:00
Chao MENG
9343adeb4a fix(TUP-20166): Studio "Attempted to beginRule: F/.Java/src/main/java, (#1699)
fix(TUP-20166): Studio "Attempted to beginRule: F/.Java/src/main/java, does not match outer scope rule" Error
https://jira.talendforge.org/browse/TUP-20166
2018-12-10 12:04:26 +08:00
Chao MENG
6d7b654b34 fix(TUP-20166): Studio "Attempted to beginRule: F/.Java/src/main/java, (#1687)
fix(TUP-20166): Studio "Attempted to beginRule: F/.Java/src/main/java, does not match outer scope rule" Error
https://jira.talendforge.org/browse/TUP-20166
2018-12-10 12:04:24 +08:00
zwxue
e87525b0e6 fix(TUP-21127):fix routine dependency problem after doing merge (#2028) (#2040) 2018-12-10 11:10:13 +08:00
kjwang-talend
29003ebd3c TUP-21144 Talend Studio very bad performances or stuck in Job Generation (#2014) (#2019)
(Build)
https://jira.talendforge.org/browse/TUP-21144
2018-12-10 10:29:40 +08:00
hwang-talend
1e99439aba bugfix(TUP-21105):tDBConnection(Snowflake) issue within joblet. (#2017) (#2042)
bugfix(TUP-21105):tDBConnection(Snowflake) issue within joblet.
2018-12-04 14:42:27 +08:00
mbasiuk-talend
8be5155c69 fix(TDI-40846): create isDateStrict in routines (#1823) (#2026) 2018-11-19 16:02:12 +02:00
nrousseau
73e605aa4a fix(TUP-20866) don't check mac version 2018-11-13 15:50:30 +08:00
nrousseau
99be76ceed fix(TUP-20866) avoid crash on mojave 2018-11-13 15:50:05 +08:00
Chao MENG
7aebd682b2 feat(TUP-20678): Add APAC datacenter to the list on the studio (license (#1853)
/ connection)
https://jira.talendforge.org/browse/TUP-20678
2018-11-13 15:36:48 +08:00
hwang-talend
d29a0aaec8 Hwang/tup 20837 master (#1958) (#1968)
* bugfix(TUP-20837):Job containing saleforce components takes too much
time to open
2018-11-12 15:35:16 +08:00
hwang
5bc4661370 Revert "Revert "fix(TUP-19974)Opening a job takes more than half an hour in studio (#1635) (#1946)""
This reverts commit 9477f854bc.
2018-11-12 15:18:31 +08:00
jiezhang-tlnd
fa7893c4f4 fix(TUP-21005)In studio Java Debugging of Routes fails (#1965)
* fix(TUP-21005)In studio Java Debugging of Routes fails

* fix(TUP-21005)overload the changepath method
2018-11-05 10:45:54 +08:00
hwang
9477f854bc Revert "fix(TUP-19974)Opening a job takes more than half an hour in studio (#1635) (#1946)"
This reverts commit b2eb124c04.
2018-11-01 14:54:20 +08:00
hwang-talend
b2eb124c04 fix(TUP-19974)Opening a job takes more than half an hour in studio (#1635) (#1946)
https://jira.talendforge.org/browse/TUP-19974
2018-11-01 14:17:25 +08:00
nrousseau
2eea07a83a fix(TUP-20617) Improve import fix 2018-10-29 11:07:05 +08:00
hwang-talend
1ef455ed31 bugfix(TUP-20617):Can't import the data models if the data containers (#1864)
exist
2018-10-29 11:07:00 +08:00
Chao MENG
cb77c21385 fix(TUP-20803): Bad maven reference for apache-curator (#1888) (#1898)
fix(TUP-20803): Bad maven reference for apache-curator
https://jira.talendforge.org/browse/TUP-20803
2018-10-29 10:48:47 +08:00
nrousseau
8555dcd8ad fix(TUP-20850) fix commandline publish
Avoid gui call during commandline
2018-10-22 10:42:15 +08:00
jiezhang-tlnd
9d6e03f249 Jzhang/bugfix/tup 20511 need to limit the number of entry on the custom uri mapping json (#1828)
* fix(TUP-20511)Need to limit the number of entry on the
custom_uri_mapping.json
https://jira.talendforge.org/browse/TUP-20511

* fix(TUP-20511)Need to limit the number of entry on the
custom_uri_mapping.json

* fix(TUP-20511)Need to limit the number of entry on the
custom_uri_mapping.json

* fix(TUP-20511)Need to limit the number of entry on the
custom_uri_mapping.json

* fix(TUP-20511)Need to limit the number of entry on the
custom_uri_mapping.json
2018-10-17 16:56:14 +08:00
Chao MENG
f848b4ed2d Revert "Revert "fix(TUP-20620): Studio commits to remote repo, regardless of any changes (#1897)""
This reverts commit 102714f19a.
2018-10-17 16:27:09 +08:00
Chao MENG
102714f19a Revert "fix(TUP-20620): Studio commits to remote repo, regardless of any changes (#1897)"
This reverts commit 358d645e99.
2018-10-17 16:21:45 +08:00
Chao MENG
358d645e99 fix(TUP-20620): Studio commits to remote repo, regardless of any changes (#1897)
locally (#1886)

* fix(TUP-20620): Studio commits to remote repo, regardless of any
changes
locally
https://jira.talendforge.org/browse/TUP-20620

Conflicts:
	main/plugins/org.talend.core.repository/src/main/java/org/talend/core/repository/recyclebin/RecycleBinManager.java
	main/plugins/org.talend.core.repository/src/main/java/org/talend/core/repository/utils/ProjectDataJsonProvider.java
	main/plugins/org.talend.core.runtime/src/main/java/org/talend/core/model/relationship/RelationshipItemBuilder.java
	test/plugins/org.talend.core.repository.test/src/org/talend/repository/utils/ProjectDataJsonProviderTest.java
2018-10-16 11:37:01 +08:00
wchen-talend
4447d4bb50 fix(TUP-20625):Studio displays nexus password if any artifact repository
error
2018-09-14 09:49:19 +08:00
hcyi
a881130b33 fix(TUP-20164):Unable to retrieve Tables from AS400 connection. 2018-09-13 09:56:23 +08:00
wchen-talend
26059bd79c fix(TUP-20526):Not able to run job with reference project joblet on
remote job server
2018-09-03 10:26:18 +08:00
wang wei
83080b21d7 fix(TDI-40580): if talend schema contains complex expression default value, will fail to migrate for tcomv0 components (#1707)
* fix(TDI-40580): Error importing job containg tJDBC components from
version 6.5 to version 7.0

* fix(TUP-20239):Error importing job containg tJDBC components from
version 6.5 to version 7.0
2018-08-27 10:54:10 +08:00
wchen-talend
cf38315b5e fix(TUP-20505):duplicate copys of custom components uploaded to Nexus 3
(#1809)
2018-08-20 10:18:14 +08:00
wchen-talend
da5691927a fix(TUP-20474):Joblet context parameters are disappearing from the main (#1802)
job context view
2018-08-13 15:41:07 +08:00
wchen-talend
c9b1ba680c TPS-2624:[7.0.1] When doing extract as context for a tsalesforceinput,
getting "UNEXPECTED_EXCEPTION" upon selecting the same connection
created. (TUP-20492)
2018-08-06 10:55:55 +08:00
zwxue
cbb807dff3 fix(TUP-20493):Import routines code in beans code (#1795) 2018-08-06 10:06:53 +08:00
Chao MENG
69b7590e99 item(TUP-20356): Lock user recognize both login and ldap ID (#1773)
item(TUP-20356): Lock user recognize both login and ldap ID
https://jira.talendforge.org/browse/TUP-20356
2018-07-26 10:34:52 +08:00
zwxue
355a4ee886 feat(TUP-20183):change cloud publisher execution phase. 2018-07-18 11:25:23 +08:00
zwxue
275a642076 workitem(TUP-20354):Backport publish cloud plugin feature to 7.0 2018-07-13 11:22:20 +08:00
zwxue
f1fbc5de20 feat(TUP-20354):Backport publish cloud plugin feature to 7.0 (#1762) 2018-07-12 11:17:54 +08:00
zwxue
8375532c95 fix(TUP-20326): backport other needed changes from master. 2018-07-05 17:41:56 +08:00
zwxue
aad98ef225 fix(TUP-20326):fix ref project routine install issue. 2018-07-05 15:51:45 +08:00
zwxue
4578c50f6b fix(TUP-20217):Can't run a job including a tRunjob component. 2018-07-05 15:43:04 +08:00
zwxue
be4188b258 fix(TUP-20217):Can't run a job including a tRunjob component. (#1697) 2018-07-05 15:42:23 +08:00
zwxue
1cf4d5386b fix(TUP-20065):Commandline can not logon a project with subref project
after do initLocal.
2018-07-05 15:09:42 +08:00
zwxue
06c055c9d2 fix(TUP-19754):mvn package fail when main project use subref project's (#1668)
job.
2018-07-05 15:05:41 +08:00
zwxue
4bc73e655a fix(TUP-20238):Can't run job with tRunJob component. 2018-07-04 09:46:27 +08:00
zwxue
ff57acfe20 fix(TUP-20326):Error in job generation for job migrated form 6.5.1 2018-07-04 09:42:37 +08:00
Chao MENG
69f1e32d4d fix(TUP-20357): Unable to migrate DI project from 6.5.1 To 7.0.1
https://jira.talendforge.org/browse/TUP-20357
2018-07-02 19:02:56 +08:00
Vladimir Bogatyrov
8c377775c2 [TESB-22363] Build the route which contains cTalendJob failed in studio (#1743)
* Update ProcessorUtilities.java

* Additional context folder is added

* ext-resources folder is added for subjobs referenced by tRunJob

* Processing of arguments is corrected

* Possible NPE is corrected

* Fix for issue with incorrect dependency name
2018-06-21 19:43:30 +03:00
hcyi
46b305e505 fix(TUP-20219): Error: java.io.IOException: Split class
org.talend.hadoop.mapred.lib.TaggedInputSplit not found.
2018-06-13 11:04:21 +08:00
hcyi
a03ebdeffd fix(TPS-2551): Error: java.io.IOException: Split class
org.talend.hadoop.mapred.lib.TaggedInputSplit not found.
2018-06-12 17:18:35 +08:00
Vladimir Bogatyrov
c3d592e3f1 [TESB-22258] cAWSSQS component throws no such method error 2018-06-12 09:27:50 +03:00
zwxue
314cdd7303 fix(TUP-20115):Use of SAP JCO Version greater than 3.0.10 in Talend (#1661)
7.0.1 causes initialization error.
2018-05-29 10:03:58 +08:00
Andreas Mattes
f36c57fa9b fix(TESB-22034): Improved handling of non-required bean deps in routes. (#1671)
* fix(TESB-22034): Fix handling of non-required bean libraries in route builds.

The expected handling of non-required libraries declared as bean dependencies is the following:
1. At compile time, the non-required library needs to be present.
2. At OSGi bundle build, the non-required library must not be included in the bundle, but the packages used by classes in the bundle shall be added to the imports in the manifest.
3. At microservice build, the non-required library shall be physically added.
The present fix changes the handling of non-required libraries to meet these expectations.

* fix(TESB-22034): Exclude routines from bean-specific handling.

* fix(TESB-22034): Improved handling of non-required bean deps in routes.

The handling of non-required dependencies of beans used by routes has been improved to use a separate attribute and no longer bear any risk of interfering with dependency processing for routines.
2018-05-17 16:32:31 +08:00
Andreas Mattes
f4c00362bb fix(TESB-22034): Fix handling of non-required bean libs in route builds. (#1654)
* fix(TESB-22034): Fix handling of non-required bean libraries in route builds.

The expected handling of non-required libraries declared as bean dependencies is the following:
1. At compile time, the non-required library needs to be present.
2. At OSGi bundle build, the non-required library must not be included in the bundle, but the packages used by classes in the bundle shall be added to the imports in the manifest.
3. At microservice build, the non-required library shall be physically added.
The present fix changes the handling of non-required libraries to meet these expectations.

* fix(TESB-22034): Exclude routines from bean-specific handling.
2018-05-04 15:28:46 +02:00
Mike Yan
5570790394 TESB-22034: Fixed beans library can be set to optional 2018-04-28 15:44:22 +08:00
SunChaoqun
786e647bce TESB-22023:Adding external jars with a XXX-8.0.0-20180412.070852-4.jar (#1648)
SNAPSHOT version to cConfig creates the wrong default version for the nexus upload
2018-04-27 14:14:16 +08:00
SunChaoqun
3592bfdc5d TESB-21888:When using cConfig component "Check" (Advance tab) button doesn't work any more Part II(#1643) 2018-04-24 17:54:13 +08:00
SunChaoqun
eec5ecfe43 TESB-21810:Module tab shows the incorrect list of installed jar files (#1629)
* TESB-21810:Module tab shows the incorrect list of installed jar files
when using cConfig components

* TESB-21810:Module tab shows the incorrect list of installed jar files
when using cConfig components
2018-04-11 19:15:33 +08:00
wchen-talend
9ab6f3a3f8 fix:maven uri is not correct when build ci job. 2018-04-11 18:42:46 +08:00
wchen-talend
4ddfe3b63f fix(TUP-19977):Error during Intallation of Required Libraries (#1626) 2018-04-11 18:30:08 +08:00
sizhaoliu
8544acc63a bugfix(TDQ-15108): fix NPE when run tRuleSurvivorship job on spark cluster (#1627) 2018-04-11 10:53:32 +02:00
Mike Yan
ee250bf321 TESB-21799: Fixed routes cannot use bean from reference project (#1625)
Merged as dicussed with @zwxue before.
2018-04-10 20:03:11 +08:00
SunChaoqun
1873649aba TESB-21810:Module tab shows the incorrect list of installed jar files (#1621)
when using cConfig components
2018-04-10 17:26:57 +08:00
wchen-talend
602b540b74 fix(TUP-19965):fix the download button show as manual after upload a jar
to nexus.
2018-04-09 18:14:40 +08:00
nrousseau
8cf78fc9fe fix(TUP-19780) fix reload of item (#1614)
fix(TUP-19780) fix reload of item (#1614)
2018-04-09 11:59:36 +08:00
Kevin Wang
e04f76553a Merge branch 'release/7.0.1' of https://github.com/Talend/tcommon-studio-se.git into release/7.0.1 2018-04-09 11:58:24 +08:00
nrousseau
71b5c95101 fix(TUP-19780) fix reload of item 2018-04-09 11:57:01 +08:00
zwxue
ac20507d82 workitem(TUP-19959):Wrong content for CI project settings on TOS and (#1613)
missing documentation for user
2018-04-09 11:02:57 +08:00
Chao MENG
f2e086da18 fix junit for MigrationToolServiceTest (#1605) 2018-04-08 10:37:25 +08:00
nrousseau
dd4f207455 fix(TESB-21702) add only to root pom if child pom exists (#1610) 2018-04-06 16:58:36 +08:00
souvanny
026ec6f8b5 babili-export (#1608) 2018-04-06 15:52:28 +08:00
Ivan Gonchar
ed18c48ac2 chore: bump Components version to 0.23.1 (#1606) 2018-04-06 11:40:21 +08:00
apoltavtsev
cd51a8b93e TESB-21764 Missing jvmArgs are added (#1601) 2018-04-05 21:50:31 +02:00
zwxue
162aaeff65 fix(TUP-19945):first generate failed with error:ProcessorException: (#1604)
Routines "myroutine" has compile errors.
2018-04-05 12:45:00 +08:00
Jenkins Continuous Build server
e0ae2ba35a Set version to 7.0.1 2018-04-03 15:37:17 +02:00
290 changed files with 2991 additions and 919 deletions

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.common.ui.runtime.nl</artifactId>

View File

@@ -1,5 +1,6 @@
AccessorUtils.Assert0=\u8FD9\u4E2A\u5217(\u6807\u9898\u4E3A\u2018{0}\u2019\uFF0CID\u4E3A\u2018{1}\u2019)\u7684\u2018BeanPropertyAccessors\u2019\u6CA1\u6709\u6B63\u786E\u914D\u7F6E\u3002\u2018{2}\u2019\u9700\u8981\u4E00\u4E2ABean<B>
AccessorUtils.Assert1=\u8FD9\u4E2A\u5217(\u6807\u9898\u4E3A\u2018{0}\u2019\uFF0CID\u4E3A\u2018{1}\u2019)\u7684\u2018BeanPropertyAccessors\u2019\u6CA1\u6709\u6B63\u786E\u914D\u7F6E,\u6216\u8005\u503C\u8BBE\u7F6E\u4E3A\u4E0D\u6B63\u786E\u7684\u7C7B\u578B\u3002
AddPushButton.AddButton.Tip=\u589E\u52A0
AddAllPushButton.AddAllButton.Tip=\u6DFB\u52A0\u6240\u6709
CellEditorDialogBehavior.textContent=...
ColorStyledText.RedoItem.Text=\u91CD\u505A

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.commons.runtime.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.commons.ui.nl</artifactId>

View File

@@ -16,6 +16,7 @@ ModelSelectionDialog.Option=\u9009\u9879
TableViewerCreator.Table.BeNull=\u8868\u4E3A\u7A7A
AddAllPushButton.AddAllButton.Tip=\u6DFB\u52A0\u6240\u6709
ExtendedTableRemoveCommand.Romve.Label=\u5220\u9664\u8868
AddPushButton.AddButton.Tip=\u6DFB\u52A0
MoveDownPushButton.MoveDownTip=\u5411\u4E0B\u79FB\u52A8\u9009\u4E2D\u9879
ExtendedTableCopyCommand.Copy.Label=\u590D\u5236\u4E00\u4E2A\u6216\u591A\u4E2A\u8868\u5728\u5916\u90E8\u526A\u8D34\u677F\u4E2D\u3002
ProposalUtils.CtrlProposal.ErrorMsg=\u63A7\u952E\u7C7B\u578B\u63D0\u793A\u4E0D\u88AB\u652F\u6301\uFF1A

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.repository.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.runtime.nl</artifactId>

View File

@@ -19,6 +19,7 @@ ColorsCodeViewerPreferencePage.keyword1Color=\u5173\u952E\u5B571 \u989C\u8272
ColorsCodeViewerPreferencePage.keyword2Color=\u5173\u952E\u5B572 \u989C\u8272
ColorsCodeViewerPreferencePage.keyword3Color=\u5173\u952E\u5B573 \u989C\u8272
ColumnNameChangedExt.columnChanged=\u7ED3\u70B9: {0} \u5217\u6539\u53D8: {1}-> {2}
ComponentsFormatPreferencePage.add=\u589E\u52A0
ComponentsFormatPreferencePage.errorCreateConnectionName=\u547D\u540D"{0}"\u65E0\u6548
ComponentsFormatPreferencePage.formatConnection=\u683C\u5F0F\u5316\u9ED8\u8BA4\u8FDE\u63A5
ComponentsFormatPreferencePage.formatHint=\u683C\u5F0F\u63D0\u793A\u9ED8\u8BA4\u503C\uFF1A

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.ui.nl</artifactId>

View File

@@ -3,6 +3,7 @@ AbstractItemMigrationTask.taskFailed=\u8FC1\u79FB{0}\u9879\u76EE\u5931\u8D25{1}
AdvancedSocketFactory.failedInitial=\u9519\u8BEF:\u65E0\u6CD5\u521D\u59CB\u5316
ArchiveFileExportOperationFullPath.SpecialFile=spagic.\u5C5E\u6027
ColumnNameChangedExt.columnChanged=\u7ED3\u70B9: {0} \u5217\u6539\u53D8: {1}-> {2}
ComponentsFormatPreferencePage.add=\u589E\u52A0
ComponentsFormatPreferencePage.errorCreateConnectionName=\u547D\u540D"{0}"\u65E0\u6548
ComponentsFormatPreferencePage.formatConnection=\u683C\u5F0F\u5316\u9ED8\u8BA4\u8FDE\u63A5
ComponentsFormatPreferencePage.formatHint=\u683C\u5F0F\u63D0\u793A\u9ED8\u8BA4\u503C\uFF1A
@@ -344,6 +345,7 @@ MetadataTableEditorView.ValueTitle=\u503C
ContextNebulaComposite.ContextGroupLabel=\u9ED8\u8BA4\u4E0A\u4E0B\u6587\u73AF\u5883
ContextTreeTable.PromptToolTips=\u6FC0\u6D3B\u63D0\u793A\u53D8\u91CF
ContextValidator.ParameterNotValid=\u53C2\u6570\u540D\u65E0\u6548
ModuleListCellEditor.add=\u6DFB\u52A0
ModuleListCellEditor.delete=\u5220\u9664
ContextBuiltinToRepositoryCommand.addRelation=\u5728\u5B58\u50A8\u5E93\u4E2D\u6709\u76F8\u540C\u540D\u79F0\u7684\u4E0A\u4E0B\u6587\u53D8\u91CF\uFF0C\u60A8\u7684\u5185\u7F6E\u53D8\u91CF\u5C06\u88AB\u66FF\u6362\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F
WorkspaceMnu.switch.text=\u5207\u6362\u5DE5\u4F5C\u533A

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.cwm.mip.edit.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.cwm.mip.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.designer.maven.ui.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.help.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.helpers.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.librariesmanager.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.librariesmanager.ui.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.metadata.managment.nl</artifactId>

View File

@@ -19,6 +19,7 @@ ColorsCodeViewerPreferencePage.keyword1Color=\u5173\u952E\u5B571 \u989C\u8272
ColorsCodeViewerPreferencePage.keyword2Color=\u5173\u952E\u5B572 \u989C\u8272
ColorsCodeViewerPreferencePage.keyword3Color=\u5173\u952E\u5B573 \u989C\u8272
ColumnNameChangedExt.columnChanged=\u7ED3\u70B9: {0} \u5217\u6539\u53D8: {1}-> {2}
ComponentsFormatPreferencePage.add=\u589E\u52A0
ComponentsFormatPreferencePage.errorCreateConnectionName=\u547D\u540D"{0}"\u65E0\u6548
ComponentsFormatPreferencePage.formatConnection=\u683C\u5F0F\u5316\u9ED8\u8BA4\u8FDE\u63A5
ComponentsFormatPreferencePage.formatHint=\u683C\u5F0F\u63D0\u793A\u9ED8\u8BA4\u503C\uFF1A

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.metadata.managment.ui.nl</artifactId>

View File

@@ -330,6 +330,7 @@ SalesforceStep2Form.otherTitle=\u5176\u5B83\u5217\u6807\u9898
SalesforceStep2Form.output=\u6807\u51c6\u8f93\u51fa
SalesforceStep2Form.preview=\u9884
SchemaWizard.windowTitle=\u67B6\u6784
SelectDatabaseJarDialog.add=\u589E\u52A0
SelectDatabaseJarDialog.delete=\u5220\u9664
SelectDatabaseJarDialog.warningTitle=\u8B66\u544A
SelectorTableForm.ColumnNumber=\u5217\u53F7
@@ -355,6 +356,7 @@ WSDLSchemaStep1Form.ENDPOINTURI=Endpoint URI \n\n\n \n \n \n\n Endpoint URI \
\n\n\n
\n
\n
\n\n Endpoint URI
\n
\nEndpoint URI
\n

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.migrationTool.nl</artifactId>

View File

@@ -622,7 +622,6 @@ _UI_TdSoftwareSystem_type=Td Software System
_UI_TdMachine_type=Td Machine
_UI_TdXMLElement_type=Td XML Element
_UI_TdXMLContent_type=Td XML Content
_UI_TdXMLContent_type=Td XML Content
_UI_TdXMLDocument_type=Td XML Document
_UI_Metadata_connections_feature=Connections
_UI_Connection_version_feature=Version
@@ -886,7 +885,6 @@ _UI_TdXMLElement_ownedDocument_feature=Owned Document
_UI_TdXMLElement_javaType_feature=Java Type
_UI_TdXMLElement_xmlContent_feature=Xml Content
_UI_TdXMLContent_xmlElements_feature=Xml Elements
_UI_TdXMLContent_xmlElements_feature=Xml Elements
_UI_TdXMLDocument_xsdFilePath_feature=XSD File Path
_UI_FileFormat_UNIX_literal=UNIX
_UI_FileFormat_MAC_literal=MAC
@@ -1061,12 +1059,8 @@ _UI_RuleType_BASIC_literal=BASIC
_UI_RuleType_CUSTOM_literal=CUSTOM
_UI_Function_Empty_literal=Empty
_UI_Function_Lower_Case_literal=Lower_Case
_UI_Function_Lower_Case_literal=Lower_Case
_UI_Function_Upper_Case_literal=Upper_Case
_UI_Function_Upper_Case_literal=Upper_Case
_UI_Function_Lower_Case_First_literal=Lower_Case_First
_UI_Function_Lower_Case_First_literal=Lower_Case_First
_UI_Function_Upper_Case_First_literal=Upper_Case_First
_UI_Function_Upper_Case_First_literal=Upper_Case_First
_UI_Function_Length_literal=Length
_UI_Function_Match_literal=Match
@@ -1078,8 +1072,6 @@ _UI_Operator_Greater_Or_Equal_To_literal=Greater_Or_Equal_To
_UI_Operator_Lower_Or_Equal_To_literal=Lower_Or_Equal_To
_UI_ConditionType_logicalOperator_feature=Logical Operator
_UI_LogicalOperator_AND_literal=AND
_UI_LogicalOperator_AND_literal=AND
_UI_LogicalOperator_OR_literal=OR
_UI_LogicalOperator_OR_literal=OR
_UI_ValidationRulesConnection_isDisallow_feature=Is Disallow
_UI_ValidationRulesConnection_isRejectLink_feature=Is Reject Link

View File

@@ -622,7 +622,6 @@ _UI_TdSoftwareSystem_type=Syst
_UI_TdMachine_type=Machine Td
_UI_TdXMLElement_type=Elément XML Td
_UI_TdXMLContent_type=Content XML Td
_UI_TdXMLContent_type=Content XML Td
_UI_TdXMLDocument_type=Document XML Td
_UI_Metadata_connections_feature=Connexions
_UI_Connection_version_feature=Version
@@ -881,7 +880,6 @@ _UI_TdXMLElement_xsdElementDeclaration_feature=D
_UI_TdXMLElement_javaType_feature=Type Java
_UI_TdXMLElement_xmlContent_feature=Contenu XML
_UI_TdXMLContent_xmlElements_feature=Eléments XML
_UI_TdXMLContent_xmlElements_feature=Eléments XML
_UI_TdXMLDocument_xsdFilePath_feature=Chemin d'accès au fichier XSD
_UI_FileFormat_UNIX_literal=Unix
_UI_FileFormat_MAC_literal=MAC
@@ -1053,12 +1051,8 @@ _UI_RuleType_BASIC_literal=BASIC
_UI_RuleType_CUSTOM_literal=CUSTOM
_UI_Function_Empty_literal=Vide
_UI_Function_Lower_Case_literal=Minuscules
_UI_Function_Lower_Case_literal=Minuscules
_UI_Function_Upper_Case_literal=Majuscules
_UI_Function_Upper_Case_literal=Majuscules
_UI_Function_Lower_Case_First_literal=Lower_Case_First
_UI_Function_Lower_Case_First_literal=Lower_Case_First
_UI_Function_Upper_Case_First_literal=Upper_Case_First
_UI_Function_Upper_Case_First_literal=Upper_Case_First
_UI_Function_Length_literal=Length
_UI_Function_Match_literal=Correspond
@@ -1070,8 +1064,6 @@ _UI_Operator_Greater_Or_Equal_To_literal=Sup
_UI_Operator_Lower_Or_Equal_To_literal=Inférieur_ou_égal_à
_UI_ConditionType_logicalOperator_feature=Opérateur logique
_UI_LogicalOperator_AND_literal=and
_UI_LogicalOperator_AND_literal=and
_UI_LogicalOperator_OR_literal=OR
_UI_LogicalOperator_OR_literal=OR
_UI_ValidationRulesConnection_isDisallow_feature=Is Disallow
_UI_ValidationRulesConnection_isRejectLink_feature=Is Reject Link

View File

@@ -622,7 +622,6 @@ _UI_TdSoftwareSystem_type=Td \u30BD\u30D5\u30C8\u30A6\u30A7\u30A2\u30B7\u30B9\u3
_UI_TdMachine_type=TD\u30DE\u30B7\u30F3
_UI_TdXMLElement_type=TD XML\u8981\u7D20
_UI_TdXMLContent_type=TD XML\u30B3\u30F3\u30C6\u30F3\u30C4
_UI_TdXMLContent_type=TD XML\u30B3\u30F3\u30C6\u30F3\u30C4
_UI_TdXMLDocument_type=TD XML\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8
_UI_Metadata_connections_feature=\u63A5\u7D9A\u8A2D\u5B9A
_UI_Connection_version_feature=\u30D0\u30FC\u30B8\u30E7\u30F3
@@ -886,7 +885,6 @@ _UI_TdXMLElement_ownedDocument_feature=\u6240\u6709\u3055\u308C\u3066\u3044\u308
_UI_TdXMLElement_javaType_feature=Java\u30BF\u30A4\u30D7
_UI_TdXMLElement_xmlContent_feature=XML\u30B3\u30F3\u30C6\u30F3\u30C4
_UI_TdXMLContent_xmlElements_feature=XML\u8981\u7D20
_UI_TdXMLContent_xmlElements_feature=XML\u8981\u7D20
_UI_TdXMLDocument_xsdFilePath_feature=XSD\u30D5\u30A1\u30A4\u30EB\u30D1\u30B9
_UI_FileFormat_UNIX_literal=UNIX
_UI_FileFormat_MAC_literal=MAC
@@ -1061,12 +1059,8 @@ _UI_RuleType_BASIC_literal=\u30D9\u30FC\u30B7\u30C3\u30AF
_UI_RuleType_CUSTOM_literal=\u30E6\u30FC\u30B6\u30FC\u5B9A\u7FA9
_UI_Function_Empty_literal=\u7A7A
_UI_Function_Lower_Case_literal=\u5C0F\u6587\u5B57
_UI_Function_Lower_Case_literal=\u5C0F\u6587\u5B57
_UI_Function_Upper_Case_literal=\u5927\u6587\u5B57
_UI_Function_Upper_Case_literal=\u5927\u6587\u5B57
_UI_Function_Lower_Case_First_literal=\u5C0F\u6587\u5B57\u512A\u5148
_UI_Function_Lower_Case_First_literal=\u5C0F\u6587\u5B57\u512A\u5148
_UI_Function_Upper_Case_First_literal=\u5927\u6587\u5B57\u512A\u5148
_UI_Function_Upper_Case_First_literal=\u5927\u6587\u5B57\u512A\u5148
_UI_Function_Length_literal=\u9577\u3055
_UI_Function_Match_literal=\u4E00\u81F4
@@ -1078,8 +1072,6 @@ _UI_Operator_Greater_Or_Equal_To_literal=>=
_UI_Operator_Lower_Or_Equal_To_literal=<=
_UI_ConditionType_logicalOperator_feature=\u30ED\u30B8\u30C3\u30AF\u30AA\u30DA\u30EC\u30FC\u30BF
_UI_LogicalOperator_AND_literal=AND
_UI_LogicalOperator_AND_literal=AND
_UI_LogicalOperator_OR_literal=\u307E\u305F\u306F
_UI_LogicalOperator_OR_literal=\u307E\u305F\u306F
_UI_ValidationRulesConnection_isDisallow_feature=\u7981\u6B62
_UI_ValidationRulesConnection_isRejectLink_feature=\u30EA\u30B8\u30A7\u30AF\u30C8\u30EA\u30F3\u30AF

View File

@@ -605,7 +605,6 @@ _UI_TdSoftwareSystem_type=Td\u8F6F\u4EF6\u7CFB\u7EDF
_UI_TdMachine_type=Td \u8BBE\u5907
_UI_TdXMLElement_type=TdXML\u5143\u7D20
_UI_TdXMLContent_type=Td XML\u5185\u5BB9
_UI_TdXMLContent_type=Td XML\u5185\u5BB9
_UI_TdXMLDocument_type=Td XML \u6587\u6863
_UI_Metadata_connections_feature=\u8FDE\u63A5
_UI_Connection_version_feature=\u7248\u672C
@@ -865,7 +864,6 @@ _UI_TdXMLElement_ownedDocument_feature=\u81EA\u6709\u6587\u4EF6
_UI_TdSqlDataType_unsignedAttribute_feature=\u672A\u7B7E\u540D\u5C5E\u6027
_UI_TdSqlDataType_caseSensitive_feature=\u5927\u5C0F\u5199\u654F\u611F
_UI_TdSqlDataType_autoIncrement_feature=\u81EA\u589E
_UI_TdSqlDataType_localTypeName_feature=\u672C\u5730\u7C7B\u578B\u540D\u79F0
_UI_TdSqlDataType_localTypeName_feature=\u672C\u5730\u7C7B\u578B\u540D\u79F0
_UI_TdSqlDataType_searchable_feature=\u53EF\u68C0\u7D22\u7684
_UI_TdXMLElement_xsdElementDeclaration_feature=Xsd \u5143\u7D20\u58F0\u660E
@@ -1036,12 +1034,8 @@ _UI_RuleType_BASIC_literal=\u57FA\u672C\u7684
_UI_ValidationRulesConnection_refSchema_feature=\u53C2\u8003\u6A21\u5F0F
_UI_ValidationRulesConnection_refColumnNames_feature=Ref \u5217\u540D
_UI_ValidationRulesConnection_javaCondition_feature=Java\u6761\u4EF6\u5224\u65AD
_UI_ValidationRulesConnection_sqlCondition_feature=SQL \u6761\u4EF6
_UI_ValidationRulesConnection_conditions_feature=\u6761\u4EF6
_UI_ValidationRulesConnection_sqlCondition_feature=SQL \u6761\u4EF6
_UI_ValidationRulesConnection_conditions_feature=\u6761\u4EF6
_UI_RuleType_CUSTOM_literal=\u81EA\u5B9A\u4E49
_UI_Function_Empty_literal=\u7a7a
_UI_RuleType_REFERENCE_literal=\u5F15\u7528
_UI_RuleType_BASIC_literal=\u57FA\u672C\u7684
_UI_RuleType_CUSTOM_literal=\u81EA\u5B9A\u4E49
@@ -1053,8 +1047,6 @@ _UI_Operator_Greater_Or_Equal_To_literal=\u5927\u4E8E\u7B49\u4E8E
_UI_Function_Length_literal=\u957F\u5EA6
_UI_Function_Match_literal=\u5339\u914D
_UI_Operator_Equals_literal=\u7B49\u4E8E
_UI_Operator_Not_Equal_To_literal=\u4E0D\u7B49\u4E8E
_UI_Operator_Greater_Than_literal=\u5927\u4E8E
_UI_Operator_Not_Equal_To_literal=\u4E0D\u7B49\u4E8E
_UI_Operator_Greater_Than_literal=\u5927\u4E8E
_UI_Operator_Lower_Than_literal=\u5C0F\u4E8E

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.model.edit.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.model.migration.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.model.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.presentation.onboarding.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.rcp.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.registration.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.items.importexport.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.items.importexport.ui.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.localprovider.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.mdm.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.metadata.nl</artifactId>

View File

@@ -368,7 +368,6 @@ JobScriptsExportWizard.exportJob=Export Job
JobScriptsExportWizardPage.ApplyToChildren=Apply to children
JobScriptsExportWizardPage.OverrideParameterValues=Override parameter's values
JobScriptsExportWizardPage.ExportJob=Export jobs to an archive file on the local file system.
JobScriptsExportWizardPage.ExportJob=Export jobs to an archive file on the local file system.
JobScriptsExportWizardPage.chooseResource=You should choose at least one resource to export
JobScriptsExportWizardPage.contextPerlScripts=Context scripts
ParametersValuesDialog_Name=name
@@ -692,7 +691,6 @@ AddListDialog.CHECKSIZE=Please check the size of the array\!
AddListDialog.Error=Error
AddListDialog.INPUTINDEX=please set index of current array
WebServiceUI.Add_list_element=Add list element
WebServiceUI.Add_list_element=Add list element
WebServiceUI.COLUMN=Column
WebServiceUI.Denormalize=Denormalize
WebServiceUI.ELEMENT=Element

View File

@@ -367,7 +367,6 @@ JobScriptsExportWizard.exportJob=Exporter le Job
JobScriptsExportWizardPage.ApplyToChildren=Appliquer aux enfants
JobScriptsExportWizardPage.OverrideParameterValues=Ecraser la valeur des paramètres
JobScriptsExportWizardPage.ExportJob=Exporter des Jobs vers un fichier archive dans le système local de fichiers.
JobScriptsExportWizardPage.ExportJob=Exporter des Jobs vers un fichier archive dans le système local de fichiers.
JobScriptsExportWizardPage.chooseResource=Sélectionnez au moins une ressource à exporter
JobScriptsExportWizardPage.contextPerlScripts=Scripts de contexte
ParametersValuesDialog_Name=Nom
@@ -685,7 +684,6 @@ AddListDialog.CHECKSIZE=V
AddListDialog.Error=ERROR
AddListDialog.INPUTINDEX=Veuillez définir l'index de la collection courante.
WebServiceUI.Add_list_element=Ajouter un élément à la liste
WebServiceUI.Add_list_element=Ajouter un élément à la liste
WebServiceUI.COLUMN=Colonne
WebServiceUI.Denormalize=Dénormaliser
WebServiceUI.ELEMENT=Elément

View File

@@ -368,7 +368,6 @@ JobScriptsExportWizard.exportJob=\u30B8\u30E7\u30D6\u306E\u30A8\u30AF\u30B9\u30D
JobScriptsExportWizardPage.ApplyToChildren=\u5B50\u306B\u9069\u7528
JobScriptsExportWizardPage.OverrideParameterValues=\u30D1\u30E9\u30E1\u30FC\u30BF\u5024\u306E\u4E0A\u66F8\u304D
JobScriptsExportWizardPage.ExportJob=\u30ED\u30FC\u30AB\u30EB\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u306B\u30B8\u30E7\u30D6\u30A2\u30FC\u30AB\u30A4\u30D6\u3092\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8
JobScriptsExportWizardPage.ExportJob=\u30ED\u30FC\u30AB\u30EB\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u306B\u30B8\u30E7\u30D6\u30A2\u30FC\u30AB\u30A4\u30D6\u3092\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8
JobScriptsExportWizardPage.chooseResource=\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u3059\u308B\u30EA\u30BD\u30FC\u30B9\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u9078\u629E\u3057\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093
JobScriptsExportWizardPage.contextPerlScripts=\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u30B9\u30AF\u30EA\u30D7\u30C8
ParametersValuesDialog_Name=\u540D\u524D
@@ -692,7 +691,6 @@ AddListDialog.CHECKSIZE=\u914D\u5217\u306E\u30B5\u30A4\u30BA\u3092\u78BA\u8A8D\u
AddListDialog.Error=\u30A8\u30E9\u30FC
AddListDialog.INPUTINDEX=\u73FE\u5728\u306E\u914D\u5217\u306B\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044
WebServiceUI.Add_list_element=\u30EA\u30B9\u30C8\u8981\u7D20\u306E\u8FFD\u52A0
WebServiceUI.Add_list_element=\u30EA\u30B9\u30C8\u8981\u7D20\u306E\u8FFD\u52A0
WebServiceUI.COLUMN=\u30AB\u30E9\u30E0
WebServiceUI.Denormalize=\u975E\u6B63\u898F\u5316
WebServiceUI.ELEMENT=\u30E2\u30B8\u30E5\u30FC\u30EB

View File

@@ -323,7 +323,6 @@ JobScriptsExportWSWizardPage.newJobVersion={0} \u7248\u672C
JobScriptsExportWSWizardPage.newJobVersion.Label=\u9009\u62E9{0}\u7248\u672C
JobScriptsExportWizardPage.ApplyToChildren=\u66f4\u65b0\u5b50\u7c7b
JobScriptsExportWizardPage.ExportJob=\u5c06\u4f5c\u4e1a\u811a\u672c\u5bfc\u51fa\u5230\u672c\u5730\u7cfb\u7edf\u7684\u5b58\u6863\u91cc
JobScriptsExportWizardPage.ExportJob=\u5c06\u4f5c\u4e1a\u811a\u672c\u5bfc\u51fa\u5230\u672c\u5730\u7cfb\u7edf\u7684\u5b58\u6863\u91cc
JobScriptsExportWizardPage.contextPerlScripts=\u73af\u5883\u811a\u672c
ParametersValuesDialog_Name=\u4f5c\u4e1a\u540d
ParametersValuesDialog_Value=\u503c
@@ -458,6 +457,7 @@ RepositoryPreferencePage.RefreshTitle=\u5237\u65B0\u5E93
RepositoryReviewDialog.metadataTitle=\u5143\u6570\u636E
RepositoryReviewDialog.repositoryContent=\u5E93\u5185\u5BB9
RepositoryReviewDialog.waringTitle=\u8B66\u544A
SelectDatabaseJarDialog.add=\u589E\u52A0
SelectDatabaseJarDialog.delete=\u5220\u9664
SelectDatabaseJarDialog.warningTitle=\u8B66\u544A
SelectDeleteProjectDialog.DeselectAll=\u5168\u90E8\u4E0D\u9009
@@ -540,7 +540,6 @@ AddListDialog.CHECKSIZE=\u8BF7\u68C0\u67E5\u6570\u7EC4\u957F\u5EA6
AddListDialog.CHECKSIZE=\u8BF7\u68C0\u67E5\u6570\u7EC4\u957F\u5EA6
AddListDialog.Error=\u9519\u8BEF
AddListDialog.INPUTINDEX=\u8BF7\u8BBE\u7F6E\u5F53\u524D\u6570\u7EC4\u7684\u7D22\u5F15
WebServiceUI.Add_list_element=\u6DFB\u52A0\u5217\u8868\u5143\u7D20
WebServiceUI.Add_list_element=\u6DFB\u52A0\u5217\u8868\u5143\u7D20
WebServiceUI.COLUMN=\u5217
WebServiceUI.Denormalize=\u975E\u89C4\u8303\u5316
@@ -808,6 +807,7 @@ WSDLSchemaStep1Form.ENDPOINTURI=\u7AEF\u70B9URI
WSDLSchemaStep1Form.ENDPOINTURI=\u7AEF\u70B9URI
WSDLSchemaStep1Form.MethodName=\u65B9\u6CD5\u540D
WSDLSchemaStep1Form.NeedAuth=\u9700\u8981\u9A8C\u8BC1?
WSDLSchemaStep1Form.ParColumnValue=\u503c
WSDLSchemaStep1Form.ParameterAdd=\u589E\u52A0
WSDLSchemaStep1Form.ParameterRemove=\u53BB\u9664
WSDLSchemaStep1Form.Parameters=\u53C2\u6570

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.repository.view.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.resources.nl</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.commons.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.fragment.jars.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.help.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.jdt.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.libraries.jdbc.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.m2e.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.model.migration.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.rcp.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.update.p2.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.updates.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.utils.feature</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.common.ui.runtime</artifactId>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.commons.runtime</artifactId>

View File

@@ -12,7 +12,7 @@
<parent>
<groupId>org.talend</groupId>
<artifactId>org.talend.tos</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../pom_server.xml</relativePath>
</parent>

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.commons.ui</artifactId>

View File

@@ -14,6 +14,7 @@ package org.talend.commons.ui.gmf.util;
import java.util.concurrent.Semaphore;
import org.eclipse.swt.graphics.DeviceData;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
@@ -111,23 +112,38 @@ public class DisplayUtils {
* @throws Exception
*/
public static void syncExecInNewUIThread(Runnable runnable) throws Exception {
syncExecInNewUIThread(runnable, null);
}
public static void syncExecInNewUIThread(Runnable runnable, DeviceData deviceData) throws Exception {
final Semaphore semaphore = new Semaphore(1, true);
semaphore.acquire();
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
Display display = new Display();
Display display = null;
if (deviceData == null) {
display = new Display();
} else {
display = new Display(deviceData);
}
try {
Thread currentThread = Thread.currentThread();
boolean releasedLock = false;
while (!currentThread.isInterrupted()) {
if (!display.readAndDispatch()) {
if (!releasedLock) {
semaphore.release();
releasedLock = true;
try {
if (!display.readAndDispatch()) {
if (!releasedLock) {
semaphore.release();
releasedLock = true;
}
Thread.sleep(50);
}
Thread.sleep(50);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
ExceptionHandler.process(e);
}
}
} catch (InterruptedException e) {

View File

@@ -24,7 +24,7 @@ import org.eclipse.ui.IWorkbenchPart;
* $Id: ITreeContextualAction.java 7196 2007-11-26 04:19:19Z bqian $
*
*/
public interface ITreeContextualAction extends IAction {
public interface ITreeContextualAction extends IAction, Cloneable {
/**
* Initialise the action on a given tree with the actual selection.<br/>
@@ -76,4 +76,6 @@ public interface ITreeContextualAction extends IAction {
public void setGroupId(String groupId);
public String getGroupId();
public ITreeContextualAction clone() throws CloneNotSupportedException;
}

View File

@@ -27,6 +27,7 @@ import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.talend.commons.ui.runtime.image.ImageUtils;
import org.talend.commons.utils.system.EnvironmentUtils;
/**
* <code>ImageCapture</code> provides utilities to capture images.
@@ -53,11 +54,7 @@ public class ImageCapture {
*
* @param control
*/
public static Image capture(Control control) {
// First try not conclusive...
// So I should use org.eclipse.ve.internal.swt.targetvm.win32.ImageCapture class which work perfectly
public static Image capture(Control control) {
Shell shell = control.getShell();
Rectangle boundsShell = shell.getBounds();
@@ -71,7 +68,13 @@ public class ImageCapture {
GC gc = new GC(control);
Image image = new Image(control.getDisplay(), control.getSize().x, control.getSize().y);
gc.copyArea(image, 0, 0);
boolean skipCopyArea = false;
if (EnvironmentUtils.isMacOsSytem()) {
skipCopyArea = true;
}
if (!skipCopyArea) {
gc.copyArea(image, 0, 0);
}
gc.dispose();
return image;
// return getImage(control, control.getSize().x, control.getSize().y, true);

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.repository</artifactId>

View File

@@ -2,20 +2,10 @@ package org.talend.core.repository.logintask;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceDescription;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.SubMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.utils.time.TimeMeasure;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.ICoreService;
import org.talend.core.repository.i18n.Messages;
import org.talend.designer.runprocess.IRunProcessService;
import org.talend.login.AbstractLoginTask;
import org.talend.repository.ProjectManager;
@@ -30,56 +20,7 @@ public class SyncLibrariesLoginTask extends AbstractLoginTask implements IRunnab
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
TimeMeasure.display = CommonsPlugin.isDebugMode();
TimeMeasure.displaySteps = CommonsPlugin.isDebugMode();
TimeMeasure.measureActive = CommonsPlugin.isDebugMode();
TimeMeasure.begin("SyncLibraries");
SubMonitor subMonitor = SubMonitor.convert(monitor, 1);
SubMonitor currentMonitor = subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE);
currentMonitor.beginTask(Messages.getString("ProxyRepositoryFactory.synchronizeLibraries"), 1); //$NON-NLS-1$
coreService.syncLibraries(currentMonitor);
TimeMeasure.step("SyncLibraries", "sync components libraries");
if (monitor != null && monitor.isCanceled()) {
throw new OperationCanceledException(""); //$NON-NLS-1$
}
// remove the auto-build to enhance the build speed and application's use
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceDescription description = workspace.getDescription();
description.setAutoBuilding(false);
try {
workspace.setDescription(description);
} catch (CoreException e) {
// do nothing
}
coreService.createStatsLogAndImplicitParamter(ProjectManager.getInstance().getCurrentProject());
if (monitor != null && monitor.isCanceled()) {
throw new OperationCanceledException(""); //$NON-NLS-1$
}
if (monitor != null && monitor.isCanceled()) {
throw new OperationCanceledException(""); //$NON-NLS-1$
}
IRunProcessService runProcessService = getRunProcessService();
if (runProcessService != null) {
runProcessService.initializeRootPoms();
}
TimeMeasure.end("SyncLibraries");
TimeMeasure.display = false;
TimeMeasure.displaySteps = false;
TimeMeasure.measureActive = false;
}
/**
* DOC nrousseau Comment method "getRunProcessService".
* @return
*/
private IRunProcessService getRunProcessService() {
if (GlobalServiceRegister.getDefault().isServiceRegistered(IRunProcessService.class)) {
return (IRunProcessService) GlobalServiceRegister.getDefault().getService(IRunProcessService.class);
}
return null;
}
}

View File

@@ -326,4 +326,14 @@ public abstract class AbstractRepositoryFactory implements IRepositoryFactory {
public void setStorage(String storage) {
this.storage = storage;
}
@Override
public boolean isRepositoryBusy() {
return false;
}
@Override
public RepositoryWorkUnit getWorkUnitInProgress() {
return null;
}
}

View File

@@ -432,6 +432,13 @@ public interface IRepositoryFactory {
public List<ILockBean> getAllRemoteLocks();
public void loadProjectAndSetContext(IProject eclipseProject) throws PersistenceException;
public void loadProjectAndSetContext(Project project, IProject eclipseProject, boolean updateCurrentProject)
throws PersistenceException;
public byte[] getReferenceSettingContent(Project project, String branch) throws PersistenceException;
public boolean isRepositoryBusy();
public RepositoryWorkUnit getWorkUnitInProgress();
}

View File

@@ -78,6 +78,7 @@ import org.talend.core.ICoreService;
import org.talend.core.IESBService;
import org.talend.core.ITDQRepositoryService;
import org.talend.core.PluginChecker;
import org.talend.core.context.CommandLineContext;
import org.talend.core.context.Context;
import org.talend.core.context.RepositoryContext;
import org.talend.core.exception.TalendInternalPersistenceException;
@@ -1585,6 +1586,11 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
this.repositoryFactoryFromProvider.loadProjectAndSetContext(eclipseProject);
}
public void loadProjectAndSetContext(Project project, IProject eclipseProject, boolean updateCurrentProject)
throws PersistenceException {
this.repositoryFactoryFromProvider.loadProjectAndSetContext(project, eclipseProject, updateCurrentProject);
}
/**
* DOC smallet Comment method "emptyTempFolder".
*
@@ -1862,8 +1868,8 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
return this.repositoryFactoryFromProvider.getModulesNeededForJobs();
}
private void initEmfProjectContent() throws PersistenceException, BusinessException {
getRepositoryContext().setProject(null);
@Override
public void initEmfProjectContent() throws PersistenceException, BusinessException {
Project[] projects = readProject();
emfProjectContentMap.clear();
if (projects != null && projects.length > 0) {
@@ -1908,6 +1914,7 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
SubMonitor currentMonitor = subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE);
currentMonitor.beginTask(Messages.getString("ProxyRepositoryFactory.logonInProgress"), 1); //$NON-NLS-1$
project.setReferenceProjectProvider(null);
getRepositoryContext().setProject(null);
initEmfProjectContent();
if (getEmfProjectContent(project.getTechnicalLabel()) != null) {
project.setEmfProject(getEmfProjectContent(project.getTechnicalLabel()));
@@ -1942,6 +1949,14 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
}
}
ICoreService coreService = getCoreService();
if (coreService != null) {
currentMonitor = subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE);
currentMonitor.beginTask(Messages.getString("ProxyRepositoryFactory.synchronizeLibraries"), 1); //$NON-NLS-1$
coreService.syncLibraries(currentMonitor);
TimeMeasure.step("SyncLibraries", "sync components libraries"); //$NON-NLS-1$
}
currentMonitor = subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE);
currentMonitor.beginTask("Execute before logon migrations tasks", 1); //$NON-NLS-1$
ProjectManager.getInstance().getMigrationRecords().clear();
@@ -1987,7 +2002,13 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
throw new OperationCanceledException(""); //$NON-NLS-1$
}
ICoreService coreService = getCoreService();
boolean isCommandLineLocalRefProject = false;
CommandLineContext commandLineContext = (CommandLineContext) CoreRuntimePlugin.getInstance().getContext()
.getProperty(Context.COMMANDLINE_CONTEXT_KEY);
if (commandLineContext != null && commandLineContext.isLogonRefProject()) {
isCommandLineLocalRefProject = true;
}
if (coreService != null) {
// clean workspace
currentMonitor.beginTask(Messages.getString("ProxyRepositoryFactory.cleanWorkspace"), 1); //$NON-NLS-1$
@@ -2016,12 +2037,14 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
currentMonitor = subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE);
currentMonitor.beginTask(Messages.getString("ProxyRepositoryFactory.synch.repo.items"), 1); //$NON-NLS-1$
try {
coreService.syncAllRoutines();
// PTODO need refactor later, this is not good, I think
coreService.syncAllBeans();
} catch (SystemException e1) {
//
if (!isCommandLineLocalRefProject) {
try {
coreService.syncAllRoutines();
// PTODO need refactor later, this is not good, I think
coreService.syncAllBeans();
} catch (SystemException e1) {
//
}
}
}
if (monitor != null && monitor.isCanceled()) {
@@ -2052,7 +2075,7 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
// ignore
}
if (runProcessService != null) {
if (runProcessService != null && !isCommandLineLocalRefProject) {
runProcessService.initializeRootPoms();
TimeMeasure.step("logOnProject", "install / setup root poms"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -2459,4 +2482,12 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
public byte[] getReferenceSettingContent(Project project, String branch) throws PersistenceException {
return repositoryFactoryFromProvider.getReferenceSettingContent(project, branch);
}
public boolean isRepositoryBusy() {
return repositoryFactoryFromProvider.isRepositoryBusy();
}
public RepositoryWorkUnit getWorkUnitInProgress() {
return repositoryFactoryFromProvider.getWorkUnitInProgress();
}
}

View File

@@ -14,10 +14,15 @@ package org.talend.core.repository.recyclebin;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
@@ -50,20 +55,22 @@ import org.talend.repository.ProjectManager;
*/
public class RecycleBinManager {
private static Map<String, RecycleBin> projectRecyclebins;
public static final String TALEND_RECYCLE_BIN_INDEX = "recycle_bin.index"; //$NON-NLS-1$
private static RecycleBinManager manager;
private RecycleBinManager() {
private Map<String, RecycleBin> projectRecyclebins;
private Map<RecycleBin, RecycleBin> lastSavedRecycleBinMap;
private RecycleBinManager() {
lastSavedRecycleBinMap = new HashMap<>();
projectRecyclebins = new HashMap<>();
}
public static RecycleBinManager getInstance() {
if (manager == null) {
manager = new RecycleBinManager();
projectRecyclebins = new HashMap<String, RecycleBin>();
}
return manager;
}
@@ -74,11 +81,15 @@ public class RecycleBinManager {
public void clearCache() {
projectRecyclebins.clear();
lastSavedRecycleBinMap.clear();
}
public void clearCache(Project project) {
String projectTechnicalLabel = project.getTechnicalLabel();
projectRecyclebins.remove(projectTechnicalLabel);
RecycleBin removedRecycleBin = projectRecyclebins.remove(projectTechnicalLabel);
if (removedRecycleBin != null) {
lastSavedRecycleBinMap.remove(removedRecycleBin);
}
}
public void clearIndex(Project project) {
@@ -202,6 +213,13 @@ public class RecycleBinManager {
// if there is any exception, just set a new resource
projectRecyclebins.put(project.getTechnicalLabel(), RecycleBinFactory.eINSTANCE.createRecycleBin());
}
RecycleBin recycleBin = projectRecyclebins.get(project.getTechnicalLabel());
if (recycleBin != null) {
RecycleBin lastSavedRecycleBin = EcoreUtil.copy(recycleBin);
lastSavedRecycleBinMap.put(recycleBin, lastSavedRecycleBin);
}
}
public RecycleBin loadRecycleBin(IPath recycleBinIndexPath) throws Exception {
@@ -219,14 +237,25 @@ public class RecycleBinManager {
loadRecycleBin(project);
}
try {
RecycleBin recycleBin = projectRecyclebins.get(project.getTechnicalLabel());
boolean recycleBinChanged = true;
if (recycleBin != null) {
recycleBinChanged = !equals(recycleBin, lastSavedRecycleBinMap.get(recycleBin));
}
if (!recycleBinChanged) {
return;
}
Resource resource = getResource(project);
if (resource == null) {
resource = createRecycleBinResource(project);
}
resource.getContents().clear();
projectRecyclebins.get(project.getTechnicalLabel()).setLastUpdate(new Date());
resource.getContents().add(projectRecyclebins.get(project.getTechnicalLabel()));
recycleBin.setLastUpdate(new Date());
resource.getContents().add(recycleBin);
EmfHelper.saveResource(resource);
lastSavedRecycleBinMap.put(recycleBin, EcoreUtil.copy(recycleBin));
} catch (PersistenceException e) {
ExceptionHandler.process(e);
}
@@ -267,4 +296,123 @@ public class RecycleBinManager {
resource.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
return resource;
}
public static boolean equals(RecycleBin r1, RecycleBin r2) {
if (r1 == null && r2 == null) {
return true;
}
if (r1 == null || r2 == null) {
return false;
}
boolean isEquals = false;
Set<String> r1DeletedFolders = new HashSet<>(r1.getDeletedFolders());
Set<String> r2DeletedFolders = new HashSet<>(r2.getDeletedFolders());
/**
* 1. check deleted folders
*/
if (r1DeletedFolders.size() == r2DeletedFolders.size()) {
r1DeletedFolders.removeAll(r2DeletedFolders);
if (r1DeletedFolders.isEmpty()) {
isEquals = true;
} else {
isEquals = false;
}
} else {
isEquals = false;
}
/**
* 2. check deleted items
*/
if (isEquals) {
EList<TalendItem> r1DeletedItems = r1.getDeletedItems();
EList<TalendItem> r2DeletedItems = r2.getDeletedItems();
if (r1DeletedItems.size() == r2DeletedItems.size()) {
List<TalendItem> r1DeletedItemList = new LinkedList<>(r1DeletedItems);
List<TalendItem> r2DeletedItemList = new LinkedList<>(r2DeletedItems);
TalendItemComparator talendItemComparator = new TalendItemComparator();
r1DeletedItemList.sort(talendItemComparator);
r2DeletedItemList.sort(talendItemComparator);
Iterator<TalendItem> iter1 = r1DeletedItemList.iterator();
Iterator<TalendItem> iter2 = r2DeletedItemList.iterator();
boolean differentList = false;
while (iter1.hasNext() && iter2.hasNext()) {
TalendItem item1 = iter1.next();
TalendItem item2 = iter2.next();
if (talendItemComparator.compare(item1, item2) != 0) {
differentList = true;
break;
}
}
if (differentList) {
isEquals = false;
} else {
isEquals = true;
}
} else {
isEquals = false;
}
}
return isEquals;
}
public static int compare(TalendItem item1, TalendItem item2) {
if (item1 == null && item2 == null) {
return 0;
}
if (item1 == null) {
return -1;
}
if (item2 == null) {
return 1;
}
int result = 0;
String type1 = item1.getType();
String type2 = item2.getType();
if (type1 == null) {
type1 = "";
}
if (type2 == null) {
type2 = "";
}
result = type1.compareTo(type2);
if (result != 0) {
return result;
}
String path1 = item1.getPath();
String path2 = item2.getPath();
if (path1 == null) {
path1 = "";
}
if (path2 == null) {
path2 = "";
}
result = path1.compareTo(path2);
if (result != 0) {
return result;
}
String id1 = item1.getId();
String id2 = item2.getId();
if (id1 == null) {
id1 = "";
}
if (id2 == null) {
id2 = "";
}
result = id1.compareTo(id2);
return result;
}
private static class TalendItemComparator implements Comparator<TalendItem> {
@Override
public int compare(TalendItem arg0, TalendItem arg1) {
return RecycleBinManager.compare(arg0, arg1);
}
}
}

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>org.talend.studio</groupId>
<artifactId>tcommon-studio-se</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>7.0.1</version>
<relativePath>../../../</relativePath>
</parent>
<artifactId>org.talend.core.runtime</artifactId>

View File

@@ -0,0 +1,27 @@
// ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.core.context;
public class CommandLineContext {
private boolean isLogonRefProject;
public boolean isLogonRefProject() {
return isLogonRefProject;
}
public void setLogonRefProject(boolean isLogonRefProject) {
this.isLogonRefProject = isLogonRefProject;
}
}

View File

@@ -33,6 +33,8 @@ public final class Context {
public static final String REPOSITORY_CONTEXT_KEY = "repositoryContext"; //$NON-NLS-1$
public static final String COMMANDLINE_CONTEXT_KEY = "commandlineContext"; //$NON-NLS-1$
private static final String BREAKPOINTS = "BREAKPOINTS"; //$NON-NLS-1$
/**

View File

@@ -80,6 +80,16 @@ public class RepositoryContext {
&& user.getGitAuthenticationInfo() == null) {
oldGitAuthentification = this.user.getGitAuthenticationInfo();
}
String oldLdapId = null;
if (this.user != null && user != null && StringUtils.equals(this.user.getLogin(), user.getLogin())
&& user.getLdapId() == null) {
oldLdapId = this.user.getLdapId();
}
String oldLdaplogin = null;
if (this.user != null && user != null && StringUtils.equals(this.user.getLogin(), user.getLogin())
&& user.getLdapLogin() == null) {
oldLdaplogin = this.user.getLdapLogin();
}
this.user = user;
if (oldAuthentification != null) {
this.user.setAuthenticationInfo(oldAuthentification);
@@ -87,6 +97,12 @@ public class RepositoryContext {
if (oldGitAuthentification != null) {
this.user.setGitAuthenticationInfo(oldGitAuthentification);
}
if (oldLdapId != null) {
this.user.setLdapId(oldLdapId);
}
if (oldLdaplogin != null) {
this.user.setLdapLogin(oldLdaplogin);
}
}
/**

View File

@@ -68,9 +68,9 @@ public enum EDatabaseVersion4Drivers {
INFORMIX(new DbVersion4Drivers(EDatabaseTypeName.INFORMIX, "ifxjdbc.jar")), //$NON-NLS-1$
SAS_9_1(new DbVersion4Drivers(EDatabaseTypeName.SAS, "SAS 9.1", "SAS_9.1", new String[] { "sas.core.jar", //$NON-NLS-1$
"sas.intrnet.javatools.jar", "sas.svc.connection.jar" })), //$NON-NLS-1$ //$NON-NLS-2$
"sas.intrnet.javatools.jar", "sas.svc.connection.jar", "org.apache.log4j_1.2.15.v201012070815.jar" })), //$NON-NLS-1$ //$NON-NLS-2$
SAS_9_2(new DbVersion4Drivers(EDatabaseTypeName.SAS,
"SAS 9.2", "SAS_9.2", new String[] { "sas.core.jar", "sas.security.sspi.jar", "sas.svc.connection.jar" })), //$NON-NLS-1$ //$NON-NLS-2$
"SAS 9.2", "SAS_9.2", new String[] { "sas.core.jar", "sas.security.sspi.jar", "sas.svc.connection.jar", "org.apache.log4j_1.2.15.v201012070815.jar" })), //$NON-NLS-1$ //$NON-NLS-2$
SAPHana(new DbVersion4Drivers(EDatabaseTypeName.SAPHana, "HDB 1.0", "HDB_1_0", "ngdbc.jar")), //$NON-NLS-1$
// MYSQL, add for 9594
MYSQL_5(new DbVersion4Drivers(EDatabaseTypeName.MYSQL, "MySQL 5", "MYSQL_5", "mysql-connector-java-5.1.30-bin.jar")), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

View File

@@ -46,6 +46,8 @@ public class ModuleNeeded {
private boolean required;
private boolean excluded;
private boolean mrRequired = false; // That indicates if the module is
// required by M/R job.
@@ -293,6 +295,14 @@ public class ModuleNeeded {
this.required = required;
}
public boolean isExcluded() {
return this.excluded;
}
public void setExcluded(boolean excluded) {
this.excluded = excluded;
}
public ELibraryInstallStatus getStatus() {
ILibraryManagerService libManagerService = (ILibraryManagerService) GlobalServiceRegister.getDefault()
.getService(ILibraryManagerService.class);
@@ -627,6 +637,9 @@ public class ModuleNeeded {
*/
public void setMavenUri(String mavenUri) {
this.mavenUriFromConfiguration = MavenUrlHelper.addTypeForMavenUri(mavenUri, getModuleName());
if (!StringUtils.isEmpty(mavenUriFromConfiguration)) {
this.mavenUri = mavenUriFromConfiguration;
}
}
public boolean isDynamic() {

View File

@@ -45,6 +45,14 @@ public interface ISAPConstant {
public static final String CHANGING = "CHANGING";//$NON-NLS-1$
public static final String PARAMETER_TYPE = "PARAMETER_TYPE";//$NON-NLS-1$
public static final String PARAMETER_TYPE_IMPORT = "IMPORT";//$NON-NLS-1$
public static final String PARAMETER_TYPE_CHANGING = "CHANGING";//$NON-NLS-1$
public static final String PARAMETER_TYPE_TABLES = "TABLES";//$NON-NLS-1$
/*
*
*/

View File

@@ -26,8 +26,9 @@ import org.apache.avro.SchemaBuilder.FieldBuilder;
import org.apache.avro.SchemaBuilder.PropBuilder;
import org.apache.avro.SchemaBuilder.RecordBuilder;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
import org.eclipse.emf.common.util.EList;
import org.talend.commons.utils.data.list.UniqueStringGenerator;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.ICoreService;
import org.talend.core.model.metadata.builder.connection.ConnectionFactory;
@@ -158,51 +159,58 @@ public final class MetadataToolAvroHelper {
String tt = in.getTalendType();
Schema type = null;
// Numeric types.
if (JavaTypesManager.LONG.getId().equals(tt)) {
type = AvroUtils._long();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Long.parseLong(defaultValue.toString());
} else if (JavaTypesManager.INTEGER.getId().equals(tt)) {
type = AvroUtils._int();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Integer.parseInt(defaultValue.toString());
} else if (JavaTypesManager.SHORT.getId().equals(tt)) {
type = AvroUtils._short();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Integer.parseInt(defaultValue.toString());
} else if (JavaTypesManager.BYTE.getId().equals(tt)) {
type = AvroUtils._byte();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Integer.parseInt(defaultValue.toString());
} else if (JavaTypesManager.DOUBLE.getId().equals(tt)) {
type = AvroUtils._double();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Double.parseDouble(defaultValue.toString());
} else if (JavaTypesManager.FLOAT.getId().equals(tt)) {
type = AvroUtils._float();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Float.parseFloat(defaultValue.toString());
} else if (JavaTypesManager.BIGDECIMAL.getId().equals(tt)) {
// decimal(precision, scale) == column length and precision?
type = AvroUtils._decimal();
}
// Other primitive types that map directly to Avro.
else if (JavaTypesManager.BOOLEAN.getId().equals(tt)) {
type = AvroUtils._boolean();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Boolean.parseBoolean(defaultValue.toString());
} else if (JavaTypesManager.BYTE_ARRAY.getId().equals(tt)) {
type = AvroUtils._bytes();
} else if (JavaTypesManager.DATE.getId().equals(tt)) {
if (matchTag(in, DiSchemaConstants.TALEND6_COLUMN_DATE_DATE)) {
type = AvroUtils._logicalDate();
} else if (matchTag(in, DiSchemaConstants.TALEND6_COLUMN_DATE_TIMESTAMP)) {
type = AvroUtils._logicalTimestamp();
} else {
// FIXME - this one should go away
type = AvroUtils._date();
}
}
// String-ish types.
else if (JavaTypesManager.STRING.getId().equals(tt) || JavaTypesManager.FILE.getId().equals(tt)
|| JavaTypesManager.DIRECTORY.getId().equals(tt) || JavaTypesManager.VALUE_LIST.getId().equals(tt)
|| JavaTypesManager.CHARACTER.getId().equals(tt) || JavaTypesManager.PASSWORD.getId().equals(tt)) {
type = AvroUtils._string();
try {
// Numeric types.
if (JavaTypesManager.LONG.getId().equals(tt)) {
type = AvroUtils._long();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Long.parseLong(defaultValue.toString());
} else if (JavaTypesManager.INTEGER.getId().equals(tt)) {
type = AvroUtils._int();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Integer.parseInt(defaultValue.toString());
} else if (JavaTypesManager.SHORT.getId().equals(tt)) {
type = AvroUtils._short();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Integer.parseInt(defaultValue.toString());
} else if (JavaTypesManager.BYTE.getId().equals(tt)) {
type = AvroUtils._byte();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Integer.parseInt(defaultValue.toString());
} else if (JavaTypesManager.DOUBLE.getId().equals(tt)) {
type = AvroUtils._double();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Double.parseDouble(defaultValue.toString());
} else if (JavaTypesManager.FLOAT.getId().equals(tt)) {
type = AvroUtils._float();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Float.parseFloat(defaultValue.toString());
} else if (JavaTypesManager.BIGDECIMAL.getId().equals(tt)) {
// decimal(precision, scale) == column length and precision?
type = AvroUtils._decimal();
}
// Other primitive types that map directly to Avro.
else if (JavaTypesManager.BOOLEAN.getId().equals(tt)) {
type = AvroUtils._boolean();
defaultValue = StringUtils.isEmpty((String)defaultValue) ? null : Boolean.parseBoolean(defaultValue.toString());
} else if (JavaTypesManager.BYTE_ARRAY.getId().equals(tt)) {
type = AvroUtils._bytes();
} else if (JavaTypesManager.DATE.getId().equals(tt)) {
if (matchTag(in, DiSchemaConstants.TALEND6_COLUMN_DATE_DATE)) {
type = AvroUtils._logicalDate();
} else if (matchTag(in, DiSchemaConstants.TALEND6_COLUMN_DATE_TIMESTAMP)) {
type = AvroUtils._logicalTimestamp();
} else {
// FIXME - this one should go away
type = AvroUtils._date();
}
}
// String-ish types.
else if (JavaTypesManager.STRING.getId().equals(tt) || JavaTypesManager.FILE.getId().equals(tt)
|| JavaTypesManager.DIRECTORY.getId().equals(tt) || JavaTypesManager.VALUE_LIST.getId().equals(tt)
|| JavaTypesManager.CHARACTER.getId().equals(tt) || JavaTypesManager.PASSWORD.getId().equals(tt)) {
type = AvroUtils._string();
}
} catch(Exception e) {
//ignore it now as we can't process the complex expression for the default value, and the default value is not useful for runtime like the old javajet tjdbcxxx
//TODO support the expression calculate, not sure it's necessary and sometimes, more complex like globalMap.get(xxx) which only have meaning after running the job.
ExceptionHandler.process(e, Level.WARN);
}
// Types with Document/Unknown elements, store as binary

View File

@@ -37,6 +37,7 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.exception.PersistenceException;
import org.talend.commons.runtime.model.components.IComponentConstants;
import org.talend.commons.runtime.model.repository.ERepositoryStatus;
@@ -739,7 +740,7 @@ public final class MetadataToolHelper {
}
Set<MetadataTable> tables = null;
IGenericWizardService wizardService = null;
if (GlobalServiceRegister.getDefault().isServiceRegistered(IGenericWizardService.class)) {
if (!CommonsPlugin.isHeadless() && GlobalServiceRegister.getDefault().isServiceRegistered(IGenericWizardService.class)) {
wizardService = (IGenericWizardService) GlobalServiceRegister.getDefault()
.getService(IGenericWizardService.class);
}

View File

@@ -100,8 +100,8 @@ import org.talend.cwm.helper.TaggedValueHelper;
*/
public class RepositoryToComponentProperty {
public static Object getValue(Connection connection, String value, IMetadataTable table, String targetComponent) {
public static Object getValue(Connection connection, String value, IMetadataTable table, String targetComponent, Map<Object, Object> contextMap) {
if (connection instanceof HL7Connection) {
return getHL7Value((HL7Connection) connection, value);
}
@@ -155,7 +155,7 @@ public class RepositoryToComponentProperty {
for (IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
if (handler.canHandle(connection)) {
return handler.getComponentValue(connection, value, table, targetComponent);
return handler.getComponentValue(connection, value, table, targetComponent, contextMap);
}
}
return null;
@@ -163,7 +163,7 @@ public class RepositoryToComponentProperty {
}
public static Object getValue(Connection connection, String value, IMetadataTable table) {
return getValue(connection, value, table, null);
return getValue(connection, value, table, null, null);
}
/**

View File

@@ -12,6 +12,7 @@
// ============================================================================
package org.talend.core.model.process;
import org.talend.daikon.properties.property.Property;
/**
* DOC cmeng class global comment. Detailled comment
@@ -20,4 +21,5 @@ public interface IGenericElementParameter extends IElementParameter {
public void setAskPropagate(Boolean askPropagate);
public Property getProperty();
}

View File

@@ -33,6 +33,7 @@ import org.talend.core.model.general.Project;
import org.talend.core.model.properties.Item;
import org.talend.core.model.properties.JobletProcessItem;
import org.talend.core.model.properties.ProcessItem;
import org.talend.core.model.properties.ProjectReference;
import org.talend.core.model.properties.Property;
import org.talend.core.model.properties.SQLPatternItem;
import org.talend.core.model.relationship.Relation;
@@ -904,12 +905,17 @@ public final class ProcessUtils {
}
if (needBeans && GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
IProxyRepositoryService service = (IProxyRepositoryService) GlobalServiceRegister.getDefault().getService(
IProxyRepositoryService.class);
IProxyRepositoryService service = (IProxyRepositoryService) GlobalServiceRegister.getDefault()
.getService(IProxyRepositoryService.class);
ERepositoryObjectType beansType = ERepositoryObjectType.valueOf("BEANS"); //$NON-NLS-1$
try {
IProxyRepositoryFactory factory = service.getProxyRepositoryFactory();
List<IRepositoryViewObject> all = factory.getAll(project, beansType);
List<ProjectReference> references = ProjectManager.getInstance().getCurrentProject()
.getProjectReferenceList(true);
for (ProjectReference ref : references) {
all.addAll(factory.getAll(new Project(ref.getReferencedProject()), beansType));
}
if (!all.isEmpty()) { // has bean
return true;
}

View File

@@ -19,6 +19,7 @@ import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -28,6 +29,7 @@ import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.emf.common.util.EList;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.commons.exception.PersistenceException;
import org.talend.core.model.general.Project;
@@ -134,6 +136,8 @@ public class RelationshipItemBuilder {
private boolean modified = false;
private boolean autoSave = true;
private Project aimProject;
private IProxyRepositoryFactory proxyRepositoryFactory;
@@ -471,8 +475,11 @@ public class RelationshipItemBuilder {
itemToTest.setVersion(version);
if (!itemsRelations.containsKey(itemToTest)) {
try {
Item item = proxyRepositoryFactory.getLastVersion(itemId).getProperty().getItem();
addOrUpdateItem(item, false);
IRepositoryViewObject object = proxyRepositoryFactory.getLastVersion(itemId);
if (object != null) {
Item item = object.getProperty().getItem();
addOrUpdateItem(item, false);
}
} catch (PersistenceException e) {
log.error(e.getMessage());
}
@@ -660,6 +667,16 @@ public class RelationshipItemBuilder {
return false;
}
public void autoSaveRelations() {
if (!isAutoSave()) {
return;
}
saveRelations();
}
/**
* <font color="red">{@link #autoSaveRelations()} is recommanded</font>
*/
public void saveRelations() {
if (!loaded && !modified) {
return;
@@ -693,13 +710,7 @@ public class RelationshipItemBuilder {
// sort by type
List<Relation> relationItemsList = new ArrayList<Relation>(currentProjectItemsRelations.get(relation));
Collections.sort(relationItemsList, new Comparator<Relation>() {
@Override
public int compare(Relation o1, Relation o2) {
return o1.getType().compareTo(o2.getType());
}
});
Collections.sort(relationItemsList, new RelationComparator());
List<ItemRelation> usedRelationList = new ArrayList<ItemRelation>();
List<ItemRelation> oldRelatedItems = new ArrayList<ItemRelation>(itemRelations.getRelatedItems());
for (Relation relatedItem : relationItemsList) {
@@ -733,16 +744,29 @@ public class RelationshipItemBuilder {
emfRelatedItem.setVersion(relatedItem.getVersion());
itemRelations.getRelatedItems().add(emfRelatedItem);
}
EList relatedItems = itemRelations.getRelatedItems();
// get unused relation items
oldRelatedItems.removeAll(usedRelationList);
// remove unused relation items
itemRelations.getRelatedItems().removeAll(oldRelatedItems);
relatedItems.removeAll(oldRelatedItems);
// sort result
List relatedItemsList = new LinkedList<>(relatedItems);
Collections.sort(relatedItemsList, new ItemRelationComparator());
relatedItems.clear();
relatedItems.addAll(relatedItemsList);
if (!exist) {
currentProject.getEmfProject().getItemsRelations().add(itemRelations);
}
}
oldRelations.removeAll(usedList);
currentProject.getEmfProject().getItemsRelations().removeAll(oldRelations);
EList itemsRelations = currentProject.getEmfProject().getItemsRelations();
itemsRelations.removeAll(oldRelations);
List itemRelationsList = new LinkedList<>(itemsRelations);
Collections.sort(itemRelationsList, new ItemRelationsComparator());
itemsRelations.clear();
itemsRelations.addAll(itemRelationsList);
try {
getProxyRepositoryFactory().saveProject(currentProject);
} catch (PersistenceException e) {
@@ -877,7 +901,7 @@ public class RelationshipItemBuilder {
return;
}
}
saveRelations();
autoSaveRelations();
monitor.done();
loaded = true;
@@ -970,7 +994,7 @@ public class RelationshipItemBuilder {
}
}
public boolean supportRelation(Item item) {
public static boolean supportRelation(Item item) {
IItemRelationshipHandler[] itemRelationshipHandlers = RelationshipRegistryReader.getInstance()
.getItemRelationshipHandlers();
for (IItemRelationshipHandler handler : itemRelationshipHandlers) {
@@ -1060,11 +1084,69 @@ public class RelationshipItemBuilder {
modified = true;
}
if (!fromMigration && modified) {
saveRelations();
autoSaveRelations();
}
}
public void removeItemRelations(Item item) {
public Set<Relation> getItemRelations(Item item) {
if (!loaded) {
loadRelations();
}
ProcessType processType = null;
if (item instanceof ProcessItem) {
processType = ((ProcessItem) item).getProcess();
}
if (item instanceof JobletProcessItem) {
processType = ((JobletProcessItem) item).getJobletProcess();
}
Set<Relation> relations = Collections.EMPTY_SET;
if (processType != null) {
Relation relation = new Relation();
relation.setId(item.getProperty().getId());
relation.setType(getTypeFromItem(item));
relation.setVersion(item.getProperty().getVersion());
Map<Relation, Set<Relation>> itemRelations = getRelatedRelations(item);
relations = itemRelations.get(relation);
}
return relations;
}
public Set<Relation> removeItemRelations(Item item) {
if (!loaded) {
loadRelations();
}
modified = true;
ProcessType processType = null;
if (item instanceof ProcessItem) {
processType = ((ProcessItem) item).getProcess();
}
if (item instanceof JobletProcessItem) {
processType = ((JobletProcessItem) item).getJobletProcess();
}
Set<Relation> removedRelations = Collections.EMPTY_SET;
if (processType != null) {
Relation relation = new Relation();
relation.setId(item.getProperty().getId());
relation.setType(getTypeFromItem(item));
relation.setVersion(item.getProperty().getVersion());
Map<Relation, Set<Relation>> itemRelations = getRelatedRelations(item);
if (itemRelations.containsKey(relation)) {
removedRelations = itemRelations.remove(relation);
autoSaveRelations();
}
}
return removedRelations;
}
public void putItemRelations(Item item, Set<Relation> relations) {
if (!loaded) {
loadRelations();
}
@@ -1086,11 +1168,8 @@ public class RelationshipItemBuilder {
Map<Relation, Set<Relation>> itemRelations = getRelatedRelations(item);
if (itemRelations.containsKey(relation)) {
itemRelations.get(relation).clear();
itemRelations.remove(relation);
saveRelations();
}
itemRelations.put(relation, relations);
autoSaveRelations();
}
}
@@ -1108,4 +1187,176 @@ public class RelationshipItemBuilder {
public Map<Relation, Set<Relation>> getCurrentProjectItemsRelations() {
return this.currentProjectItemsRelations;
}
public void setAutoSave(boolean autoSave) {
this.autoSave = autoSave;
}
public boolean isAutoSave() {
return this.autoSave;
}
public boolean isSame(Set<Relation> r1, Set<Relation> r2) {
if (r1 == null && r2 == null) {
return true;
}
if (r1 == null || r2 == null) {
return false;
}
if (r1.size() != r2.size()) {
return false;
}
List<Relation> r1List = new LinkedList<>(r1);
List<Relation> r2List = new LinkedList<>(r2);
RelationComparator comparator = new RelationComparator();
r1List.sort(comparator);
r2List.sort(comparator);
Iterator<Relation> r1Iter = r1List.iterator();
Iterator<Relation> r2Iter = r2List.iterator();
while (r1Iter.hasNext() && r2Iter.hasNext()) {
Relation r1Relation = r1Iter.next();
Relation r2Relation = r2Iter.next();
if (r1Relation == null || r2Relation == null) {
return false;
}
if (comparator.compare(r1Relation, r2Relation) != 0) {
return false;
}
}
return true;
}
public static class RelationComparator implements Comparator<Relation> {
@Override
public int compare(Relation o1, Relation o2) {
String o1Type = o1.getType();
String o2Type = o2.getType();
if (o1Type == null) {
o1Type = "";
}
if (o2Type == null) {
o2Type = "";
}
int result = o1Type.compareTo(o2Type);
if (result != 0) {
return result;
}
String o1Id = o1.getId();
String o2Id = o2.getId();
if (o1Id == null) {
o1Id = "";
}
if (o2Id == null) {
o2Id = "";
}
result = o1Id.compareTo(o2Id);
if (result != 0) {
return result;
}
String o1Version = o1.getVersion();
String o2Version = o2.getVersion();
if (o1Version == null) {
o1Version = "";
}
if (o2Version == null) {
o2Version = "";
}
return o1Version.compareTo(o2Version);
}
}
public static class ItemRelationComparator implements Comparator<Object> {
@Override
public int compare(Object arg0, Object arg1) {
if (arg0 instanceof ItemRelation && arg1 instanceof ItemRelation) {
ItemRelation itemRelation0 = (ItemRelation) arg0;
ItemRelation itemRelation1 = (ItemRelation) arg1;
String type0 = itemRelation0.getType();
String type1 = itemRelation1.getType();
if (type0 == null) {
type0 = "";
}
if (type1 == null) {
type1 = "";
}
int result = type0.compareTo(type1);
if (result != 0) {
return result;
}
String id0 = itemRelation0.getId();
String id1 = itemRelation1.getId();
if (id0 == null) {
id0 = "";
}
if (id1 == null) {
id1 = "";
}
result = id0.compareTo(id1);
if (result != 0) {
return result;
}
String version0 = itemRelation0.getVersion();
String version1 = itemRelation1.getVersion();
if (version0 == null) {
version0 = "";
}
if (version1 == null) {
version1 = "";
}
return version0.compareTo(version1);
}
return 0;
}
}
public static class ItemRelationsComparator implements Comparator<Object> {
@Override
public int compare(Object o1, Object o2) {
if (o1 instanceof ItemRelations && o2 instanceof ItemRelations) {
ItemRelations itemRelations1 = (ItemRelations) o1;
ItemRelations itemRelations2 = (ItemRelations) o2;
ItemRelation baseItem1 = itemRelations1.getBaseItem();
ItemRelation baseItem2 = itemRelations2.getBaseItem();
if (baseItem1 != null && baseItem2 != null) {
String type1 = baseItem1.getType();
String type2 = baseItem2.getType();
if (type1 == null) {
type1 = "";
}
if (type2 == null) {
type2 = "";
}
int result = type1.compareTo(type2);
if (result != 0) {
return result;
}
String id1 = baseItem1.getId();
String id2 = baseItem2.getId();
if (id1 == null) {
id1 = "";
}
if (id2 == null) {
id2 = "";
}
result = id1.compareTo(id2);
if (result != 0) {
return result;
}
String version1 = baseItem1.getVersion();
String version2 = baseItem2.getVersion();
if (version1 == null) {
version1 = "";
}
if (version2 == null) {
version2 = "";
}
return version1.compareTo(version2);
}
}
return 0;
}
}
}

View File

@@ -1480,4 +1480,20 @@ public class ERepositoryObjectType extends DynaEnum<ERepositoryObjectType> {
}
return allTypes;
}
public static List<ERepositoryObjectType> getAllTypesOfCodes() {
List<ERepositoryObjectType> allTypes = new ArrayList<ERepositoryObjectType>();
if (ERepositoryObjectType.ROUTINES != null) {
allTypes.add(ERepositoryObjectType.ROUTINES);
}
ERepositoryObjectType beansType = ERepositoryObjectType.valueOf("BEANS"); //$NON-NLS-1$
if (beansType != null) {
allTypes.add(beansType);
}
if (ERepositoryObjectType.PIG_UDF != null) {
allTypes.add(ERepositoryObjectType.PIG_UDF);
}
return allTypes;
}
}

View File

@@ -159,8 +159,9 @@ public abstract class AbstractUpdateManager implements IUpdateManager {
public void checkAllModification() {
clearResult();
IUpdateItemType[] allUpdateItemTypes = UpdateManagerProviderDetector.INSTANCE.getAllUpdateItemTypes();
Map<Object, Object> contextData = new HashMap<Object, Object>();
for (IUpdateItemType type : allUpdateItemTypes) {
List<UpdateResult> result = getUpdatesNeeded(type);
List<UpdateResult> result = getUpdatesNeeded(type, false, contextData);
if (result != null) {
getUpdatesNeeded().addAll(result);
}

View File

@@ -14,6 +14,7 @@ package org.talend.core.model.update;
import java.beans.PropertyChangeEvent;
import java.util.List;
import java.util.Map;
/**
* ggu class global comment. Detailled comment
@@ -58,6 +59,8 @@ public interface IUpdateManager {
public List<UpdateResult> getUpdatesNeeded(IUpdateItemType type);
public List<UpdateResult> getUpdatesNeeded(IUpdateItemType type, boolean onlySimpleShow);
public List<UpdateResult> getUpdatesNeeded(IUpdateItemType itemType, boolean onlySimpleShow, Map<Object, Object> contextData);
public boolean executeUpdates(List<UpdateResult> results);

View File

@@ -34,7 +34,7 @@ public abstract class AbstractDragAndDropServiceHandler implements IDragAndDropS
*/
@Override
public Object getComponentValue(Connection connection, String value, IMetadataTable table) {
return getComponentValue(connection, value, table, null);
return getComponentValue(connection, value, table, null, null);
}
/*

View File

@@ -236,7 +236,7 @@ public final class ContextParameterUtils {
//ignore the exception
}
return result.toString();
return result == null ? null : result.toString();
}
private static Map<String, Object> getVarMapForScriptEngine(final IContext context) {

View File

@@ -13,6 +13,7 @@
package org.talend.core.model.utils;
import java.util.List;
import java.util.Map;
import org.talend.components.api.properties.ComponentProperties;
import org.talend.core.model.components.IComponent;
@@ -49,7 +50,7 @@ public interface IDragAndDropServiceHandler {
*/
public Object getComponentValue(Connection connection, String value, IMetadataTable table);
public Object getComponentValue(Connection connection, String value, IMetadataTable table, String targetComponent);
public Object getComponentValue(Connection connection, String value, IMetadataTable table, String targetComponent, Map<Object, Object> contextMap);
/**
* DOC hwang Comment method "filterNeededComponents".

View File

@@ -26,5 +26,7 @@ public class NexusConstants {
public static final String SLASH = "/";//$NON-NLS-1$
public static final String SNAPSHOTS = "@snapshots";
public static final String SNAPSHOTS = "@snapshots";//$NON-NLS-1$
public static final String DISALLOW_RELEASES = "@noreleases";//$NON-NLS-1$
}

View File

@@ -13,7 +13,6 @@
package org.talend.core.runtime.maven;
import org.apache.commons.lang3.StringUtils;
import org.talend.core.nexus.TalendMavenResolver;
/**
* DOC ggu class global comment. Detailled comment
@@ -25,7 +24,15 @@ public class MavenArtifact implements Cloneable {
private static final char ARTIFACT_SEPARATOR = '-';
private String repositoryUrl, groupId, artifactId, version, type, classifier, description, url, license, licenseUrl,
distribution, username, password;
distribution, username, password, lastUpdated;
public String getLastUpdated() {
return this.lastUpdated;
}
public void setLastUpdated(String lastUpdated) {
this.lastUpdated = lastUpdated;
}
public String getRepositoryUrl() {
return repositoryUrl;

View File

@@ -33,7 +33,7 @@ public class LastGenerationInfo {
private HashMap<String, Set<ModuleNeeded>> modulesNeededWithSubjobPerJob;
private Set<ModuleNeeded> highPriorityModuleNeeded;
private HashMap<String, Set<ModuleNeeded>> highPriorityModuleNeeded;
private HashMap<String, Set<String>> routinesNeededWithSubjobPerJob;
@@ -55,7 +55,7 @@ public class LastGenerationInfo {
modulesNeededPerJob = new HashMap<String, Set<ModuleNeeded>>();
contextPerJob = new HashMap<String, Set<String>>();
modulesNeededWithSubjobPerJob = new HashMap<String, Set<ModuleNeeded>>();
highPriorityModuleNeeded = new LinkedHashSet<ModuleNeeded>();
highPriorityModuleNeeded = new HashMap<>();
lastGeneratedjobs = new HashSet<JobInfo>();
routinesNeededPerJob = new HashMap<String, Set<String>>();
pigudfNeededPerJob = new HashMap<String, Set<String>>();
@@ -257,13 +257,29 @@ public class LastGenerationInfo {
}
return routinesNeededPerJob.get(key);
}
public Set<ModuleNeeded> getHighPriorityModuleNeeded() {
return highPriorityModuleNeeded;
public Set<ModuleNeeded> getHighPriorityModuleNeeded(String jobId, String jobVersion) {
String key = getProcessKey(jobId, jobVersion);
if (!highPriorityModuleNeeded.containsKey(key)) {
highPriorityModuleNeeded.put(key, new LinkedHashSet<>());
}
return highPriorityModuleNeeded.get(key);
}
public void setHighPriorityModuleNeeded(ModuleNeeded moduleNeeded) {
highPriorityModuleNeeded.add(moduleNeeded);
public void setHighPriorityModuleNeeded(String jobId, String jobVersion, Set<ModuleNeeded> moduleNeeded) {
String key = getProcessKey(jobId, jobVersion);
if (!highPriorityModuleNeeded.containsKey(key)) {
highPriorityModuleNeeded.put(key, new LinkedHashSet<>());
}
highPriorityModuleNeeded.get(key).addAll(moduleNeeded);
}
public void clearHighPriorityModuleNeeded() {
highPriorityModuleNeeded.clear();
}
private String getProcessKey(String jobId, String jobVersion) {
return jobId + "_" + jobVersion; //$NON-NLS-1$
}
/**

View File

@@ -67,4 +67,6 @@ public interface TalendProcessOptionConstants {
public static final int MODULES_FOR_MR = 1 << 4;
public static final int MODULES_EXCLUDE_SHADED = 1 << 5;
}

View File

@@ -17,6 +17,7 @@ import java.util.Map;
import org.talend.core.IService;
import org.talend.core.model.process.IElementParameter;
import org.talend.core.model.process.INode;
/**
* created by ycbai on 2016年3月24日 Detailled comment
@@ -38,5 +39,7 @@ public interface IGenericService extends IService {
*
*/
public List<Map<String, String>> getAllGenericComponentsInfo();
public void resetReferenceValue(INode curNode, String oldConnectionName, String newConnectionName);
}

View File

@@ -13,6 +13,7 @@
package org.talend.core.runtime.services;
import java.util.List;
import java.util.Map;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
@@ -123,6 +124,11 @@ public interface IGenericWizardService extends IService {
*/
public List<ComponentProperties> getAllComponentProperties(Connection connection, String tableLabel);
public List<ComponentProperties> getAllComponentProperties(Connection connection, String tableLabel, boolean withEvaluator);
public List<ComponentProperties> getAllComponentProperties(Connection connection, String tableLabel, boolean withEvaluator,
boolean forComponentValue, Map<Object, Object> contextMap);
/**
* Get the new repository type (the type from component framework) by the old repository type name.
*

View File

@@ -13,6 +13,7 @@
package org.talend.core.ui;
import java.util.List;
import java.util.Set;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@@ -23,6 +24,7 @@ import org.eclipse.ui.IEditorPart;
import org.talend.commons.exception.PersistenceException;
import org.talend.core.IService;
import org.talend.core.model.components.IComponent;
import org.talend.core.model.general.ModuleNeeded;
import org.talend.core.model.general.Project;
import org.talend.core.model.process.INode;
import org.talend.core.model.process.IProcess;
@@ -125,4 +127,7 @@ public interface ITestContainerProviderService extends IService {
public List<ProcessItem> getTestContainersByVersion(ProcessItem item);
boolean isTestContainerEditor(IEditorPart editor);
Set<ModuleNeeded> getAllJobTestcaseModules(ProcessItem item) throws PersistenceException;
}

View File

@@ -19,7 +19,9 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@@ -79,6 +81,8 @@ public abstract class AbstractRoutineSynchronizer implements ITalendSynchronizer
}
private Collection<RoutineItem> getAll(ERepositoryObjectType type, boolean syncRef) throws SystemException {
// init code project
getRunProcessService().getTalendCodeJavaProject(type);
// remove routine with same name in reference project
final Map<String, RoutineItem> beansList = new HashMap<String, RoutineItem>();
for (IRepositoryViewObject obj : getRepositoryService().getProxyRepositoryFactory().getAll(type)) {
@@ -95,27 +99,37 @@ public abstract class AbstractRoutineSynchronizer implements ITalendSynchronizer
return (IRepositoryService) GlobalServiceRegister.getDefault().getService(IRepositoryService.class);
}
private void getReferencedProjectRoutine(final Map<String, RoutineItem> beansList, final Project project,
ERepositoryObjectType routineType, boolean syncRef) throws SystemException {
for (IRepositoryViewObject obj : getRepositoryService().getProxyRepositoryFactory().getAll(project, routineType)) {
private Set<IRepositoryViewObject> getReferencedProjectRoutine(final Map<String, RoutineItem> beansList,
final Project project, ERepositoryObjectType routineType, boolean syncRef) throws SystemException {
// init ref code project
if (syncRef) {
getRunProcessService().getTalendCodeJavaProject(routineType, project.getTechnicalLabel());
}
Set<IRepositoryViewObject> routines = new HashSet<>();
routines.addAll(getRepositoryService().getProxyRepositoryFactory().getAll(project, routineType));
for (IRepositoryViewObject obj : routines) {
final String key = obj.getProperty().getLabel();
// it does not have a routine with same name
if (!beansList.containsKey(key)) {
beansList.put(key, (RoutineItem) obj.getProperty().getItem());
}
if (syncRef) {
// sync routine
syncRoutine((RoutineItem) obj.getProperty().getItem(), false, true, true);
}
}
for (ProjectReference projectReference : project.getProjectReferenceList()) {
routines.addAll(getReferencedProjectRoutine(beansList, new Project(projectReference.getReferencedProject()),
routineType, syncRef));
}
if (syncRef) {
routines.stream().forEach(obj -> {
try {
syncRoutine((RoutineItem) obj.getProperty().getItem(), project.getTechnicalLabel(), true, true);
} catch (SystemException e) {
ExceptionHandler.process(e);
}
});
// sync system routine
syncSystemRoutine(project);
}
for (ProjectReference projectReference : project.getProjectReferenceList()) {
getReferencedProjectRoutine(beansList, new Project(projectReference.getReferencedProject()), routineType, syncRef);
}
return routines;
}
protected void syncSystemRoutine(Project project) throws SystemException {
@@ -128,24 +142,17 @@ public abstract class AbstractRoutineSynchronizer implements ITalendSynchronizer
}
protected IFile getRoutineFile(RoutineItem routineItem) throws SystemException {
return getRoutineFile(routineItem, true);
return getRoutineFile(routineItem, ProjectManager.getInstance().getCurrentProject().getTechnicalLabel());
}
protected IFile getRoutineFile(RoutineItem routineItem, boolean currentProject) throws SystemException {
Project project;
if (currentProject) {
project = ProjectManager.getInstance().getCurrentProject();
} else {
String projectTechName = ProjectManager.getInstance().getProject(routineItem).getTechnicalLabel();
project = ProjectManager.getInstance().getProjectFromProjectTechLabel(projectTechName);
}
ITalendProcessJavaProject talendProcessJavaProject = getRunProcessService().getTalendCodeJavaProject(ERepositoryObjectType.getItemType(routineItem), project);
protected IFile getRoutineFile(RoutineItem routineItem, String projectTechName) throws SystemException {
ITalendProcessJavaProject talendProcessJavaProject = getRunProcessService()
.getTalendCodeJavaProject(ERepositoryObjectType.getItemType(routineItem), projectTechName);
if (talendProcessJavaProject == null) {
return null;
}
IFolder routineFolder = talendProcessJavaProject.getSrcSubFolder(null, routineItem.getPackageType());
IFile file = routineFolder.getFile(routineItem.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
return file;
return routineFolder.getFile(routineItem.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
}
private IFile getProcessFile(ProcessItem item) throws SystemException {
@@ -193,30 +200,31 @@ public abstract class AbstractRoutineSynchronizer implements ITalendSynchronizer
@Override
public void syncRoutine(RoutineItem routineItem, boolean copyToTemp) throws SystemException {
syncRoutine(routineItem, true, copyToTemp, false);
syncRoutine(routineItem, ProjectManager.getInstance().getCurrentProject().getTechnicalLabel(), copyToTemp, false);
}
@Override
public void syncRoutine(RoutineItem routineItem, boolean copyToTemp, boolean forceUpdate) throws SystemException {
syncRoutine(routineItem, true, copyToTemp, forceUpdate);
syncRoutine(routineItem, ProjectManager.getInstance().getCurrentProject().getTechnicalLabel(), copyToTemp, forceUpdate);
}
@Override
public void syncRoutine(RoutineItem routineItem, boolean currentProject, boolean copyToTemp, boolean forceUpdate) throws SystemException {
public void syncRoutine(RoutineItem routineItem, String projectTechName, boolean copyToTemp, boolean forceUpdate)
throws SystemException {
boolean needSync = false;
if (routineItem != null) {
if (forceUpdate || !isRoutineUptodate(routineItem)) {
needSync = true;
} else {
IFile file = getRoutineFile(routineItem, currentProject);
IFile file = getRoutineFile(routineItem, projectTechName);
if (file != null && !file.exists()) {
needSync = true;
}
}
}
if (needSync) {
doSyncRoutine(routineItem, currentProject, copyToTemp);
if (currentProject) {
doSyncRoutine(routineItem, projectTechName, copyToTemp);
if (ProjectManager.getInstance().getCurrentProject().getTechnicalLabel().equals(projectTechName)) {
setRoutineAsUptodate(routineItem);
}
}
@@ -224,14 +232,14 @@ public abstract class AbstractRoutineSynchronizer implements ITalendSynchronizer
public void syncRoutine(RoutineItem routineItem) throws SystemException {
if (routineItem != null) {
doSyncRoutine(routineItem, true, true);
doSyncRoutine(routineItem, ProjectManager.getInstance().getCurrentProject().getTechnicalLabel(), true);
setRoutineAsUptodate(routineItem);
}
}
private void doSyncRoutine(RoutineItem routineItem, boolean currentProject, boolean copyToTemp) throws SystemException {
private void doSyncRoutine(RoutineItem routineItem, String projectTechName, boolean copyToTemp) throws SystemException {
try {
IFile file = getRoutineFile(routineItem, currentProject);
IFile file = getRoutineFile(routineItem, projectTechName);
if (file == null) {
return;
}
@@ -374,7 +382,7 @@ public abstract class AbstractRoutineSynchronizer implements ITalendSynchronizer
@Override
public void syncAllBeansForLogOn() throws SystemException {
for (RoutineItem beanItem : getBeans(true)) {
syncRoutine(beanItem, true, true, true);
syncRoutine(beanItem, true, true);
}
}

View File

@@ -45,7 +45,8 @@ public interface ITalendSynchronizer {
void syncRoutine(RoutineItem routineItem, boolean copyToTemp, boolean forceUpdate) throws SystemException;
void syncRoutine(RoutineItem routineItem, boolean currentProject, boolean copyToTemp, boolean forceUpdate) throws SystemException;
void syncRoutine(RoutineItem routineItem, String projectTechName, boolean copyToTemp, boolean forceUpdate)
throws SystemException;
IFile getFile(Item item) throws SystemException;

View File

@@ -193,4 +193,7 @@ public interface IDesignerCoreService extends IService {
public void setTACReadTimeout(int timeout);
boolean isDelegateNode(INode node);
boolean isNeedContextInJar(IProcess process);
}

Some files were not shown because too many files have changed in this diff Show More