Compare commits

..

421 Commits

Author SHA1 Message Date
rdubois
7d5243a3b0 Fix Bug TDI-26545 : tGreenplum components are not correctly using schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105361 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-17 10:26:19 +00:00
plv
a195661bb4 bug TUP-835 fixed:revert
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105258 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-15 09:41:00 +00:00
wchen
45196b3ad1 bug TDI-26206 fixed: [txmlmap component] Failed to drag a Var to the right output.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105257 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-15 09:38:10 +00:00
fwang
6c9b01c58c bug TDI-26551 fixed:Linked tMap output expressions replaced when selecting repository schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105192 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-12 02:58:23 +00:00
rdubois
7b0a310141 Add components help for the new 5.2.3 help
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105146 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-10 13:23:33 +00:00
rdubois
0181a22fd7 Remove components help to commit safely the new 5.2.3 help
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105137 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-10 09:51:30 +00:00
zwzhao
7be39642aa bug TDI-26586 fixed : TOS:txmlmap component can't generate code
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105119 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-10 07:04:29 +00:00
nrousseau
501c74798d i18n: synchronize Babili strings
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-10 05:17:19 +00:00
ilazebny
7149abbb4c Update version to 5.2.3 in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105091 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 12:19:23 +00:00
zgao
4e9d6d37a3 [TUP-886] Fix import module with same name as selected will skip copy to storage lib folder.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105086 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 10:56:00 +00:00
hcyi
5ade3175bd bug TDI-26659 fixed : items can't be imported into the studio .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105081 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 10:19:35 +00:00
wchen
b2ef6ae3df bug TDI-25081 fixed : Avoid to block the generation of the job when check for tPrejob / tPostJob
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105078 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 10:07:58 +00:00
fwang
1d522ca9d1 bug TUP-835 fixed:Cannot retreive schema on tables that contain "." in the table name
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105075 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 09:59:43 +00:00
wwang
f8d6ef3f0a Fix Bug TDI-26675 : fix the modification into branch5.2
https://jira.talendforge.org/browse/TDI-26675

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105072 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 09:22:34 +00:00
zwzhao
12bd9d58a2 bug TDI-26633 fixed : tLibraryLoad throw warning while using context variables
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105071 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 09:18:59 +00:00
zwzhao
11f6a34b6d bug TDI-26586 fixed : TOS:txmlmap component can't generate code
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105065 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 08:00:43 +00:00
ycbai
7f8a375ff0 bug TDI-26658 fixed : switching to branch causes the icons of components missing
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105064 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 07:28:50 +00:00
ldong
5953efad1c bug TDI-26265 fixed:backport r103710 from trunk to 5.2.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105063 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 07:23:38 +00:00
ycbai
8e55cf4dd0 bug TDI-25609 fixed : The item cannot be imported into 5.3.0 studio
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105058 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 06:07:38 +00:00
jyhu
1319d4e59a Fix Bug TDI-26209: tNetezzaInput and tNetezzaOutput could not work with TIME type.
https://jira.talendforge.org/browse/TDI-26209 
solve compile error.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105050 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 05:19:46 +00:00
wchen
adaebc6fe8 bug TDI-25946 fixed: HL7 connection wizard is not parsing columns correctly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105047 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 03:59:08 +00:00
jzhao
d9e9ac819e Fixed Bug TDI-26504: tMDMOutput component : Reject link does not work
https://jira.talendforge.org/browse/TDI-26504 
Note:Merge to branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 03:37:31 +00:00
jyhu
008a630030 Fix Bug TDI-26545 : tGreenplum componentes are not correctly using schema
https://jira.talendforge.org/browse/TDI-26545 
Merge into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105042 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 03:21:46 +00:00
bchen
3335907b29 Fix Bug TDI-26662 : fix url error on tMicrosoftCRM for authentication of 2007 api in online mode
https://jira.talendforge.org/browse/TDI-26662
as url "https://dev.login.live.com/wstlogin.srf" is forbiddened
replace url "https://dev.login.live.com/wstlogin.srf" by "https://login.live.com/rst2.srf" to make online mode work
add ability to set login url

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105039 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 03:07:59 +00:00
jzhao
b13d463179 Fixed Bug TDI-26572: Make tFileOutputPositionnal work like tFileOutputDelimited
https://jira.talendforge.org/browse/TDI-26572 
Note:merge to branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 02:37:24 +00:00
zwzhao
d82e66d498 bug TDI-26586 fixed : TOS:txmlmap component can't generate code
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105030 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 02:31:25 +00:00
fwang
847c948e43 bug TDI-26417 fixed:Studio adds hyphens to Java options
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105027 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-09 01:43:26 +00:00
zwzhao
25f8a2f3a4 bug TDI-26586 fixed : TOS:txmlmap component can't generate code(change the code since it make TUJ faild)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105025 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 10:29:17 +00:00
ycbai
de468c004e bug TDI-26650 fixed: Export as service doesn't include items from reference project
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105019 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 09:34:02 +00:00
fwang
890147ff94 bug TDI-26551 fixed:Linked tMap output expressions replaced when selecting repository schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105010 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 08:23:31 +00:00
jyhu
38111fee1b Fix Bug TDI-26521: DB components does nothing if no schema defined
https://jira.talendforge.org/browse/TDI-26521 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105008 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 07:44:20 +00:00
jzhao
e400d35e7d Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440 
Note: 1.Modify not customer model error.
2.Optimized the migration task.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@105007 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-08 07:27:29 +00:00
ycbai
ce4a5f2134 bug TDI-26575 fixed: Reference Project:Delect assignment job in BM , BM become to dirty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 10:20:31 +00:00
jjzhou
ffb9838a8f fix Bug TDI-26525: fix compile error for last commit
https://jira.talendforge.org/browse/TDI-26525

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104953 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 09:29:45 +00:00
zwzhao
453204e39e bug TDI-26550 fixed : MSSQLInput component compilation error : the method tMSSqlInput_4Process(Map<String,Object>) is undefined
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 08:43:42 +00:00
jjzhou
75f7650a9f fix Bug TDI-26539: For tNetezzaNzload component,it only create connection ,but no close connection.
https://jira.talendforge.org/browse/TDI-26539

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104947 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-05 08:15:42 +00:00
zwzhao
075edc1305 bug TDI-26586 fixed : TOS:txmlmap component can't generate code
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104915 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 10:43:17 +00:00
jjzhou
afa431a23f fix Bug TDI-26525: tDBInput didn't support the HyperFileSQL
https://jira.talendforge.org/browse/TDI-26525

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104912 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 10:30:59 +00:00
ycbai
c6250af57f bug TDI-26530 fixed: when changing the structure of the input flow into a SCD component (in our case postgres SCD) it gives a java compilation error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104892 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 07:23:06 +00:00
fwang
50cbb598e2 bug TDI-23525 fixed:Deleted "Stored Queries" in SQL Builder, it will be deleted forever
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104883 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-04 06:26:55 +00:00
fwang
ed5ae04ca4 bug TDI-26551 fixed:Linked tMap output expressions replaced when selecting repository schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-03 01:29:08 +00:00
zwzhao
187ea12fc8 bug TDI-26567 fixed : switch between jobscript and designer cause records in "Inline table" in "tFixedFlowInput" component disappear
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104813 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-02 10:28:44 +00:00
fwang
f254abf1b9 bug TDI-26312 fixed:"+" should be disabled if rootTag is not selected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-02 03:33:33 +00:00
ldong
ae80c68122 bug TDI-26472 fixed:many popups shown when you link a component to joblet.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104758 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 09:35:19 +00:00
zgao
0cb3e52f89 [TESB-9100] bug in cTimer on Delay parameter
└[TESB-10226] Fix on branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104757 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 09:35:04 +00:00
ilazebny
63bbbd581b Update version to 5.2.3-SNAPSHOT in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104746 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 08:44:30 +00:00
zwzhao
d03922b4ed bug TDI-26434 fixed : Expressions copied from other tMaps when schemas propagated
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104731 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 07:09:06 +00:00
jjzhou
e90ac46d52 fix Bug TDI-26520: For DB component, some have table list button ,but some doesn't have.
https://jira.talendforge.org/browse/TDI-26520 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104727 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-07-01 06:54:16 +00:00
plv
245d1d7955 bug TDI-26013 fixed : System throws an error when select "conditions" for commponent "tFilterRow"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104668 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-28 10:09:23 +00:00
jjzhou
d170c6df84 fix Bug TDI-26523: Could not show table list and open sql builder from component setting of tTeradataTPump,
https://jira.talendforge.org/browse/TDI-26523

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104628 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-28 06:50:41 +00:00
fwang
834c3c1081 bug TDI-26538 fixed:NPE when drag user component to job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104621 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-28 05:58:09 +00:00
zwzhao
ced5a9a5e0 bug TDI-25956 fixed : the expression is incorrect after copy&paste job contain tMap
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104601 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-27 09:49:51 +00:00
hcyi
c0ff3b5df5 merge r104585 from trunk to branch 5.2
bug TDI-24919 fixed : replication order incorrect with cdc mysql .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104587 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-27 06:06:57 +00:00
zwzhao
1abf647464 bug TDI-25956 fixed : the expression is incorrect after copy&paste job contain tMap(revert #103880)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104549 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-26 08:52:02 +00:00
zwzhao
60914027d4 bug TDI-26055 fixed : can not change the Join Model in tMap if you set the join manually
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104539 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-26 08:28:00 +00:00
plv
37bf89e3b7 merge r104519 from trunk to branch 5.2
bug TDI-26457 fixed:"No data found" Error was shown when use the sql builder of the tDBInput for the HyperFileSQL


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104521 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-26 02:59:54 +00:00
jjzhou
5d042939be fix Bug TDI-26493: component "tFileCopy" can not delete files with a file size about 100MB or above
https://jira.talendforge.org/browse/TDI-26493

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104504 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-25 09:06:03 +00:00
fwang
852a52b12e bug TDI-26458 fixed:Cancelling Edit of Row Generator Still Saves Changes
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104491 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-25 07:02:31 +00:00
hcyi
78565c1383 bug TDI-25662 modified : "Detect and update all jobs" doesn't work .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104438 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 08:27:04 +00:00
jzhao
86af67b25d Fix Bug TDI-25117 : Migrate from 5.1.2 to 5.2.1 with tMongoDBInput, there would be NPE
https://jira.talendforge.org/browse/TDI-25117

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104422 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 07:07:02 +00:00
jjzhou
178de3b7c1 fix Bug TDI-26485: Could not show table list and open sql builder from component setting of tSybaseIQBulkExec, tMysqlBulkExec, tMysqlOutputBulkExec
https://jira.talendforge.org/browse/TDI-26485

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104415 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-24 01:13:54 +00:00
sizhaoliu
7f8c9a0151 merge r104392 from trunk to branch 5.2
TDQ-7363 redundant folder when try to select parser rule for tStandardizeRow component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104404 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 15:15:42 +00:00
sizhaoliu
d3156fcb4b merge r104390 from trunk to branch 5.2
fixed TDQ-7487 Export a second tStandardizeRow component requires to overwrite the existing rule in the repository


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104401 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 15:04:33 +00:00
nrousseau
0dfb66d5c2 merge r104359 from trunk to branch 5.2
TDI-26478 : fix the problem of folder deletion while import.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104379 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 10:40:27 +00:00
jzhao
a4ad97cd23 Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440
Note: Modify break and  version about the migration task  in branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104369 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 09:48:22 +00:00
jyhu
5cb6810f8d Fix Feature TDI-24990: Update calls to API for marketo components
https://jira.talendforge.org/browse/TDI-24990 
Modify the default value of Endpoint on tMarketoXXX. 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104364 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 09:30:49 +00:00
hcyi
860f23e1f1 merge r104349 from trunk to branch 5.2
bug TDI-25662 modified : "Detect and update all jobs" doesn't work . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 09:10:03 +00:00
ldong
247112ff3e bug TDI-24695 fixed:Commandline doesn't get latest user component updating(backupt r101955 from trunk to 5.2)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104345 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 08:39:29 +00:00
plv
5591949de0 bug TDI-26432 fixed:Compile errors with tAggregateRow Component
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 08:06:13 +00:00
jzhao
2e10d160d4 Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 07:59:55 +00:00
ggu
718e9266b6 TDI-26293: fixed the path problem for importing.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 06:05:38 +00:00
jzhao
b863d50849 Fixed Bug TDI-26170: tHDFSPut component uses a deprecated library and produces warnings
https://jira.talendforge.org/browse/TDI-26170
Note: replace "fs.default.name" with "fs.defaultFS"

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-21 03:08:26 +00:00
jyhu
e4f2d7323a Fix Bug TDI-26475: Commandline throws Cannot load component "tDBSQLRow " exception with genereted job
https://jira.talendforge.org/browse/TDI-26475

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104242 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 10:28:15 +00:00
jyhu
e077e4f3c9 Fix Bug TDI-26463: Connection is always closed when use exist connection on tPostgresqlBulkExec
https://jira.talendforge.org/browse/TDI-26463 
fixed the same issue for tGreenplumBulkExec and tParAccelBulkExec 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104230 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 09:41:35 +00:00
jzhao
0185b109c7 Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440
Note: remove the wrong committed code in plugin.xml in branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104189 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 08:09:58 +00:00
ggu
dd7b32ea7e TDI-26293: fixed the import problem for special characters and backport on branch 5.2.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104168 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 07:05:40 +00:00
jzhao
202d0aa0b4 Fixed Bug TDI-26298: Please hide parameters when use exist connection
https://jira.talendforge.org/browse/TDI-26298 
Note: Fixed "use transcation " never commit tInformixSCD 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104124 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 05:51:50 +00:00
jzhao
47150cfc81 Fixed Bug TDI-26440: tSalesforceInput : using variable name for Custom Module is not working
https://jira.talendforge.org/browse/TDI-26440
Note: Modify 5 tSalesForceXX and add migration task for them.

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 04:15:49 +00:00
jyhu
801975dc14 Fix Bug TDI-26463: Connection is always closed when use exist connection on tPostgresqlBulkExec
https://jira.talendforge.org/browse/TDI-26463

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104104 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 03:57:56 +00:00
wwang
60f1c48569 Fix Bug TDI-26211 : Fix for tFileInputXML under SAX too
https://jira.talendforge.org/browse/TDI-26211

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104095 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 03:42:48 +00:00
fwang
3450e7eeae bug TDI-26417 fixed:Studio adds hyphens to Java options
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104046 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-20 01:23:09 +00:00
jjzhou
11699ef91e fix Bug TDI-26345: tStewardshipOutput : Source/Target selector does not work properly
https://jira.talendforge.org/browse/TDI-26345

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-19 08:20:28 +00:00
zwzhao
662160c212 bug TDI-25498 fixed : Remote project:route with multi-version open old and latest version after close latest version it won't unlock(backport)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104017 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-19 08:05:07 +00:00
plv
f8659d6b90 bug TDI-26394 fixed:User can delete a locked connection schema in remote project
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104016 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-19 07:02:25 +00:00
hcyi
bb5ef469ba bug TDI-26361 fixed : Unable to drag columns from left of tMap to expression filter of output with repository schema .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@104006 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-18 08:43:38 +00:00
wwang
1e91f0fc6a Fix Bug TDI-26362 : 65535 JDK limit on 64bit Java
https://jira.talendforge.org/browse/TDI-26362

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103997 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-17 08:58:32 +00:00
wwang
fd3898c23c Fix Bug TDI-26362 : 65535 JDK limit on 64bit Java
https://jira.talendforge.org/browse/TDI-26362

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103996 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-17 08:17:27 +00:00
wwang
3f5dae597b Fix Bug TDI-26362 : 65535 JDK limit on 64bit Java
https://jira.talendforge.org/browse/TDI-26362

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103995 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-17 07:50:00 +00:00
ggu
a71d5f32e7 Backport on branch 5.2 for TDI-26387.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103992 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-17 06:42:29 +00:00
zwzhao
bb79796eea bug TDI-26380 fixed : Cannot launch jobs anymore once failed to launch a faulty jobscript generated job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103979 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-14 03:01:11 +00:00
plv
ad137e411b bug TDI-25992 fixed:Exchange: error when add a new extenion without a "file"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103978 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-14 02:58:54 +00:00
jjzhou
76322f2f8f fix Bug TDI-26297: Could not show table list and open sql builder from component setting of SCD component
https://jira.talendforge.org/browse/TDI-26297

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103955 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-13 09:22:09 +00:00
jyhu
3897811c57 Fix Bug TDI-26176: Multiple Connections from Netezza tNetezzaBulkLoad despite use of tNetezzaConnection.
https://jira.talendforge.org/browse/TDI-26176 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103950 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-13 07:34:21 +00:00
hcyi
68ae744e02 bug TDI-26332 fixed : HL7: NPE error if the source file cannot be found .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-13 06:31:08 +00:00
jyhu
e52c05aca7 Fix Bug TDI-26372: tMSSqlBulkExec does nothing if no schema defined when Action on table is set to Truncate or Default.
https://jira.talendforge.org/browse/TDI-26372 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103947 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-13 06:15:00 +00:00
zwzhao
7e42930e31 bug TDI-25956 fixed : the expression is incorrect after copy&paste job contain tMap
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103880 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-09 08:44:14 +00:00
jjzhou
580c094590 fix Bug TDI-25608: tFileInputDelimited component has a compiled error when column numbers more than 100 when "List" type existed in column type (only happened in CSV mode).
https://jira.talendforge.org/browse/TDI-25608

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103877 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-09 03:36:18 +00:00
fwang
cb3e605b05 bug TDI-26312 fixed:"+" should be disabled if rootTag is not selected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103873 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-08 10:09:20 +00:00
plv
77dea01787 bug TDI-26240 fixed:Joblet in ref-project is able to change the schema in main project
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103849 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-07 09:02:50 +00:00
zwzhao
41fdb6ca73 bug TDI-26284 fixed : Get NPE when closing a locked route in remote project.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103843 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-07 05:53:55 +00:00
zwzhao
6fe3fa4fcd bug TDI-26284 fixed : Get NPE when closing a locked route in remote project.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-07 03:57:50 +00:00
plv
05271e7d51 bug TDI-25879 fixed:Zoom options in ActionBar for MultiPageTalendEditor should be disabled if switch to code tab.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103829 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-06 08:36:57 +00:00
zwzhao
443f0889d5 bug TDI-26046 fixed : The Ui is blank after selecting "Talend Component Designer"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103823 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-06 02:47:34 +00:00
hcyi
e9b6d8ec4b bug TUP-800 fixed : Exception setting classpath after changing the Talend -> Components user component folder .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103789 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 10:04:09 +00:00
hcyi
325f20e58d bug TUP-804 fixed : addModifyListener for the Talend Components Designer filePath text (from main task TUP-799)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103781 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 09:13:48 +00:00
hcyi
db380cc78d bug TUP-799 fixed : Can't clear User Component Folder in Components preferences .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103779 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 09:10:21 +00:00
plv
2d0f7049f2 bug TDI-23537 fixed:Delete flow names can not undo properly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103764 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 07:59:58 +00:00
plv
be4940612e bug TDI-23537 fixed:Delete flow names can not undo properly
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103754 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-05 02:37:26 +00:00
hcyi
2888d969e0 bug TDI-23838 fixed : High CPU and hang when working on "Var" section .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103732 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 09:35:33 +00:00
rdubois
9822d9b6aa TDI-26247: Fix the first item - Using a shared DB connection and using a datasource alias are not compatible together.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103728 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 09:24:40 +00:00
plv
ffeafa1b34 bug TDI-26263 fixed:The outputs for tSAPInput can not correctly updated when we change the row name and undo it.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103715 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 08:15:06 +00:00
hcyi
1c89f1bd4a bug TDI-23838 fixed : High CPU and hang when working on "Var" section .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103705 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-04 05:45:35 +00:00
wwang
96794da1f9 Fix Bug TDI-26108 : On error with subjob file is not removed based on settings
https://jira.talendforge.org/browse/TDI-26108

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103679 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 10:22:40 +00:00
wwang
3fb2de7d8b Fix Bug TDI-26120 : tFileInputMSXML doesn't do streaming with SAX
https://jira.talendforge.org/browse/TDI-26120

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103645 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-06-03 03:33:47 +00:00
fwang
98c16a7aaa bug TDI-24935 fixed:Exported Talend job cannot be scheduled under Linux cron or any job scheduler
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103626 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 11:19:06 +00:00
fwang
758fd764d8 bug TDI-24935 revert:my commit is not good.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103622 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 10:42:06 +00:00
ldong
c70caa068e bug TDI-24792 reverted:On Unix External JAR Can't be run from folder with spaces in name.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103608 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 08:45:54 +00:00
wwang
4eb784f7e7 Fix Bug TDI-25937 : onComponetError/onSubJobError should catch the exception
https://jira.talendforge.org/browse/TDI-25937

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103591 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-31 05:32:06 +00:00
jyhu
81a1725f74 Fix Bug TDI-26221 : The file name of the component "tMSSqlOutputBulkExec" should change according to the system
https://jira.talendforge.org/browse/TDI-26221

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103546 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-30 08:44:14 +00:00
jyhu
b9640a7abb Fix Bug TDI-26209: tNetezzaInput and tNetezzaOutput could not work with TIME type.
https://jira.talendforge.org/browse/TDI-26209 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103513 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-29 09:45:09 +00:00
jyhu
18a360b6c8 Fix Bug TDI-26151: tMSSqlBulkExec does nothing if no schema defined.
https://jira.talendforge.org/browse/TDI-26151 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103486 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-29 02:32:12 +00:00
jjzhou
02a40ec26f fix Bug TDI-26145: Bulk loader does not cause job to die on error when connection parameters are incorrectly configured
https://jira.talendforge.org/browse/TDI-26145

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103409 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 10:01:20 +00:00
plv
c74703b462 merge r103398 from trunk to branch 5.2
bug TDI-25645 fixed:Joblet in ref-project is able to expand and edit in main project


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103406 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 09:39:44 +00:00
jjzhou
1cf6e12f70 fix Bug TDI-26109: tMDMConnection doesn't go into OnComponentError if the MDM server is unreachable
https://jira.talendforge.org/browse/TDI-26109

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103365 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 03:48:04 +00:00
jjzhou
4e2a33bf40 fix Bug TDI-26109: tMDMConnection doesn't go into OnComponentError if the MDM server is unreachable
https://jira.talendforge.org/browse/TDI-26109

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103354 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-27 01:40:21 +00:00
jjzhou
9348d70a01 fix Bug TDI-26126: Wrong value retrieved from a SUBTOTAL function cell in a Excel 2007 spreadsheet
https://jira.talendforge.org/browse/TDI-26126

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103332 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 10:00:23 +00:00
jjzhou
50ad81452a fix Bug TDI-25972: Macro disappeared when I add data by tFileOutputExcel with Write excel 2007 file format (xlsx) checked
https://jira.talendforge.org/browse/TDI-25972

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103330 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 09:42:40 +00:00
fwang
172b122cf5 bug TDI-24935 fixed:Exported Talend job cannot be scheduled under Linux cron or any job scheduler
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103313 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 08:31:40 +00:00
wwang
52308186b2 Fix Bug TDI-20120 : Need component team to add two elements for output_param
https://jira.talendforge.org/browse/TDI-20120

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103274 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 02:27:33 +00:00
fwang
de75ca4a5b bug TDI-24935 revert:commits was not correct, can't solve this problem.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-24 01:35:59 +00:00
fwang
0dc2a9326a bug TDI-26140 fixed:Unable to launch a job
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103247 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 11:05:20 +00:00
plv
195a02242b bug TDI-8531 fixed:incorrect warning message when user tries to cancel replacing already exported job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103237 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 10:03:34 +00:00
wchen
793f4ed4b8 merge r103210 from trunk to branch 5.2
bug TDI-26075 fixed: Column type in tXMLMap component is"document",swith from designer->code, there throws an error. 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103229 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 09:10:09 +00:00
zwzhao
f851d9f5f3 bug TDI-25109 fixed : About SCD editor have a minor problem
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103228 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 09:07:35 +00:00
plv
6f3742d959 bug TDI-8531 fixed:incorrect warning message when user tries to cancel replacing already exported job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103227 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 08:59:31 +00:00
wchen
fd60f94c4c merge r103205 from trunk to branch 5.2
bug  TDI-26075 fixed: Column type in tXMLMap component is"document",swith from designer->code, there throws an error.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103226 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 08:54:47 +00:00
nrousseau
7b5c2ea1a6 merge r103126 from trunk to branch 5.2
TDI-26111 : avoid to have too many calls of repository for each selection in the studio.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103194 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-23 02:50:38 +00:00
plv
5e8188396e bug TDI-25645 fixed:Joblet in ref-project is able to expand and edit in main project
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103169 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 10:14:27 +00:00
wwang
c13b26c3c3 Fix Bug TDI-25447 : PermGen space issue while using tmomoutput component
https://jira.talendforge.org/browse/TDI-25447

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103155 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-22 08:40:13 +00:00
zwzhao
ea0d91cd51 bug TDI-25896 fixed : Context connection JDBC
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103085 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-21 09:06:42 +00:00
rdubois
8dc1139682 TDI-25927: change the messages.properties value
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103033 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 14:26:15 +00:00
jjzhou
169aa70e8d fix Bug TDI-25972: Macro disappeared when I add data by tFileOutputExcel with Write excel 2007 file format (xlsx) checked
https://jira.talendforge.org/browse/TDI-25972

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103019 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 09:57:54 +00:00
ldong
29efd784f0 bug TUP-671 fixed:Component view is not refreshed when I check/uncheck "Use existing connection" box of database components.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103017 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 09:41:17 +00:00
fwang
2acc842c56 bug TDI-25538 fixed:BD Build:tXMLMap:Should remove option "Import from repository" option
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103008 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 09:31:29 +00:00
jzhao
7cd145a533 Fixed Work Item Bug TDI-25705: Some components have not complete DIE_ON_ERROR function
https://jira.talendforge.org/browse/TDI-25705 
Note:merge to branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@103003 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 08:58:39 +00:00
zwzhao
d28e8737d7 bug TDI-26017 fixed : tMap,add more than 20 variables and random click expression,there is an error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102988 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-20 06:46:36 +00:00
jyhu
d39b081a42 Fix Bug TDI-26020: tFileOutputJSON does not honor the date pattern of the schema
https://jira.talendforge.org/browse/TDI-26020 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102928 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 09:56:32 +00:00
hcyi
05a022ec7b merge r102889 from trunk to branch 5.2
bug TDI-25599 fixed : existing connection_parameter lost after drag and drop the joblet into a job .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 07:03:35 +00:00
bchen
66887ab783 Fix Work Item TDI-25710 : Correct tWriteXMLFieldIn to handle exception which child thread throw
https://jira.talendforge.org/browse/TDI-25710 
merge r102880 into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102887 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 06:45:25 +00:00
jjzhou
84a6deb959 fix Bug TDI-26039: make good use of the totalCount in the return result to fix the inifinite loop in tMDMInput
https://jira.talendforge.org/browse/TDI-26039

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102884 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 06:31:23 +00:00
jjzhou
68603eb76d fix Bug TDI-26039: make good use of the totalCount in the return result to fix the inifinite loop in tMDMInput
https://jira.talendforge.org/browse/TDI-26039 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102874 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-17 03:48:58 +00:00
hcyi
ba4e3314d0 bug TDI-25235 fixed : Stats&logs: cannot edit database information .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102840 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-16 08:51:43 +00:00
fwang
0b2bcabe7b bug TDI-24935 fixed:Exported Talend job cannot be scheduled under Linux cron or any job scheduler
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102764 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 08:48:45 +00:00
fwang
71806d17eb bug TDI-24792 fixed:On Unix External JAR Can't be run from folder with spaces in name
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102757 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 07:48:26 +00:00
zwzhao
32e7eb154b bug TDI-25967 fixed : tOracleOutput in 5.2.2 causes a warning message that did not occur in 4.2.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102748 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-15 06:09:53 +00:00
hcyi
f4103293b4 merge r102615 from trunk to branch 5.2
bug TDI-25576 fixed : tHiveRow_error throw when click ... button beside "Table Name" . just hide this button in Component View for Hive components , maybe later will remove this code .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102620 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-13 07:19:16 +00:00
hcyi
08c3098170 merge r102563 from trunk to branch 5.2
bug TDI-25604 fixed : avoid Exchange view shows null entries , hide them directly .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102564 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 07:18:23 +00:00
hcyi
80eb31631e merge r102560 from trunk to branch 5.2
bug TDI-25604 fixed : avoid Exchange view shows null entries , hide them directly .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102562 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 06:58:47 +00:00
mwang
0c7127bd11 TDI-23786 File delimited component crashes when adding a file with more than 5m rows[Avoid to cause other problems, revert the original change and add the file to that plugin.]
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102543 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-10 02:41:40 +00:00
hcyi
742382f39d bug TDI-24481 fixed : Talendforge read more link misplaced and need to update the link .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102527 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 09:11:34 +00:00
mwang
79c08549c7 TDI-23786 File delimited component crashes when adding a file with more than 5m rows
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102523 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 08:48:15 +00:00
wwang
b45cd72e92 Fix Bug TDI-25927 : no need to pass the var
https://jira.talendforge.org/browse/TDI-25927

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102520 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 08:38:17 +00:00
wwang
051d42c720 Fix Bug TDI-25927 : no need to pass the var
https://jira.talendforge.org/browse/TDI-25927

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102518 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 08:31:37 +00:00
wwang
e733526d1c Fix Bug TDI-25927 : Avoid the function trim in the prepared statement of tOracleOutput
https://jira.talendforge.org/browse/TDI-25927

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102508 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 07:17:23 +00:00
fwang
c9c1ed48ef bug TDI-25538 fixed:BD Build:tXMLMap:Should remove option "Import from repository" option
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102502 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 06:16:35 +00:00
jzhao
8320034fca Fixed Bug TDI-25867: Repeatition of "java.lang.Error" in the error in a certain pattern.
https://jira.talendforge.org/browse/TDI-25867

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102492 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 03:29:48 +00:00
nrousseau
5a8b18f423 merge r102483 from trunk to branch 5.2
TDI-25933 : avoids to load duplicate nodes (which might appear in some old jobs created in previous version, due to some problems of copy/paste)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102484 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-09 01:39:36 +00:00
jzhao
a33e5794a8 Fixed Work Item TDI-25657: When only tMemorizeRow in a job, generate code have compile error
https://jira.talendforge.org/browse/TDI-25657

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102457 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-08 09:01:00 +00:00
bchen
7a8f3bb7ee Fix Bug TDI-23737 : The virtual component is unable to work with tUnite when merge order is 2 if the two parts of the virtual component are linked with "ComponentOK".
https://jira.talendforge.org/browse/TDI-23737
merge r102256 & r102276 & r102339 & r102291 into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102366 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 08:22:28 +00:00
fwang
bdc2b7031a bug TDI-25654 fixed:In the parent job, connot select the specific version of the joblet.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102362 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 08:19:56 +00:00
nrousseau
747d65f23c merge r102347 from trunk to branch 5.2
TDI-25885 : check errors of compilations in main job and child jobs.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102351 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 07:28:45 +00:00
mwang
639d15876e TDI-25659
Error pops up when open a job with esb component in TOS_BD and TOS_DI

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102341 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 06:15:56 +00:00
jjzhou
feb6ab86bb fix Bug TDI-25655: tFileInputExcel read 2003 file get a problem
https://jira.talendforge.org/browse/TDI-25655 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102318 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-07 00:57:02 +00:00
jzhao
b937a15129 Fixed Bug TDI-25692: Unable to find the Surrogate Key if the column is created in the lowercase
https://jira.talendforge.org/browse/TDI-25692

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102285 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-06 09:39:50 +00:00
bchen
1d2ebd52b2 Fix Bug TDI-23737 : The virtual component is unable to work with tUnite when merge order is 2 if the two parts of the virtual component are linked with "ComponentOK".
https://jira.talendforge.org/browse/TDI-23737
merge r95156 into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102179 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-03 02:53:32 +00:00
nrousseau
c6747a6167 merge r102125 from trunk to branch 5.2
TDI-25761 : avoid to set initial state in gef object, since onlything we want is set the preferences.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102127 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 06:51:08 +00:00
nrousseau
2107866231 merge r102118 from trunk to branch 5.2
TDQ-6616 : fix problem when target schema only have custom columns, it should not ask to get the schema or every try to get it.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102123 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 06:18:37 +00:00
plv
bca22e2c06 bug TDI-25263 fixed:tSPSSInput: ".sav" file with a "." (dot) in column name
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102113 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 05:21:40 +00:00
bchen
fa6a2d03d2 Fix Work Item TDI-25707 : Remove DIE_ON_ERROR on tWriteXMLFieldOut
https://jira.talendforge.org/browse/TDI-25707
merge r102033 into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102110 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-05-02 04:04:47 +00:00
fwang
25c55fe33e bug TDI-25142 fixed:The name of shell for "Create FTP" and "Edit FTP" is missing.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102026 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 09:05:52 +00:00
fwang
b639e6b088 bug TDI-25142 fixed:The name of shell for "Create FTP" and "Edit FTP" is missing.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102021 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 08:48:38 +00:00
wwang
607c71fbb0 Fix Bug TDI-25203 : tMap get wrong result when store disk,first match and inner join
https://jira.talendforge.org/browse/TDI-25203

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102017 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 08:29:45 +00:00
wchen
a66afae4cb bug TDI-25695 fixed:The input for txmlmap can not automatically update when drag a new tlogrow as its input.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102016 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 07:53:40 +00:00
hcyi
79bc1e9169 bug TDI-25678 fixed : not open the job to run it got a NPE .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@102012 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-28 06:23:30 +00:00
wwang
d6283d31cb Fix Bug TDI-25030 : Job not completing when Limit set for tFileInputXML
https://jira.talendforge.org/browse/TDI-25030

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101984 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 10:23:19 +00:00
jzhao
35b19653a8 Fixed Bug TDI-24976: Generated SQL statement for tOracleSCD type 2 with memory saving mode kills performance
https://jira.talendforge.org/browse/TDI-24976 
Note:Fix tMSSqlSCD/tMySqlSCD wrong merge

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101979 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 09:56:45 +00:00
hcyi
b00c2e236f merge r101959 from trunk to branch 5.2
bug TDI-25662 fixed :  "Detect and update all jobs" doesn't work .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101960 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 06:30:58 +00:00
jzhao
8c226ebfc7 Fixed Bug TDI-24976: Generated SQL statement for tOracleSCD type 2 with memory saving mode kills performance
https://jira.talendforge.org/browse/TDI-24976 
Note:1.Add check box "Source keys include Null" for ten scd component 
2.Modify tNetezzaSCD/tIngresSCD for type3 run error 
3.Merge to branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101949 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 03:20:10 +00:00
wchen
073ad6281c merge r101945 from trunk to branch 5.2
bug  TDI-25545 fixed: <Header Footer>:JAR missing if use a header/footer which contain jars in a job


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101946 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-27 02:33:28 +00:00
jzhao
185edacfb6 Fixed Bug TDI-25255: tFileOutputExcel "define all columns auto size" causes NPE
https://jira.talendforge.org/browse/TDI-25255 
Note:merge to branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101871 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 10:31:15 +00:00
fwang
6ecdb41309 bug TDI-25538 fixed:BD Build:tXMLMap:Should remove option "Import from repository" option
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101867 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 10:12:52 +00:00
jzhao
2f6ac52437 Fixed Bug TDI-25554: fileInputDelimited nullable column gets rejected
https://jira.talendforge.org/browse/TDI-25554
Note:Merge to branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101852 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 08:56:42 +00:00
hcyi
fce85adfe3 merge r101840 from trunk to branch 5.2
bug TDI-25604 fixed : avoid Exchange view shows null entries , add the validate  .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101841 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 07:02:01 +00:00
ycbai
ab2785a0d7 merge r101746 from trunk to branch 5.2.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101822 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-25 01:56:31 +00:00
wchen
b03b6f45e3 merge r101692 from trunk to branch 5.2
bug TDI-25626 fixed: Routine can not access classes in imported library


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-24 09:15:12 +00:00
wchen
44f7c02042 merge r101704 from trunk to branch 5.2
bug TDI-25628 :Able to edit routine's jar, even if routine is opened


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101779 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-24 09:10:02 +00:00
jyhu
489aad7166 Fix Bug TDI-7505: tSybaseXX component is unable to process "BigDecimal" properly
https://jira.talendforge.org/browse/TDI-7505

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-24 03:44:42 +00:00
nrousseau
7faca09d3b merge r101719 from trunk to branch 5.2
TDI-25634 : update token info for data collector


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101724 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 12:31:23 +00:00
hcyi
6a30d6b2a6 merge r101697 from trunk to branch 5.2
bug TDI-25605 fixed : Update component release in Talend Exchange view in Studio failed .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101698 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 09:03:25 +00:00
zwzhao
50c1d9628d bug TDI-24576 fixed : Performance issue when loading the list old jobs to import
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-23 08:25:41 +00:00
wliu
2620325e80 Fix Bug TDI-25003 : tmp_tGreenplumBulkExec already exists error when concurrent threads execute tGreenplumBulkExec
https://jira.talendforge.org/browse/TDI-25003

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101647 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 09:37:13 +00:00
jjzhou
83ceb366f4 fix Bug TDI-24843: Columns of type "List" are not parsed when read from tFileInputDelimited
https://jira.talendforge.org/browse/TDI-24843

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101632 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-22 06:45:09 +00:00
jjzhou
e20b6636ae fix Bug TDI-25594: D-click tMemorizeRow in a job, error message
https://jira.talendforge.org/browse/TDI-25594

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101575 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-19 10:31:06 +00:00
rdubois
11d3d668d8 TDI-25579 fixed: Handle null datasources
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101506 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-18 14:09:52 +00:00
jyhu
4ba3934d01 Fix Bug TDI-25268 :Different action between .xls and .xlsx when read Date data by tFileInputExcel
https://jira.talendforge.org/browse/TDI-25268 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101488 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-18 11:15:10 +00:00
zwzhao
7713c8519b (revert)bug TDI-24576 fixed : Performance issue when loading the list old jobs to import
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101466 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-18 09:46:12 +00:00
fwang
72a9674ad8 bug TDI-25569 fixed:Sybase_error when click Guess schema on Component tab
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101456 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-18 09:20:35 +00:00
zwzhao
17a2efa165 bug TDI-24576 fixed : Performance issue when loading the list old jobs to import
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101367 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-17 09:25:30 +00:00
rdubois
026e714a07 TDI-25149: update of jar needed for geometry type.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101362 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-17 08:59:32 +00:00
nrousseau
42f686658f merge r101359 from trunk to branch 5.2
TDI-25386 : update of jar needed for geometry type.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-17 08:57:11 +00:00
fwang
429b9d8f18 bug TDI-25552 fixed:error show when change schema type from Build-in to Repository
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101339 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-17 06:31:58 +00:00
rdubois
63870324e7 TDI-25550 fixed: Add the error message content in the globalMap.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101311 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-16 14:49:33 +00:00
rdubois
8bcd4fcf56 TDI-25516 fixed: generate the proxy settings in the javajet directly.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101303 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-16 12:26:14 +00:00
rdubois
f7bef5e104 TDI-25518 fixed: set proxy's configuration using java.net.Authenticator
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101270 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-16 09:43:08 +00:00
fwang
665bbffdb8 bug TDI-25524 fixed:Font discrepenses in the Job Documentation
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101246 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-16 07:35:15 +00:00
wwang
4ae8c08015 Fix Bug TDI-22619 : tHiveInput call map reduce fail when embedded and select column in MapR2
https://jira.talendforge.org/browse/TDI-22619

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101220 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-16 01:39:36 +00:00
rdubois
0de32fd558 TDI-25408 fixed: Add a BundleID to Oracle components which import XMLPARSERV2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101212 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-15 13:06:51 +00:00
wwang
01047d4ef3 Fix Bug TDI-25460 : tSOAP get error when the soap header contains text between different nodes
https://jira.talendforge.org/browse/TDI-25460

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101160 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-15 03:26:24 +00:00
jjzhou
14be53832c fix Bug TDI-24826: Uable to use tHDFSOutput with tHiveConnection in standalone mode of CDH3
https://jira.talendforge.org/browse/TDI-24826

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101135 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-12 10:31:37 +00:00
jjzhou
0eddbc6988 fix Bug TDI-25421: The problem described in the TDI-24161 can be found at the component tConvertType
https://jira.talendforge.org/browse/TDI-25421

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@101076 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-12 02:55:19 +00:00
wwang
a24c72f1cb Fix Bug TDI-25425 : "Duplicate local variable i" code generation error with using "tFileInputPositional" and "tJavaFlex"
https://jira.talendforge.org/browse/TDI-25425

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100990 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-10 09:36:04 +00:00
wchen
45cb0f3a56 bug TDI-25413 fixed: Can not open consumer job having joblet when some file is updated and not saved
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100975 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-10 08:44:52 +00:00
fwang
272ffc0e33 bug TDI-25302 fixed:Data viewer reports error if the db including "-"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100778 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-08 10:02:59 +00:00
fwang
926cc3ee7d bug TDI-25297 fixed:Business Models:Open another version:Dialog still show as "Job version"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100731 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-07 09:36:03 +00:00
fwang
655d247e41 bug TDI-25297 fixed:Business Models:Open another version:Dialog still show as "Job version"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100699 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-07 05:37:28 +00:00
wwang
304a82b943 Fix Bug TDI-24890 : tMap with disk storage floods memory
https://jira.talendforge.org/browse/TDI-24890

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100681 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-07 01:56:04 +00:00
rdubois
b5356f9603 TDI-25385 fixed. Add quotes around the label in the MAPPING table.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100670 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-05 13:57:40 +00:00
fwang
d9af1946a9 bug TDI-25297 fixed:Business Models:Open another version:Dialog still show as "Job version"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100566 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-03 06:52:32 +00:00
fwang
3d2e0f2a58 bug TDI-25302 fixed:Data viewer reports error if the db including "-"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100530 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-03 02:21:47 +00:00
zwzhao
980faa8da4 bug TDI-24896 fixed : Problem of compatibility of import items for Java 7
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100518 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-03 01:42:32 +00:00
nrousseau
25f3da00a4 merge r100434 from trunk to branch 5.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100516 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-03 00:14:15 +00:00
nrousseau
810f582f9c merge r100427 from trunk to branch 5.2
Fix Bug TDI-25167 : Behaviour of tRunJob component is different between version 5.1.2 and 5.2.1 
https://jira.talendforge.org/browse/TDI-25167


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100437 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-02 08:30:39 +00:00
wchen
7ff64ce7ea bug TDI-24876 fixed: tXMLMap looses mapping in some jobs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100423 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-04-02 03:45:31 +00:00
nrousseau
0ad4f4e599 merge r100066 from trunk to branch 5.2
TDI-25183 : fix problem of update, it won't really update the item since the result.job was not set.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100076 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-23 14:50:24 +00:00
jjzhou
03a619b51a fix Feature TDI-25014: tSendMail with Exchange 2010 - javax.mail.authentificationFailedException
https://jira.talendforge.org/browse/TDI-25014

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100048 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-23 07:17:16 +00:00
jzhao
365947f70b Fixed Bug TDI-24770: tORACLESCDELT -SQL type2 column comparison fails as null is not treated
https://jira.talendforge.org/browse/TDI-24770
Note:merge to 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100045 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-23 06:40:57 +00:00
nrousseau
ac72f63570 merge r100034 from trunk to branch 5.2
TDI-24403 : fix a problem of default  setup of combo


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@100036 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-23 03:52:11 +00:00
nrousseau
bee90f6719 merge r99943 from trunk to branch 5.2
TDI-24854: add a simple fix for this, maybe later we can improve this again.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-21 11:08:53 +00:00
hcyi
16d544a51a TDI-22098 : fix problem of error status displayed in job, remove one compilation check done at the wrong place for the syntax check as well.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99902 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-21 06:36:39 +00:00
zwzhao
7652d3ee71 backport TDI-25059 : fix problem when export job as osgi with recursive calls
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99872 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-20 10:26:48 +00:00
ggu
7eb24c4b8e TUP-575: fixed the problem for load unknown items in different product.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99839 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-20 03:48:07 +00:00
fwang
40f27eac56 bug TDI-25130 fixed:retrieve schema by unchecking/checking a table changes components to built in [ELTInput]
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99836 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-20 03:22:13 +00:00
jjzhou
40c25c071f fix Bug TDI-24979: noData sheet is expressed "Null" in tFileInputExcel read 2007excel file format
https://jira.talendforge.org/browse/TDI-24979

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99830 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-20 01:05:41 +00:00
nrousseau
7f9895b33f merge r99805 from trunk to branch 5.2
TDI-25097: review the changes to be compatible with routes as well.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99806 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-19 08:49:12 +00:00
nrousseau
965dbe0d91 merge r99749 from trunk to branch 5.2
TDI-25097 : fix a problem of remote execution for exit status and open threads


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99751 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-18 09:51:00 +00:00
jzhao
8d93489f4f Fixed Bug TDI-25117: Migrate from 5.1.2 to 5.2.1 with tMongoDBInput, there would be NPE
https://jira.talendforge.org/browse/TDI-25117
Note:Modofy MigrationTask "ChangetMongoDBInputSortTextToTable"

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99719 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-18 04:05:24 +00:00
hcyi
27c731bd7d merge r99713 from trunk to branch 5.2
bug TDI-24668 fixed : Update of tWebService configuration doesn't work properly .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99714 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-18 03:47:26 +00:00
jyhu
38c8a1eb01 Fix Bug TDI-24850 : Compile error on tMomInput
https://jira.talendforge.org/browse/TDI-24850 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99677 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-15 10:32:49 +00:00
jyhu
4bb11d3d55 Fix Bug TDI-25079 : NPE when generating code for tTeradataFastExport
https://jira.talendforge.org/browse/TDI-25079 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99653 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-15 08:58:02 +00:00
plv
0d3512fd58 TDI-25081 : Backport on 5.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99571 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-14 08:51:50 +00:00
wliu
89de8cfe95 Fix Bug TDI-25070 : tFixedFlowInput generates twice the code when using lookup as the output connector
https://jira.talendforge.org/browse/TDI-25070

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99558 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-14 07:13:45 +00:00
nrousseau
975c1c5e57 merge r99546 from trunk to branch 5.2
TDI-24978 : improve import items to import more easily large projects


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99547 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-14 05:25:16 +00:00
plv
449f2893d8 bug TDI-24975 fixed:High memory usage on large project
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99423 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-12 09:45:55 +00:00
nrousseau
5be9aa761c merge r99302 from trunk to branch 5.2
TDI-25026 : fix problem of preview for excel wizard


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99375 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-11 10:09:14 +00:00
jzhao
c3de914df6 Fixed Work Item TDI-24931: The component tVtigerCRMInput in "Vtiger 5.0" is unable to drag an "Iterator" connector after TDI-24042
https://jira.talendforge.org/browse/TDI-24931 
Note: 
1.Modify tVtigerCRMInput 
2.Modify NodeUtil?.java to fixed tExtactXMLField/tMDMInput Iterator problem 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99325 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-11 02:58:07 +00:00
jjzhou
85188fc5b4 fix Bug TDI-24951: import the jar according to different excel file
https://jira.talendforge.org/browse/TDI-24951 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99308 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-11 01:58:14 +00:00
nrousseau
d238cc0376 merge r99114 from trunk to branch 5.2
TUP-510: fixes a small problem of build project started for nothing while logon project, and at the same time a possible NPE found while testing local commandline.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99306 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-11 01:42:04 +00:00
mwang
d44441b7ef For TDI-24844: Backport to 5.2 of TDI-24838: The prompt dialog for Record Column o...
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@99305 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-11 01:41:47 +00:00
yshamin
22a185642d - fixed TDI-24848 for branch 52
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98977 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-03-01 10:57:18 +00:00
wliu
3685507bc2 Fix Bug TDI-24914 : compile error on update mode for tGreenplumBulkExec
https://jira.talendforge.org/browse/TDI-24914

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98910 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-28 11:04:45 +00:00
nrousseau
85ef7598e5 merge r98800 from trunk to branch 5.2
bug TDI-24889 : fix problem of import, in case of items with another extension than .item for Item emf objects (survivorship in this case)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98816 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-27 08:59:50 +00:00
ilazebny
eb0b2b9b62 Update version to 5.2.2 in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98771 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-26 11:08:34 +00:00
fwang
fb055356da bug TUP-424 fixed:<Jasper>: issues on login UI of JETLExpress and JETLXCmmty
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98766 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-26 10:24:58 +00:00
zwzhao
42778a2b23 TDI-24837 : fix a remaining problem of performance due to the cache, and also to the java editor itself (functions of eclipse used but no use for us who take too long time)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98749 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-26 09:12:30 +00:00
jjzhou
0d222f1070 fix Bug TDI-24847: onSubjobError not caught in 5.1.1 with compoennt tWriteXMLField
https://jira.talendforge.org/browse/TDI-24847 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98726 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-26 05:00:08 +00:00
zwzhao
c0f542c2db TDI-24837 : fix the problem of memory and peformance found while testing the project.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98676 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-25 09:43:15 +00:00
zwzhao
dfa92969cf TDI-24837 : fix the problem of memory and peformance found while testing the project.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98675 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-25 09:42:44 +00:00
amarkevich
ef4a1b488b TESB-8354: Unable to use TRESTRequest data with TMomOutput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98658 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-25 08:42:21 +00:00
mhirt
428d3b8450 merge r98472 from trunk to branch 5.2
Add Component Help 5.2.2


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98584 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 13:16:13 +00:00
jzhao
80e5b73ca7 Fixed Work Item TDI-24042: When input components don't have data output connectors but Iterate connector, fix the possible compile errors
https://jira.talendforge.org/browse/TDI-24042

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98549 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 09:20:37 +00:00
jyhu
4c444e268d Fix Feature TDI-23992 :Bytes message as body type in component tMomOutput .
https://jira.talendforge.org/browse/TDI-23992 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98542 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 08:59:39 +00:00
zwzhao
3c807c6350 bug TDI-24342 backport : Add the support of AnyType from GUI
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98505 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 03:25:43 +00:00
wwang
cf5f5bd099 Fix Feature TDI-24213 : An error throws out if an operation is defined as 'anyType'
https://jira.talendforge.org/browse/TDI-24213

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98495 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 02:43:43 +00:00
wliu
2e2a444a60 Fix Bug TDI-24763 : tConvertType uses wrong date pattern when input is Date and output is String
https://jira.talendforge.org/browse/TDI-24763

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98485 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 02:03:20 +00:00
mhirt
54a1096e66 merge r98471 from trunk to branch 5.2
Remove components help to commit safely the new 5.2.2 help


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98476 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-22 00:22:43 +00:00
nrousseau
02afaaad1c TDI-24780 : add babili exports (except components.localprovider / camelprovider / bigdataprovider)
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98454 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-21 10:54:48 +00:00
plv
b3e37636df TDI-24780 commited:Export babili translations into 5.2 branch of SVN
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98452 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-21 10:48:02 +00:00
jzhao
aaacbbfb3f Fixed Bug TDI-24719: Wrong usage of MDM webservice stub may lead to incorrect query
https://jira.talendforge.org/browse/TDI-24719


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98406 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-21 07:47:57 +00:00
fwang
7cb8ad3422 bug TDI-24643 fixed:Pregress OpenEdge connected with tJdbcInput generate incorrect sql statement and failure to view data from Metadata by "data viewer"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98364 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-21 01:53:39 +00:00
atelesh
0ebba706fb TESB-8324 - tRESTResponse needs to optionally drop root JSON Elements
-> TESB-8506 - make configuration available on runtime

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98352 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-20 12:15:02 +00:00
zwzhao
3aee95eb29 bug TDI-24094 fixed : Job publish with an compile errors in studio can publish success in commandline
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98344 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-20 10:18:23 +00:00
jyhu
9182345d79 Fix Feature TDI-24766 :Since r79188, the tMoimOutput doesn't work anymore when using the messageID.
https://jira.talendforge.org/browse/TDI-24766

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98340 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-20 10:01:37 +00:00
jzhao
d75d29da73 Fixed Work Item TDQ-6716: Import the jars using the REQUIRED_IF for the DQ HADOOP components
https://jira.talendforge.org/browse/TDQ-6716
Note:Merge to branch 5.2 add migration task

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98303 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-20 06:14:42 +00:00
nrousseau
4eaaf05087 TDI-24769 : add the 2 plugins missing to the build
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98280 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-20 02:57:16 +00:00
jzhao
366d8af659 Fixed Bug TDI-24551: Routine TalendDate.isDate only adopts the Time Zone and DST of the machine running the code
https://jira.talendforge.org/browse/TDI-24551 
Note: 1. revert code keep TalendDate?.isDate (...)old behaviour . 
2. add new method TalendDate?.isDate(String stringDate, String pattern, boolean ignoreTimeZone) 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98275 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-20 01:58:33 +00:00
wliu
2243e7cd6a Fix for Bug TDI-24412 : Milliseconds of timestamp-fields are getting dropped at TOracleOutput.
https://jira.talendforge.org/browse/TDI-24412

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98241 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-19 08:30:13 +00:00
plv
3adb626c49 bug TDI-24751 fixed:TOS_DI&TOS_BD:String trunction at "Welcome page"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98236 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-19 07:51:30 +00:00
pbabin
9b6e331030 merge r98193 from trunk to branch 5.2
TMDM-5353: Correct fallback string messages when no other translation is provided


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98194 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-18 13:45:51 +00:00
jzhao
7837094ba2 Fixed Work Item TDI-24123: Optimize the code automatically according to the columns number for tFileInputDelimited
https://jira.talendforge.org/browse/TDI-24123
Note: Merge branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98153 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-18 07:44:19 +00:00
nrousseau
fe2d7e83b8 TUP-316 : fix problem of log4j, remove the specific settings from the component designer.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@98152 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-18 07:42:33 +00:00
ldong
5b372a530e bug TDI-24443 fixed:CommandLine does not complain missing components.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97899 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-06 08:57:38 +00:00
hcyi
7607a38545 TDI-24712 : fix problem of drag&drop for JDBC connection with context .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97765 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-04 10:30:59 +00:00
jzhao
4e807acb11 Fix Backlog Task TDI-24596: Compile error of tFileOutputDelimited when check "include header"
https://jira.talendforge.org/browse/TDI-24596

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97694 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-01 10:55:45 +00:00
fwang
b320c56b1c bug TDI-24443 fixed:CommandLine does not complain missing components
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97666 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-01 07:20:42 +00:00
fwang
061908eb42 bug TDI-24443 fixed:CommandLine does not complain missing components
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97634 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-02-01 02:43:47 +00:00
plv
d9fd712872 bug TDI-24325 fixed:Deactivate joblet in job and expand it
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97537 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-31 01:47:49 +00:00
wwang
6be71053d5 Fix Feature TDI-24420 : Support the new HDP version (Bimota) 1.2.0
https://jira.talendforge.org/browse/TDI-24420

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97512 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-30 10:03:49 +00:00
wchen
15be0bb8de bug TDI-24587 fixed: tXMLMap reaches 10K Windows Handle Limit
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97480 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-30 01:57:15 +00:00
plv
244975b347 merge r97458 from trunk to branch 5.2
bug TDI-24403 fixed:Problem of refresh when change the type of distribution of hadoop, the version field is not updated


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97460 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-29 09:47:45 +00:00
plv
1b673b834a bug TDI-24378 fixed:Guess schema for derby failed
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97430 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-29 05:47:15 +00:00
wwang
598a5054dc Fix Bug TDI-24552 : tFileInputFullRow component produce additional rows
https://jira.talendforge.org/browse/TDI-24552

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97421 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-29 02:41:03 +00:00
nrousseau
ded81c828d merge r97359 from trunk to branch 5.2
TDI-24614 : fix problem of classpath.jar not exported


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97360 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-28 04:42:08 +00:00
nrousseau
fc360ac9ec merge r97341 from trunk to branch 5.2
TDI-24612 : fix a problem of import of routines from .tar.gz


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97342 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-28 01:43:40 +00:00
fwang
cdb295b714 bug TDI-24476 fixed:Update component from Exchange failed
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97265 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-25 08:34:21 +00:00
gliu
4995091ee3 [TESB-6735] Can not rename row when create route
fixed on 5.2.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97229 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-25 03:20:34 +00:00
plv
83c4814523 merge r97145 from trunk to branch 5.2
bug TDI-24396 fixed:Help tab always on top while switching components


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97150 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-23 08:56:13 +00:00
jyhu
3e1378b408 Fix Bug TDI-24592 :Could not generate code when do not set db type for date column on tOracleInput
https://jira.talendforge.org/browse/TDI-24592

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97138 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-23 06:59:05 +00:00
wwang
566f417ebc Fix Bug TDI-24391 : Compilation error happen when tMap and tELTMysqlMap work together with OnSubjectOK or OnComponentOK line
https://jira.talendforge.org/browse/TDI-24391

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97129 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-23 02:22:44 +00:00
rdubois
3068842be6 TDI-24035 fixed: Replace the wrong HTML
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97072 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-21 16:13:03 +00:00
rdubois
2745c26ffd TDI-24559 fixed
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97071 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-21 15:54:35 +00:00
ilazebny
d68f6120ec Update version 5.2.2-SNAPSHOT in poms
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@97052 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-21 10:16:43 +00:00
zwzhao
8cc438fcc9 bug TDI-24525 fixed : Cannot create Web Service WSDL schema
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96944 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-17 09:59:10 +00:00
jjzhou
5ade4132e4 fix Bug TDI-24513: Change "Remote File Name" to "File Name" on the basic settings interface of tVerticaBulkExec
https://jira.talendforge.org/browse/TDI-24513

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96920 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-17 02:35:08 +00:00
jjzhou
0865345eae fix Bug TDI-24416: unorder showing for "Driver JAR","SP Name"...., when not use existing connection
https://jira.talendforge.org/browse/TDI-24416 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96842 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-15 06:51:04 +00:00
jjzhou
c3b5798b68 fix Bug TDI-24416: the option "use existing connection" is not working with the tjdbcSP component
https://jira.talendforge.org/browse/TDI-24416

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96801 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-14 09:09:17 +00:00
hwang
7b27acb006 merge r96789 from trunk to branch 5.2
TDI-24469 :update manager_when expand the joblet in job, the output line is not correct connected 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96791 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-14 07:20:39 +00:00
nrousseau
10a077fd86 merge r96779 from trunk to branch 5.2
TDQ-6732 fixed: change from project.getLabel() to project.getTechnicalLabel()


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-14 03:37:49 +00:00
jjzhou
6fe754df12 fix Bug TDI-24483:merge code from trunk into branch5.2
https://jira.talendforge.org/browse/TDI-24483

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96778 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-14 03:25:09 +00:00
zwzhao
7468ef3ff8 bug TDI-24447 fixed : delete the output component will throw error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96727 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-11 09:28:52 +00:00
wchen
a76fcf60c2 merge r96700 from trunk to branch 5.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96701 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-11 06:40:14 +00:00
jzhao
c847e0593d Fixed Bug TDI-24345: tLogRow 64K problem also need to be fixed
https://jira.talendforge.org/browse/TDI-24345

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96672 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-11 01:35:20 +00:00
jyhu
1ad77e43ed Fix Bug TDI-24442 :Merge issues on tMysqlOutput to tAmazonMysqlOutput
https://jira.talendforge.org/browse/TDI-24442

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96635 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-10 07:37:10 +00:00
wchen
26fdf8f514 merge r96578 from trunk to branch 5.2
bug TDI-24390 fixed: Some improvements needed of tXMlmap UI


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96581 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-09 10:02:28 +00:00
mwang
efeb6560aa For bug TDI-24288 : Table name button for tHiveRow doesn't work well
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96548 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-09 03:38:16 +00:00
nrousseau
1729661660 merge r96537 from trunk to branch 5.2
TDI-24400 : fix possible problem in Expression for IN type with DB_TYPE, in case the dbtype is not set (same as generic for example)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-09 01:09:48 +00:00
wwang
817f57d2b8 Fix Bug TDI-24364 : Add the fullname like: routines.system.Document for the Document Type in the generated code
https://jira.talendforge.org/browse/TDI-24364

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96526 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 09:57:14 +00:00
wwang
a7a136a567 Fix Bug TDI-24364 : Add the fullname like: routines.system.Document for the Document Type in the generated code
https://jira.talendforge.org/browse/TDI-24364

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96510 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 08:41:22 +00:00
wchen
b1ee59fc97 merge r96494 from trunk to branch 5.2
bug  TDI-23078 fixed: tXmlMap cannot read nested element with same name


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96495 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 05:44:33 +00:00
fwang
0b8d7cb307 bug TDI-24065 fixed:Unclear message when trying to run a job opened in read-only mode
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96483 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 03:20:52 +00:00
wchen
75ced91d4e merge r96466 from trunk to branch 5.2
bug TDI-24268 fixed: fix some junits 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96469 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 02:32:57 +00:00
zwzhao
9a19b1140b merge r96464 from trunk to branch 5.2
TDI-21602: modify junit 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96467 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-08 02:18:39 +00:00
wchen
37f821da81 merge r96373 from trunk to branch 5.2
bug TDI-24256 fixed: Update Manager: There is an error operation for update


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96388 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 05:37:27 +00:00
hwang
4c05e7b99f merge r96344 from trunk to branch 5.2
TDI-24289:Changes to expanded joblets 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96370 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 03:29:03 +00:00
hwang
e52455b4a8 merge r96299 from trunk to branch 5.2
TDI-24343:when do Move to joblet issues,then undo,the components in job go far away 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96369 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-07 03:21:50 +00:00
fwang
009f0546b9 bug TDI-23827 fixed:There some GUI problems about Modules and export JBoss ESB
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96350 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 09:01:37 +00:00
wchen
afe4141ba0 merge r96330 from branch 5.1 to branch 5.2
bug  TDI-24362 fixed: tXmlMap cannot import output rows from repository


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 07:44:21 +00:00
fwang
e26930089c bug TDI-24318 fixed:Unhandled event loop exception happens when saving the sql in sql builder
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96323 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 06:42:33 +00:00
wwang
ee9e8dfa31 Fix Bug TDI-24326 : Two documents in flow cause compilation error
https://jira.talendforge.org/browse/TDI-24326

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96316 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-06 06:02:00 +00:00
wchen
df8427062f bug TDI-24360 fixed: DB version problem in project setting and jobsetting for oracle and mysql.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96291 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 07:27:11 +00:00
wwang
e84327377b Fix Bug TMDM-5181 : Can't create a job with tMDMTriggerInput connected to anything
https://jira.talendforge.org/browse/TMDM-5181

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96288 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 07:16:52 +00:00
ldong
5d9ed65ca7 bug TDI-24346 fixed:Exception in thread "main" java.lang.Error happens when use copybook in job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96280 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 06:22:21 +00:00
ldong
4fce867f3c bug TDI-24346 fixed:Exception in thread "main" java.lang.Error happens when use copybook in job.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96276 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 03:44:31 +00:00
plv
828cd4b1f3 merge r96272 from trunk to branch 5.2
bug TDI-24233 fixed:Business Module cannot "save as" successfully after updating the version, and an error message popup.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96273 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 03:35:45 +00:00
nrousseau
b3ca513c4d merge r96259 from trunk to branch 5.2
TDI-7013 : review original commit, but avoid to use the parameter name directly.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96260 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-05 01:40:59 +00:00
mwang
99efda044c For bug : TDI-24301 Update detect:uchecked the change items, property type can not be change to "build-in"
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96220 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2013-01-04 06:08:18 +00:00
jyhu
d1108584bc Fix Bug TDI-7809 :tCreateTable with HSQLDB create table use double quote,different activity from tHSQLDBOutput/Input
https://jira.talendforge.org/browse/TDI-7809 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96201 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 11:21:04 +00:00
bchen
2047e58894 Fixed Bug TDI-24218: 64k limit on mssql SCD
https://jira.talendforge.org/browse/TDI-24218
merge r96103 & r96132 & r96195 into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96198 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 10:10:48 +00:00
bchen
317c1544c4 Fix Backlog Task TDI-24080 : tRest & tSOAP & tWebService & tWebServiceInput & tESBConsumer
https://jira.talendforge.org/browse/TDI-24080 
add dependency with jaxp-ri to make saaj work on IBM jvm 
merge r95103 into branch5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96194 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 09:25:11 +00:00
zwzhao
528ff87d57 bug TDI-24308 fixed : The IProcess is a Process instead of RouteProcess when exporting a Route Item
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96180 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 08:18:14 +00:00
nrousseau
72b4261997 merge r96160 from trunk to branch 5.2
TDI-23319 : change the method used to get the font data.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96164 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 06:11:16 +00:00
zwzhao
d409984cbf bug TDI-24313 fixed : Stats & Logs_ can't update project settings through tab job->stats & logs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96157 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 05:33:10 +00:00
nrousseau
a49ff2da6e merge r96155 from trunk to branch 5.2
TDI-23319 : link again the preference page to the control used for memo. (used in tJava for ex.)


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96156 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 05:32:35 +00:00
nrousseau
e0e0a5133d merge r96150 from trunk to branch 5.2
TDI-7013 : fix remaining problem about the combo box, set as yellow and disabled when use dynamic settings


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96152 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 04:11:13 +00:00
zwzhao
2da475a121 bug TDI-24313 fixed : Stats & Logs_ can't update project settings through tab job->stats & logs
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96143 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-31 02:42:11 +00:00
wwang
4912633eb2 Fix Bug TDI-24274 : tMap can't work with tJavaFlex as main input
https://jira.talendforge.org/browse/TDI-24274

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96098 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 05:42:05 +00:00
wchen
b68e758e94 merge r96074 from trunk to branch 5.2
bug TDI-24268 fixed : Could not get the correct sql from "Generated SQL Select query" on tELTPostgresql/MSSql/Sybase/GreenplumMap


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96081 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 03:00:22 +00:00
wchen
7e6650d7cd merge r96011 from trunk to branch 5.2
bug TDI-24268 fixed : Could not get the correct sql from "Generated SQL Select query" on tELTPostgresql/MSSql/Sybase/GreenplumMap


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96080 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-28 02:54:39 +00:00
jyhu
869ee40ebe Fix Bug TDI-7809 :tCreateTable with HSQLDB create table use double quote,different activity from tHSQLDBOutput/Input
https://jira.talendforge.org/browse/TDI-7809 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96020 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 08:14:47 +00:00
jyhu
e7e32afc20 Fix Bug TDI-24212 :Need modification from component team to enhance ELT.
https://jira.talendforge.org/browse/TDI-24212 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@96000 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 07:10:58 +00:00
wwang
6150760b54 Fix Bug TDI-24299 : fix the tuj bug5774_tFileInputXML
https://jira.talendforge.org/browse/TDI-24299

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95992 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 06:27:02 +00:00
hcyi
70b0cac870 merge r95986 from branch 5.1 to branch 5.2
bug TDI-20184 fixed : oracle connection export as context,use elt componment create a job,when run there is error. 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95988 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-27 05:42:51 +00:00
wchen
b5fbac4796 merge r95952 from trunk to branch 5.2
bug TDI-23987 fixed: H2 JDBC connection "guess schema" report exception error 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95954 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-26 07:51:54 +00:00
hcyi
d1a6f50e36 merge r95933 from trunk to branch 5.2
bug TDI-20184 fixed : oracle connection export as context,use elt componment create a job,when run there is error.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95936 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-26 02:39:36 +00:00
wwang
3bd7a5743a Fix Bug TDI-24078 : Search all the components which contains com.sun.*, then try to find a solution to make them support both oracle jvm & ibm jvm.
https://jira.talendforge.org/browse/TDI-24078

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95904 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 03:49:08 +00:00
wchen
0d07add793 merge r95892 from trunk to branch 5.2
bug   TDI-24168  fixed: Too Many refresh of the component properties view leading to memory leak


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95894 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 03:19:17 +00:00
wwang
4733245da6 Fix Bug TDI-20774 : Exception class that has been generated in the routines from the WSDL reports compilation error
https://jira.talendforge.org/browse/TDI-20774

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95890 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 02:56:33 +00:00
wchen
e6137fed38 merge r95869 from branch 5.1 to branch 5.2
bug  TDI-24185 fixed: tXMLMap_there are some deletion issue for "Configure source loops"


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95884 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-25 02:20:45 +00:00
hcyi
34b5a13a6f merge r95854 from trunk to branch 5.2
bug TDI-24260 fixed : JobSetting View "Extra" ,"Stats&Logs" tab have some problems of the db parameter . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95856 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-24 09:08:58 +00:00
zwzhao
f47a8de7f5 bug TDI-23126 fixed : Don't disable Connection after changed to another workspace
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95847 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-24 08:25:23 +00:00
hwang
37874e5840 merge r95791 from trunk to branch 5.2
TDI-24238:When drag a db connection component into job and link it by main row, it will report error in error log


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95793 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 07:15:20 +00:00
hcyi
ce44739a01 merge r95775 from trunk to branch 5.2
bug TDI-24260 fixed : JobSetting View "Extra" ,"Stats&Logs" tab have some problems of the db parameter .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95780 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 05:24:41 +00:00
wliu
879584dcba Fix Bug TDI-23514 : Run job with tloop component, no statics flow
https://jira.talendforge.org/browse/TDI-23514

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95779 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 05:17:06 +00:00
ycbai
c927eddce8 bug TDI-24253 fixed : Export Axis War file produces inconsistent size
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95770 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-21 03:01:29 +00:00
hcyi
fccc03ce3b merge r95740 from trunk to branch 5.2
bug TDI-23535 modified : switching implicit context variables from Oracle to Mysql genereate incorrect select statement . 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95742 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-20 09:53:41 +00:00
fwang
c02505ffdb bug TDI-24200 fixed:Problems related with tDBSCD components after the modification of 23146
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95723 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-20 08:39:40 +00:00
wliu
68b0188754 Fix Bug TDI-24087 : Make the tMDMOutput work with the Document type in the main output link.
https://jira.talendforge.org/browse/TDI-24087

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95693 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-20 03:29:18 +00:00
hwang
fa764f14bc merge r95648 from trunk to branch 5.2
TDI-7013:Shared connection of DB components,after delete component list in 'dynamic setting', job still run successfully


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95649 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-19 10:31:19 +00:00
plv
b511c0c559 merge r95618 from trunk to branch 5.2
bug TDI-23917:serveral links between tmap and tlogrow cause a NPE error


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95620 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-19 07:26:28 +00:00
ldong
aad38b54b7 bug TDI-24106 fixed:backport on 5.2.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95602 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-19 02:49:27 +00:00
mwang
1a79a68b02 For bug TDI-24038 : Cannot Save the job with huge screen in studio
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95577 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 09:49:21 +00:00
ycbai
a480f677b4 bug TDI-22836 fixed : Small warning if use tSalesforceConnection with tsetProxy with authentication
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95574 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 09:33:58 +00:00
wchen
b1425b4f1a bug TDI-21419 fixed:The feature where dragging a component over a link, puts it in between the link is not working as expected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95569 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 09:25:45 +00:00
jzhao
ce76a76795 Fixed Work Item TDI-22865: Fix the 65535 problem in tExtractXMLField
https://jira.talendforge.org/browse/TDI-22865
Node:merge to branch 5.2

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95550 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 08:16:10 +00:00
hwang
ab227f2bb6 merge r95528 from trunk to branch 5.2
TDI-24187:get NPE when retarget a joblet output to another component


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95538 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 07:07:55 +00:00
wwang
60279a143a Fix Bug TDI-24161 : I can use reject line when checked Die On Error on some components
https://jira.talendforge.org/browse/TDI-24161

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95524 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 06:13:08 +00:00
hwang
7ae08f9e5d merge r95464 from trunk to branch 5.2
TDI-23023:Move to joblet issues


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95496 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 02:23:40 +00:00
hcyi
1b7eda9e9c bug TDI-24098 fixed : backport on 5.2 for the TDI-23535 .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95491 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 01:53:04 +00:00
jjzhou
bb9b48d4f9 fix Bug TDI-23810: when the checkbox:"Binary" in table: "Multi-Values" is ticked while "Base64" is not ticked, give a comiple error for tLDAPOutput
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95489 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-18 01:34:43 +00:00
wwang
ff6554bb6f Fix Bug TDI-24189 : add the migratask
https://jira.talendforge.org/browse/TDI-24189

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95473 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 10:37:17 +00:00
plv
e9dc7bd05e bug TDI-23507:SQLserver JDBC: the sql of Guess Schema is wrong
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95470 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 10:25:29 +00:00
plv
787fd4e0d2 merge r95200 from trunk to branch 5.2
bug TDI-7809:tHSQLDBInput - In in process persistent mode "guess schema" doesn't work


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95447 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 09:03:19 +00:00
zwzhao
bbb5d5ca8a merge r95436 from trunk to branch 5.2
bug TDI-24180 fixed : Login and pwd are in clear in \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.prefs


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95445 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:49:18 +00:00
jyhu
0390436438 Fix Bug TDI-20609 : Created Tables are always uppercased with tOracleOutput, even though the option "CONVERT_COLUMN_TABLE_TO_UPPERCASE" is not checked.
https://jira.talendforge.org/browse/TDI-20609 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95441 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:40:41 +00:00
hwang
7bca9ce9fd merge r94886 from trunk to branch 5.2
TDI-24070:add a flag(*) for unopened jobs when update jobs 


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95437 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:32:57 +00:00
hwang
99987f09c0 merge r94857 from trunk to branch 5.2
TDI-23028:Changes to expanded joblets


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95435 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:24:06 +00:00
wwang
d9b1c187a8 Fix Bug TDI-24087 : Make the tMDMOutput work with the Document type in the main output link.
https://jira.talendforge.org/browse/TDI-24087

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95433 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:16:48 +00:00
hwang
9cef6c3e48 merge r94846 from trunk to branch 5.2
TDI-22770:Joblet changes that do not affect input/output should not trigger job update detection


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95432 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:15:24 +00:00
wwang
8ea63778cc Fix Bug TDI-24009 : Change the default type from String to Int for Id in tMarketoInput
https://jira.talendforge.org/browse/TDI-24009

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95430 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 08:04:08 +00:00
jyhu
3e45d70b16 Fix Bug TDI-24158 : NB_LINE_INSERTED, NB_LINE_UPDATED,NB_LINE_DELETED are incorrect when check use batch size on tInformixOutput component.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95428 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 07:51:42 +00:00
mwang
fd168a3858 For backport TDI-24186 of bug TDI-7559 : SqlBuilder for tHiveRow doesn't startup.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95422 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 07:31:36 +00:00
wchen
9d5e333186 merge r95414 from trunk to branch 5.2
bug  TDI-TDI-20703 fixed: Problems of tXmlMap multiloop


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95418 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 06:43:55 +00:00
jyhu
6ea4be02d2 Fix Bug TDI-24066 : Components tPOP/tFileInputMail AND french charset encoding ISO8859-1 to UTF8.
https://jira.talendforge.org/browse/TDI-24066

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95417 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 06:43:15 +00:00
wchen
92ce036459 merge r95199 from trunk to branch 5.2
bug  TDI-24117 fixed: Problem of tXmlMap multiloops


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95413 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 06:30:40 +00:00
wchen
0d0b993c96 TDI-24143 fixed: tXmlMap import xml from repository, can select folder and finish ,but will show an error .
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95410 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 06:12:50 +00:00
ycbai
8ac7c08855 merge r94724 from trunk to branch 5.2
bug TDI-23372 fixed : Update HCatalog repository connction changes the status of isRepository value


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95400 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 03:15:22 +00:00
wchen
c291768715 bug TDI-23987 fixed :H2 JDBC connection "guess schema" report exception error
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95396 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 02:36:47 +00:00
ycbai
33dfdd3753 merge r95168 from trunk to branch 5.2
bug TDI-23825 fixed : Can not save job again after tac restarted


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95391 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 02:11:02 +00:00
wchen
01cf636a15 bug TDI-24071 fixed: export a rows into xml file then import it(if type = document) will missing children
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95390 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-17 02:04:48 +00:00
hcyi
444921253e merge r95333 from trunk to branch 5.2
bug TDI-23997 fixed : Sharing components not working in 5.1.1 .


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95338 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 08:37:25 +00:00
wchen
345c327bce bug TDI-21419 fixed:The feature where dragging a component over a link, puts it in between the link is not working as expected
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95337 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 08:35:31 +00:00
fwang
12d034fdd2 merge r95057 from trunk to branch 5.2
bug TDI-23331 fixed:the problem ofversion management check-box


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95329 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 08:15:01 +00:00
fwang
fc64c6f701 merge r95133 from trunk to branch 5.2
bug TDI-24096 fixed:tFileInputMSDelimited_exception thrown if same letters with lowercase and uppercase exist in the schema


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95301 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 06:55:11 +00:00
fwang
5e44868fdd merge r95189 from trunk to branch 5.2
bug TDI-23877 fixed:The paremeters of Implicit tContextLoad or Stats & Log are wrong.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95298 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 06:42:40 +00:00
jzhao
f143d8e7ad Fixed Work Item TDI-23984: When input components don't have data output connectors but onComponentOK/onSubJobOK connectors, fix the possible compile errors
https://jira.talendforge.org/browse/TDI-23984

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95284 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 06:05:55 +00:00
ldong
fd73dfa85c bug TDI-24073 fixed:backport on 5.2.
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95282 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 05:59:50 +00:00
nrousseau
6657c7f334 merge r95016 from trunk to branch 5.2
TDI-23253 : modify first commit to avoid add quotes if already have quotes, or if the value doesn't contain any space character.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95274 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 04:15:05 +00:00
jjzhou
47843985d0 fix Backlog Task TDI-24175: tLDAPInput - Recovery of DN when use existing connection enabled
https://jira.talendforge.org/browse/TDI-24175

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95269 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 04:00:03 +00:00
nrousseau
9200507ea1 merge r94754 from trunk to branch 5.2
bug TDI-23650 fixed: allow to see / use db columns directly from ELT components.


git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95254 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 03:22:26 +00:00
jjzhou
bfa6c61a77 fix Bug TDI-24105 : Partition properties in tELTHiveOutput does not support double quotes.
https://jira.talendforge.org/browse/TDI-24105 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95249 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 03:13:45 +00:00
cli
7c4d14252a TDI-24079: backport the TDI-23358 on branch 5.2
git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95241 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 02:58:17 +00:00
jyhu
0fc17a6c9a Fix Bug TDI-23950 : tJDBCOuput NB_LINE inconsistent when 'use batch size' = true
https://jira.talendforge.org/browse/TDI-23950 

git-svn-id: http://talendforge.org/svn/tos/branches/branch-5_2@95228 f6f1c999-d317-4740-80b0-e6d1abc6f99e
2012-12-14 02:02:59 +00:00
3342 changed files with 289061 additions and 257350 deletions

View File

@@ -46,7 +46,6 @@ ComponentProjectPreferencePage.Warning=Warnung
AbstractXMLConfigPage.VERSIONTip=Ein Dezimalwert zur Angabe der Version Ihrer neuen Komponente.
WizardJetFilesChoosePage.Directory=Verzeichnis:
CreateComponentWizard.NewComponent=Neue Komponente
WizardComponentFolderPage.Name=Name
RemoveResourceAction.Remove=Entfernen
WizardJetFilesChoosePage.UseIconFrom=Verwende Icon von:
ImportComponentDialog.ImportFinished=Import der Komponente abgeschlossen

View File

@@ -4,7 +4,7 @@ EditComponentActionProvider.Edit=Editer ce composant
ImportComponentDialog.ErrorMSG4=Aucun composant sélectionné pour l'import
ProjectSelectionDialog.SelectPath=Sélectionner le chemin du projet
AbstractXMLConfigPage.TYPETip=Type de données.
PushToPaletteActionProvider.Error2=Erreur
PushToPaletteActionProvider.Error2=ERROR
CopyFromPaletteActionProvider.Label2=Importer les composants de la Palette
AbstractXMLConfigPage.MAXOUTPUTTip=Entier. Nombre maximum de sorties pour cette connexion.
ImportComponentDialog.Browser=Parcourir...
@@ -18,7 +18,7 @@ CreateComponentWizard.SpecifyRes=Sp
AbstractXMLConfigPage.REPOSITORYVALUETip=Référentiel de Métadonnées à sélectionner.
PushToPaletteActionProvider.ErrorMSG=Le répertoire des composants utilisateur n'est pas défini.
AbstractXMLConfigPage.NUMROWTip=Entier. Position de ligne du paramètre dans la vue Composant
PushToPaletteActionProvider.Error=Erreur
PushToPaletteActionProvider.Error=ERROR
ComponentProjectManager.InternalErrorMsg=Erreur interne \: {(0)}
AbstractXMLConfigPage.IntValue=Entier
ImportComponentDialog.ImportCanceled=Import des composants annulé

View File

@@ -19,16 +19,21 @@ WizardComponentFolderPage.ErrMSG1=Nije ozna\u010Den jezik za komponentu
CreateComponentWizard.FillIn=Popuni svojstva komponente
ComponentProjectPreferencePage.Warning=Upozorenje
AbstractXMLConfigPage.VERSIONTip=Decimalna vrijednost koja ozna\u010Dava verziju va\u0161e nove komponente.
WizardJetFilesChoosePage.Directory=Direktorij:
WizardComponentFolderPage.Name=Ime
RemoveResourceAction.Remove=Ukloni
WizardJetFilesChoosePage.UseIconFrom=Koristi ikonu iz:
AbstractXMLConfigPage.SetProperties=Postavi svojstva odabranog elementa.
AddResourceAction.AddLib=Dodaj biblioteke...
WizardComponentFolderPage.Perl=Perl
AbstractXMLConfigPage.NBLINESTip=Cjelobrojna vrijednost. Linije se prote\u017Eu od tog parametra unutar Component pogleda.
AbstractXMLConfigPage.MININPUTTip=Integer vrijednost. Najmanji broj ulaza za ovu vezu.
WizardJetFilesChoosePage.UseDefaultIcon=Koristi zadanu ikonu
WizardComponentFolderPage.LongName=Duga\u010Dko ime (mouseover tooltip)
CopyComponentActionProvider.CopyComponent=Kopiraj tu komponentu
AddExternalResourceAction.ErrorMsg=Ozna\u010Dena vanjska arhiva nije dostupna ili ne postoji.
CopyFromPaletteActionProvider.Label=Kopiraj komponentu iz izbornika Palette
WizardJetFilesChoosePage.ChoseAIcon=Odaberi ikonu
AbstractXMLConfigPage.LINESTYLETip=Cjelobrojna vrijednost'. Stil spojne linije (1. Puna, 2: Crtkana, 3: To\u010Dka, 4: Crta-To\u010Dka)
ComponentProjectPreferencePage.ButtonLabel0=U redu
CreateComponentWizard.MainProperties=Glavna svojstva

View File

@@ -3,6 +3,11 @@ PushToPaletteActionProvider.Error=Fout
NewActionProvider.New=Nieuw
NewActionProvider.NewComponent=Nieuw Component
AbstractXMLConfigPage.Delete=Verwijderen
WizardJetFilesChoosePage.Directory=Directory:
CreateComponentWizard.NewComponent=Nieuw Component
WizardComponentFolderPage.Name=Naam
WizardComponentFolderPage.Perl=Perl
WizardJetFilesChoosePage.UseDefaultIcon=Gebruik default icon
WizardJetFilesChoosePage.ChoseAIcon=Kies een icon
AbstractXMLConfigPage.New=Nieuw
WizardComponentFolderPage.Java=Java

View File

@@ -0,0 +1,88 @@
FileCopy.ExceptionMSG=\u6E90\u6587\u4EF6"
EditComponentActionProvider.Edit=\u7F16\u8F91\u7EC4\u4EF6
ImportComponentDialog.ErrorMSG4=\u6CA1\u6709\u9009\u62E9\u7EC4\u4EF6\u5BFC\u5165
AbstractXMLConfigPage.TYPETip=%u8CC7%u6599%u578B%u614B.
PushToPaletteActionProvider.Error2=\u9519\u8BEF
CopyFromPaletteActionProvider.Label2=\u4ECEpalette\u5BFC\u5165\u7EC4\u4EF6
AbstractXMLConfigPage.MAXOUTPUTTip=\u6574\u6570\u503C.\u8FDE\u63A5\u6700\u5927\u503C\u8F93\u51FA
ImportComponentDialog.Browser=\u6D4F\u89C8..
ComponentProjectPreferencePage.WarningMSG=\u8B66\u544A,\u8FD9\u79CD\u4FEE\u6539\u4EC5\u4EC5\u5F71\u54CD\u7EC4\u4EF6\u8BBE\u8BA1\u5668\uFF0C\u4E0D\u5F71\u54CDPalette.
AbstractXMLConfigPage.MAXINPUTTip=\u6574\u6570\u503C.\u8FDE\u63A5\u6700\u5927\u503C\u8F93\u5165.
PushToPaletteActionProvider.ErrorMSG2=\u7528\u6237\u7EC4\u4EF6\u6587\u4EF6\u5939\u4E0D\u5B58\u5728\u3002
ComponentProjectManager.CreationProblems=\u95ee\u9898\u521b\u5efa
CopyComponentActionProvider.InputName=\u8F93\u5165\u65B0\u7684\u7EC4\u4EF6\u540D
CreateComponentWizard.SpecifyRes=\u6307\u5B9A\u8D44\u6E90
AbstractXMLConfigPage.REPOSITORYVALUETip=%u9078%u64C7 Metadata %u5132%u85CF%u5EAB.
PushToPaletteActionProvider.ErrorMSG=\u7528\u6237\u7EC4\u4EF6\u6587\u4EF6\u5939\u672A\u8BBE\u7F6E\u3002
AbstractXMLConfigPage.NUMROWTip=\u6574\u6570\u503C.\u6B64\u53C2\u6570\u5217\u4F4D\u7F6E\u5728\u7EC4\u4EF6\u89C6\u56FE
PushToPaletteActionProvider.Error=\u9519\u8BEF
ComponentProjectManager.InternalErrorMsg=\u5185\u90E8\u9519\u8BEF\uFF1A{0}
AbstractXMLConfigPage.IntValue=%u6574%u6578%u503C
ImportComponentDialog.ImportCanceled=\u5BFC\u5165\u7EC4\u4EF6\u5DF2\u53D6\u6D88
PushToPaletteActionProvider.OK=\u786E\u5B9A
WizardJetFilesChoosePage.BeginFile=\u5F00\u59CB\u6587\u4EF6
AbstractXMLConfigPage.COLORTip=RGB\u5341\u516D\u8FDB\u5236.\u4F8B\u5982:"00FF00"
CreateComponentWizard.CreateXMLPerl=\u521B\u5EFAPERL\u7EC4\u4EF6\u7684XML\u914D\u7F6E\u6587\u4EF6
ImportComponentDialog.SelectDirectoryLabel=\u9009\u62E9\u4E00\u4E2A\u8DEF\u5F84\uFF1A
PushToPaletteActionProvider.Information=\u4FE1\u606F
PluginConstant.Borwser=\u6D4F\u89C8..
NewActionProvider.New=\u65b0
AbstractXMLConfigPage.EXTENSIONTip=\u63D2\u4EF6\u540D\u79F0\u5B57\u7B26\u4E32\u503C.\u6B64\u9009\u9879\u7528\u4E8E\u5916\u90E8\u7EC4\u4EF6.
ImportComponentDialog.ShowPaletteComponents=\u663E\u793A\u7EC4\u4EF6\u8C03\u8272\u677F
ComponentProjectPreferencePage.ChooseProject=\u9009\u62E9\u7EC4\u4EF6\u8BBE\u8BA1\u5DE5\u7A0B\u6587\u4EF6\u5939
WizardComponentFolderPage.ErrMSG5=\u7EC4\u4EF6\u65CF\u65E0\u5185\u5BB9
AbstractXMLConfigPage.BooleanTip=Boolean\u503C(\u771F\u6216\u5047).
AbstractXMLConfigPage.Delete=\u5220\u9664
WizardComponentFolderPage.ErrMSG3=\u7EC4\u4EF6\u5DF2\u5B58\u5728
WizardComponentFolderPage.ErrMSG2=\u7EC4\u4EF6\u540D\u4E3A\u7A7A
WizardComponentFolderPage.ErrMSG1=\u6CA1\u6709\u9009\u62E9\u7EC4\u4EF6\u7684\u8BED\u8A00
CreateComponentWizard.FillIn=\u586B\u5199\u7EC4\u4EF6\u5C5E\u6027
ImportComponentDialog.ImportCanceledMSG=\u5DF2\u53D6\u6D88\u4ECEPalette\u4E0A\u5BFC\u5165\u7EC4\u4EF6
ComponentProjectPreferencePage.Warning=\u8B66\u544A
AbstractXMLConfigPage.VERSIONTip=%u8ACB%u7528%u4E00%u500B%u5341%u9032%u4F4D%u6578%u503C%u4F86%u6A19%u8A18%u60A8%u7684%u65B0%u5143%u4EF6%u7248%u672C.
WizardJetFilesChoosePage.Directory=\u76EE\u5F55
WizardComponentFolderPage.Name=\u8fde\u63a5\u540d
RemoveResourceAction.Remove=\u5220\u9664
WizardJetFilesChoosePage.UseIconFrom=\u9009\u62E9\u56FE\u6807\uFF1A
ImportComponentDialog.ImportFinished=\u5BFC\u5165\u7EC4\u4EF6\u5B8C\u6210
AbstractXMLConfigPage.SetProperties=\u8BBE\u7F6E\u9009\u62E9\u5143\u7D20\u5C5E\u6027
ProjectSelectionDialog.ChooseFolder=\u5728\u6B64\u4F1A\u8BDD\u4E2D\u9009\u62E9\u4E00\u4E2A\u5DE5\u7A0B\u6587\u4EF6\u5939
ComponentProjectPreferencePage.ComponentProject=\u7EC4\u4EF6\u5DE5\u7A0B
ImportComponentDialog.ImportFinishedMSG=\u7EC4\u4EF6\u5BFC\u5165\u6210\u529F
AddExternalResourceAction.ErrorTitle=\u5916\u90E8\u6863\u6848\u9519\u8BEF
AbstractXMLConfigPage.MININPUTTip=\u6574\u6570\u503C.\u8FDE\u63A5\u6700\u5C0F\u503C\u8F93\u51FA
WizardJetFilesChoosePage.MainFile=\u4E3B\u6587\u4EF6
CreateComponentWizard.CreateXMLJava=\u521B\u5EFAJava\u7EC4\u4EF6\u7684XML\u914D\u7F6E\u6587\u4EF6
WizardJetFilesChoosePage.UseDefaultIcon=\u4F7F\u7528\u9ED8\u8BA4\u7684\u56FE\u6807
CopyComponentActionProvider.CopyComponent=\u590D\u5236\u8FD9\u4E2A\u7EC4\u4EF6
ImportComponentDialog.ChooseComponentsLabel=\u9009\u62E9\u8981\u5BFC\u5165\u7684\u7EC4\u4EF6\uFF1A
AddExternalResourceAction.ErrorMsg=\u9009\u5B9A\u7684\u5916\u90E8\u6863\u6848\u662F\u4E0D\u53EF\u7528\u6216\u4E0D\u5B58\u5728.
ComponentProjectManager.NewProject=\u65B0\u7EC4\u4EF6\u9879\u76EE
CopyFromPaletteActionProvider.Label=\u4ECEPalette\u590D\u5236\u7EC4\u4EF6
WizardJetFilesChoosePage.ChoseAIcon=\u9009\u62E9\u6309\u94AE
ComponentProjectPreferencePage.SelectPath=\u9009\u62E9\u7EC4\u4EF6\u5DE5\u7A0B\u8DEF\u5F84
AbstractXMLConfigPage.LINESTYLETip=\u6574\u6570\u503C.\u8FDE\u63A5\u7EBF\u98CE\u683C(1: Solid, 2: Dash, 3: Dot, 4: Dashdot)
WizardJetFilesChoosePage.EndFile=\u7ED3\u675F\u6587\u4EF6
PushToPaletteActionProvider.InformationMSG=\u7EC4\u4EF6\u5DF2\u53D1\u5E03\uFF0Cpalette\u5C06\u5237\u65B0\u3002
ProjectSelectionDialog.ComponentProject=\u7EC4\u4EF6\u5DE5\u7A0B
ComponentProjectPreferencePage.ButtonLabel0=\u786E\u5B9A
AbstractXMLConfigPage.New=\u65b0
CopyComponentValidator.ComponentExist=\u6B64\u7EC4\u4EF6\u5DF2\u5B58\u5728
ImportComponentDialog.WarningMSG=\u64CD\u4F5C\u5C06\u8986\u76D6\u5DE5\u4F5C\u533A\u5DF2\u5B58\u5728\u7684\u7EC4\u4EF6\u3002\u60A8\u771F\u7684\u8981\u5BFC\u5165\u5DF2\u9009\u62E9\u7684\u7EC4\u4EF6\u5417\uFF1F
CreateComponentWizard.MainProperties=\u4E3B\u8981\u5C5E\u6027
ComponentProjectManager.WarningMsg=\u5E95\u5C42\u6587\u4EF6\u7CFB\u7EDF\u4E0D\u533A\u5206\u5927\u5C0F\u5199\u3002\u5DF2\u7ECF\u5B58\u5728\u4E00\u4E2A\u9879\u76EE\u4E0E{0}\u51B2\u7A81
WizardComponentFolderPage.Family=\u65cf
PushToPaletteActionProvider.OK3=\u786E\u5B9A
PushToPaletteActionProvider.OK2=\u786E\u5B9A
CopyComponentActionProvider.CopyComponent2=\u590D\u5236\u7EC4\u4EF6
AbstractXMLConfigPage.CTYPETip=\u8FDE\u7ED3\u5668\u7C7B\u578B
AddResourceAction.ChooseResource=&\u9009\u62E9\u6DFB\u52A0jars\u548Czips:
ImportComponentDialog.WarningTitle=\u8B66\u544A
AddExternalResourceAction.AddELibs=\u6DFB\u52A0\u5916\u90E8\u5E93...
ImportComponentDialog.NoComponentsAvailable=\u6CA1\u6709\u53EF\u7528\u7684\u7EC4\u4EF6
AbstractXMLConfigPage.MINOUTPUTTip=\u6574\u6570\u503C\u3002\u8FDE\u63A5\u6700\u5C0F\u503C\u8F93\u51FA
ValidateComponentXMLActionProvider.ok=\u786E\u8BA4
ValidateComponentXMLActionProvider.result=\u9A8C\u8BC1\u7ED3\u679C
ValidateComponentXMLActionProvider.valid=\u7EC4\u4EF6XML\u6587\u4EF6\u5408\u6CD5\uFF01
ValidateComponentXMLActionProvider.validate=\u9A8C\u8BC1\u7EC4\u4EF6XML\u6587\u4EF6
PushToPaletteActionProvider.PushToPaletteActionProvider.result=\u9A8C\u8BC1\u7ED3\u679C

View File

@@ -0,0 +1,6 @@
FileWizard.0=\u6587\u4EF6\u5411\u5BFC
\n
ApplicationActionBarAdvisor.helpMenu=\u5E2E\u52A9(&H)
ApplicationActionBarAdvisor.fileMenu=\u6587\u4EF6(&F)
ShowViewAction.actionLabel=\u663E\u793A\u89C6\u56FE...(&v)
ApplicationActionBarAdvisor.windowMenu=\u7A97\u53E3(&W)

View File

@@ -12,10 +12,6 @@
// ============================================================================
package org.talend.componentdesigner;
import java.io.IOException;
import java.util.Properties;
import org.apache.log4j.PropertyConfigurator;
import org.eclipse.core.resources.IProject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.widgets.Shell;
@@ -46,18 +42,10 @@ public class ComponentDesigenerPlugin extends AbstractUIPlugin {
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
Properties prop = new Properties();
try {
prop.load(ComponentDesigenerPlugin.class.getResourceAsStream("log4j.properties")); //$NON-NLS-1$
} catch (IOException e) {
// e.printStackTrace();
org.talend.componentdesigner.exception.ExceptionHandler.process(e);
}
PropertyConfigurator.configure(prop);
}
/*
@@ -65,6 +53,7 @@ public class ComponentDesigenerPlugin extends AbstractUIPlugin {
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);

View File

@@ -1,47 +0,0 @@
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### direct messages to file hibernate.log ###
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### set log levels - for more verbose logging change 'info' to 'debug' ###
log4j.rootLogger=warn, stdout
#log4j.logger.org.hibernate=info
log4j.logger.org.hibernate=debug
### log HQL query parser activity
#log4j.logger.org.hibernate.hql.ast.AST=debug
### log just the SQL
#log4j.logger.org.hibernate.SQL=debug
### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=debug
### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=debug
### log HQL parse trees
#log4j.logger.org.hibernate.hql=debug
### log cache activity ###
#log4j.logger.org.hibernate.cache=debug
### log transaction activity
#log4j.logger.org.hibernate.transaction=debug
### log JDBC resource acquisition
#log4j.logger.org.hibernate.jdbc=debug
### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace

View File

@@ -124,6 +124,7 @@ public final class ComponentProjectManager {
// create the new project operation
IRunnableWithProgress op = new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException {
CreateProjectOperation op = new CreateProjectOperation(description,
Messages.getString("ComponentProjectManager.NewProject")); //$NON-NLS-1$
@@ -183,6 +184,7 @@ public final class ComponentProjectManager {
public void configProject(final IProject project, Shell shell) {
IRunnableWithProgress op = new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException {
monitor.beginTask("Configure project...", 4);
try {
@@ -222,15 +224,17 @@ public final class ComponentProjectManager {
if (monitor != null && monitor.isCanceled()) {
throw new OperationCanceledException();
}
if (project == null)
if (project == null) {
return;
}
IClasspathEntry[] entries = null;
List<IClasspathEntry> cpEntries = new ArrayList<IClasspathEntry>();
cpEntries.addAll(Arrays.asList(getDefaultJREClasspathEntries()));
cpEntries.addAll(getDefaultUtilClasspathEntries());
entries = (IClasspathEntry[]) cpEntries.toArray(new IClasspathEntry[cpEntries.size()]);
if (monitor != null)
entries = cpEntries.toArray(new IClasspathEntry[cpEntries.size()]);
if (monitor != null) {
monitor.worked(1);
}
IPath output = getOutputLocation();
IProgressMonitor subProgressMonitor = monitor == null ? new NullProgressMonitor() : new SubProgressMonitor(monitor, 2);
@@ -260,7 +264,6 @@ public final class ComponentProjectManager {
addLibClasspathEntries(ces, "org.talend.metadata.managment"); //$NON-NLS-1$
addLibClasspathEntries(ces, "org.talend.core"); //$NON-NLS-1$
addLibClasspathEntries(ces, "org.talend.designer.codegen"); //$NON-NLS-1$
addLibClasspathEntries(ces, "org.talend.commons"); //$NON-NLS-1$
return ces;
}

View File

@@ -12,11 +12,15 @@
// ============================================================================
package org.talend.componentdesigner.ui.preferencepage;
import java.io.File;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
@@ -27,8 +31,8 @@ import org.talend.componentdesigner.i18n.internal.Messages;
/**
* This class represents a preference page that is contributed to the Preferences dialog. By subclassing
* <samp>FieldEditorPreferencePage</samp>, we can use the field support built into JFace that allows us to create a
* page that is small and knows how to save, restore and apply itself.
* <samp>FieldEditorPreferencePage</samp>, we can use the field support built into JFace that allows us to create a page
* that is small and knows how to save, restore and apply itself.
* <p>
* This page is used to modify preferences only. They are stored in the preference store that belongs to the main
* plug-in class. That way, preferences can be accessed directly via the preference store.
@@ -50,6 +54,7 @@ public class ComponentProjectPreferencePage extends FieldEditorPreferencePage im
*
* @see org.eclipse.jface.preference.PreferencePage#performApply()
*/
@Override
protected void performApply() {
super.performApply();
}
@@ -59,29 +64,47 @@ public class ComponentProjectPreferencePage extends FieldEditorPreferencePage im
*
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
*/
@Override
public void createFieldEditors() {
Label l = new Label(getFieldEditorParent(), SWT.NONE);
l.setText(Messages.getString("ComponentProjectPreferencePage.ChooseProject")); //$NON-NLS-1$
GridData gd = new GridData();
gd.horizontalSpan = 3;
l.setLayoutData(gd);
filePathTemp = new DirectoryFieldEditor(PluginConstant.PROJECT_URL, Messages
.getString("ComponentProjectPreferencePage.ComponentProject"), //$NON-NLS-1$
filePathTemp = new DirectoryFieldEditor(PluginConstant.PROJECT_URL,
Messages.getString("ComponentProjectPreferencePage.ComponentProject"), //$NON-NLS-1$
getFieldEditorParent());
addField(filePathTemp);
// addModifyListener for the filePath text
filePathTemp.getTextControl(getFieldEditorParent()).addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
String newPath = filePathTemp.getTextControl(getFieldEditorParent()).getText();
File file = new File(newPath);
if (!file.exists() && !"".equals(newPath)) {
filePathTemp.showErrorMessage();
setValid(false);
} else {
setValid(true);
}
}
});
}
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
* @see
* org.eclipse.jface.preference.FieldEditorPreferencePage#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
@Override
public void propertyChange(PropertyChangeEvent event) {
super.propertyChange(event);
MessageDialog warningMessageDialog = new MessageDialog(getFieldEditorParent().getShell(), Messages
.getString("ComponentProjectPreferencePage.Warning"), null, //$NON-NLS-1$
MessageDialog warningMessageDialog = new MessageDialog(getFieldEditorParent().getShell(),
Messages.getString("ComponentProjectPreferencePage.Warning"), null, //$NON-NLS-1$
Messages.getString("ComponentProjectPreferencePage.WarningMSG"), MessageDialog.WARNING, //$NON-NLS-1$
new String[] { Messages.getString("ComponentProjectPreferencePage.ButtonLabel0") }, 0); //$NON-NLS-1$
warningMessageDialog.open();
@@ -92,6 +115,7 @@ public class ComponentProjectPreferencePage extends FieldEditorPreferencePage im
*
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
*/
@Override
public void init(IWorkbench workbench) {
}
@@ -100,6 +124,7 @@ public class ComponentProjectPreferencePage extends FieldEditorPreferencePage im
*
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#performOk()
*/
@Override
public boolean performOk() {
ComponentDesigenerPlugin.getDefault().creatComponentProj(filePathTemp.getStringValue());
return super.performOk();

View File

@@ -0,0 +1,3 @@
prefs.configuration.LINK_STYLE.AUTO=\u81EA\u52A8
prefs.configuration.title=\u8fd0\u884c\u6b65\u9aa4\u914d\u7f6e
prefs.configuration.LINK_STYLE=\u9ED8\u8BA4\u94FE\u63A5\u663E\u793A\u4E3A\uFF1A

View File

@@ -12,6 +12,9 @@
// ============================================================================
package org.talend.designer.abstractmap;
import java.util.HashMap;
import java.util.Map;
import org.apache.oro.text.regex.MalformedPatternException;
import org.apache.oro.text.regex.Pattern;
import org.apache.oro.text.regex.PatternCompiler;
@@ -23,16 +26,16 @@ import org.apache.oro.text.regex.Substitution;
import org.apache.oro.text.regex.Util;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.core.model.context.UpdateContextVariablesHelper;
import org.talend.core.model.process.AbstractExternalNode;
import org.talend.core.model.process.IElementParameter;
import org.talend.core.model.process.node.IExternalMapEntry;
import org.talend.core.model.process.node.MapperExternalNode;
import org.talend.designer.abstractmap.ui.prefs.MapPrefsConstants;
/**
* DOC amaumont class global comment. Detailled comment <br/>
*
*/
public abstract class AbstractMapComponent extends AbstractExternalNode {
public abstract class AbstractMapComponent extends MapperExternalNode {
/**
* DOC amaumont AbstractMapComponent constructor comment.
@@ -46,6 +49,7 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
*
* @see org.talend.core.model.process.IExternalNode#initialize()
*/
@Override
public void initialize() {
initElementParameters();
}
@@ -75,7 +79,7 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
protected boolean hasDataIntoExpression(Pattern pattern, PatternMatcher matcher, String expression) {
if (expression != null) {
if (matcher.contains(expression, pattern)) {
if (matcher.matches(expression, pattern)) {
return true;
}
}
@@ -87,6 +91,7 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
*
* @see org.talend.core.model.process.INode#useData(java.lang.String)
*/
@Override
public boolean useData(String name) {
if (super.useData(name)) {
return true;
@@ -103,6 +108,7 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
*
* @see org.talend.core.model.process.INode#renameData(java.lang.String, java.lang.String)
*/
@Override
public void renameData(String oldName, String newName) {
super.renameData(oldName, newName);
@@ -110,11 +116,17 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
}
private static Map<String, Pattern> patternsCache = new HashMap<String, Pattern>();
protected final Pattern getRenamePattern(String oldName) {
if (patternsCache.containsKey(oldName)) {
return patternsCache.get(oldName);
}
PatternCompiler compiler = new Perl5Compiler();
Pattern pattern = null;
try {
pattern = compiler.compile("\\b(" + UpdateContextVariablesHelper.replaceSpecialChar(oldName) + ")(\\b|\\_)"); //$NON-NLS-1$ //$NON-NLS-2$
patternsCache.put(oldName, pattern);
return pattern;
} catch (MalformedPatternException e) {
ExceptionHandler.process(e);
@@ -122,8 +134,15 @@ public abstract class AbstractMapComponent extends AbstractExternalNode {
}
}
private static Map<String, Perl5Substitution> substitutionsCache = new HashMap<String, Perl5Substitution>();
protected final Perl5Substitution getRenameSubstitution(String newName) {
return new Perl5Substitution(newName + "$2", Perl5Substitution.INTERPOLATE_ALL); //$NON-NLS-1$
if (substitutionsCache.containsKey(newName)) {
return substitutionsCache.get(newName);
}
Perl5Substitution ps = new Perl5Substitution(newName + "$2", Perl5Substitution.INTERPOLATE_ALL); //$NON-NLS-1$
substitutionsCache.put(newName, ps);
return ps;
}
/**

View File

@@ -14,5 +14,4 @@ AlfrescoOutputModelManager.prefixConflict=Kann das Modell nicht hinzuf
AlfrescoOutputModelManager.notYetAdded=Dieses Modell wurde noch nicht hinzugefügt.
AlfrescoModelDialog.type=Typ
AlfrescoModelDialog.addModelFailed=Modell hinzufügen fehlgeschlagen
AlfrescoModelDialog.modelTable.name=Name
AlfrescoModelDialog.remove=Entfernen

View File

@@ -10,4 +10,5 @@ AlfrescoOutputModelManager.prefixConflict=Ne mogu dodati model, prefix je u konf
AlfrescoOutputModelManager.notYetAdded=Taj model jo\u0161 nije dodan
AlfrescoModelDialog.addModelFailed=Dodavanje modela nije uspjelo
AlfrescoModelDialog.modelTable.name=Ime
AlfrescoModelDialog.remove=Ukloni
AlfrescoOutputManager.failedLoadModel=U\u010Ditavanje modela iz metapodataka komponente nije uspjelo, reinicijaliziram

View File

@@ -1,3 +1,4 @@
AlfrescoModelDialog.modelTable.title=Ba\u015Fl\u0131k
AlfrescoModelDialog.add=Ekle...
AlfrescoModelDialog.type=Tip
AlfrescoModelDialog.modelTable.name=Ad\u0131

View File

@@ -0,0 +1,20 @@
AlfrescoModelDialog.missingAspectDefinitions.msg=\u6240\u9009\u62E9\u7684\u65B9\u9762\u6D89\u53CA\u672A\u77E5\u7684Alfresco\u65B9\u9762: ${0}.\u8BF7\u63D0\u4F9Balfresco \u6A21\u578B\u6587\u4EF6\u5B9A\u4E49\u4ED6\u4EEC.
AlfrescoModelDialog.modelTable.title=\u6807\u9898
AlfrescoModelDialog.availableAspects=\u53EF\u7528\u56E0\u7D20
AlfrescoModelDialog.missingAspectDefinitions.title=\u7F3A\u7701\u65B9\u9762\u5B9A\u4E49
AlfrescoOutputManager.schemaError.title=schema\u9519\u8BEF
AlfrescoModelDialog.missingTypeDefinitions.msg=\u6240\u9009\u62E9\u7684\u7C7B\u578B\u6D89\u53CA\u672A\u77E5\u7684Alfresco\u7C7B\u578B\u6216\u65B9\u9762: ${0}.\uFF0C\u8BF7\u63D0\u4F9Balfresco \u6A21\u578B\u6587\u4EF6\u5B9A\u4E49\u4ED6\u4EEC.
AlfrescoModelDialog.missingTypeDefinitions.title=\u7F3A\u7701\u7C7B\u578B\u5B9A\u4E49
AlfrescoModelDialog.add=\u6DFB\u52A0...
AlfrescoOutputModelManager.errorReadingModel=\u8BFB\u53D6Alfresco\u7684\u6A21\u578B\u6587\u4EF6\u9519\u8BEF
AlfrescoModelDialog.aspects=\u65B9\u9762
AlfrescoOutputManager.schemaError.msg=\u8BF7\u5148\u540C\u6B65schema
AlfrescoOutputModelManager.alreadyAdded=\u8BE5\u6A21\u578B\u5DF2\u6DFB\u52A0
AlfrescoModelDialog.removeModelFailed=\u79FB\u9664\u6A21\u578B\u5931\u8D25
AlfrescoOutputModelManager.prefixConflict=\u65E0\u6CD5\u6DFB\u52A0\u6A21\u578B\uFF0C\u524D\u7F00\u4E0E\u4EE5\u524D\u6DFB\u52A0\u6A21\u578B\u51B2\u7A81
AlfrescoOutputModelManager.notYetAdded=\u8BE5\u6A21\u578B\u5C1A\u672A\u6DFB\u52A0
AlfrescoModelDialog.type=\u7C7B\u578B
AlfrescoModelDialog.addModelFailed=\u6DFB\u52A0\u6A21\u578B\u5931\u8D25
AlfrescoModelDialog.modelTable.name=\u8fde\u63a5\u540d
AlfrescoModelDialog.remove=\u5220\u9664
AlfrescoOutputManager.failedLoadModel=\u65E0\u6CD5\u52A0\u8F7D\u7684\u7EC4\u4EF6\u5143\u6570\u636E\u6A21\u578B, \u91CD\u65B0\u521D\u59CB\u5316

View File

@@ -0,0 +1 @@
pluginName=\u7EC4\u4EF6\u6A21\u5757

View File

@@ -53,3 +53,4 @@ BusinessNewDiagramFileWizard.SelectDiagramRootElement=\u0627\u062E\u062A\u0631 \
BusinessAbstractParser.StringFloatConvertError=\u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u062D\u0648\u064A\u0644 \u0642\u064A\u0645\u0629 \u0646\u0635\u064A\u0629 \u0625\u0644\u0649 \u0642\u064A\u0645\u0629 \u0639\u0634\u0631\u064A\u0629
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=\u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u062D\u0648\u064A\u0644 \u0642\u064A\u0645\u0629 \u0646\u0635\u064A\u0629 \u0625\u0644\u0649 \u0642\u064A\u0645\u0629 \u0628\u0627\u064A\u062A
DeleteAssignmentAction.DeleteAssignment=\u062D\u0630\u0641 \u062A\u0643\u0644\u064A\u0641
BusinessDiagramEditor.canNotSaveTitle=\u062A\u062D\u0630\u064A\u0631

View File

@@ -16,7 +16,6 @@ BusinessModelingAssistantProvider.AvaiableDomainModelElements=Verf
BusinessPaletteFactory.BidirectionalRelationShip=Bidirektionale Beziehung
BusinessPaletteFactory.CreateDirectionalRelationShip=Direktionale Beziehung hinzufügen
BusinessPaletteFactory.CreateBidirectionalRelationShip=Bidirektionale Beziehung hinzufügen
AssignmentPropertySection.Name=Name
CreateAssignmentCommand.CannotAssign=Zuordnung nicht möglich.
BusinessNewDiagramFileWizard.DiagramRootElement=Diagramm root-Element
BusinessNewDiagramFileWizard.NoDiagramRootElementSelectedError=Kein Diagram-Root Element ausgewählt
@@ -79,3 +78,4 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String-Wert l
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Neue Ecore-Diagramm-Datei initialisieren
BusinessTooltipFigure.assignedMeta={0} zugewiesene Metadaten
DeleteAssignmentAction.DeleteAssignment=Zuordnung löschen
BusinessDiagramEditor.canNotSaveTitle=Warnung

View File

@@ -75,3 +75,4 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=\u03A4\u03B9\u03BC\u
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=\u0391\u03C1\u03C7\u03B9\u03BA\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03BD\u03AD\u03BF\u03C5 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03BC\u03BC\u03B1\u03C4\u03BF\u03C2 Ecore
BusinessTooltipFigure.assignedMeta={0} \u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03B1 \u039C\u03B5\u03C4\u03B1\u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1
DeleteAssignmentAction.DeleteAssignment=\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u0391\u03BD\u03AC\u03B8\u03B5\u03C3\u03B7\u03C2
BusinessDiagramEditor.canNotSaveTitle=\u03A0\u03C1\u03BF\u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7

View File

@@ -79,3 +79,5 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String value cannot
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Initialize new Ecore diagram file
BusinessTooltipFigure.assignedMeta={0} assigned Metadata
DeleteAssignmentAction.DeleteAssignment=Delete Assignment
BusinessDiagramEditor.canNotSaveTitle=Warning
BusinessDiagramEditor.canNotSaveMessage=Business Model is not locked by user, can not save.

View File

@@ -46,3 +46,4 @@ BusinessAbstractParser.ValueOfIntegerIsExpected=Se esperaba un valor de tipo Int
BusinessNewDiagramFileWizard.SelectDiagramRootElement=Seleccione un elemento del diagrama principal:
BusinessAbstractParser.StringFloatConvertError=Valor del String no puede ser convertido a Float
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=Valor del String no puede ser convertido a Byte
BusinessDiagramEditor.canNotSaveTitle=Advertencia

View File

@@ -26,7 +26,7 @@ BusinessAbstractParser.ValueOfTypeByteIsExpected=Une valeur de type Byte est att
BusinessAbstractParser.ValueOfTypeCharacterIsExpected=Une valeur de type Character est attendue
BusinessPaletteFactory.ActionComment=Créer une nouvelle action
BusinessAbstractParser.ValueOfTypeStringIsExpected=Une valeur de type String est attendue
BusinessInitDiagramFileAction.Error=Erreur
BusinessInitDiagramFileAction.Error=ERROR
BusinessNewDiagramFileWizard.SelectRootElement=Sélectionnez un élément racine
RepositoryFactoryProxyLabelProvider.Deleted=(Supprimé)
BusinessPaletteFactory.TerminalComment=Créer un nouveau Terminal
@@ -45,7 +45,7 @@ BusinessPaletteFactory.InputComment=Cr
BusinessPaletteFactory.Data=Données
BusinessPaletteFactory.Ellipse=Ellipse
BusinessPaletteFactory.Input=Lecture
BusinessPaletteFactory.List=Liste
BusinessPaletteFactory.List=liste
BusinessPaletteFactory.Relationshop=Relation
BusinessAbstractParser.ValueOfBooleanIsExpected=Une valeur de type Boolean est attendue
BusinessPaletteFactory.decision=Décision
@@ -79,3 +79,4 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=Une valeur de cha
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Initialiser un nouveau fichier diagramme Ecore
BusinessTooltipFigure.assignedMeta={0} Métadonnée affectée
DeleteAssignmentAction.DeleteAssignment=Effacer l'affectation.
BusinessDiagramEditor.canNotSaveTitle=Avertissement

View File

@@ -64,3 +64,4 @@ BusinessAbstractParser.StringFloatConvertError=String nije mogu\u0107e konvertir
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String nije mogu\u0107e konvertirati u Byte
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Inicijaliziranje nove datoteke za Ecore dijagram
DeleteAssignmentAction.DeleteAssignment=Izbri\u0161i pridru\u017Eivanje
BusinessDiagramEditor.canNotSaveTitle=Upozorenje

View File

@@ -77,3 +77,4 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=Valore String non co
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Inizializzare un nuovo file di diagramma Ecore
BusinessTooltipFigure.assignedMeta={0} Metadati assegnati
DeleteAssignmentAction.DeleteAssignment=Elimina Assegnazione
BusinessDiagramEditor.canNotSaveTitle=Avvertimento

View File

@@ -79,3 +79,5 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String \u5024\u3092
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=\u65B0\u898F Ecore \u30C0\u30A4\u30A2\u30B0\u30E9\u30E0 \u30D5\u30A1\u30A4\u30EB\u306E\u521D\u671F\u5316
BusinessTooltipFigure.assignedMeta=\u5272\u308A\u5F53\u3066\u3089\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF {0}
DeleteAssignmentAction.DeleteAssignment=\u5272\u308A\u5F53\u3066\u306E\u524A\u9664
BusinessDiagramEditor.canNotSaveTitle=\u8B66\u544A
BusinessDiagramEditor.canNotSaveMessage=\u4ED6\u306E\u30E6\u30FC\u30B6\u304C\u64CD\u4F5C\u4E2D\u306E\u305F\u3081\u3001\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3002

View File

@@ -57,3 +57,4 @@ BusinessAbstractParser.StringFloatConvertError=Warto\u015B\u0107 typu znakowego
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=Warto\u015B\u0107 typu znakowego nie mo\u017Ce by\u0107 skonwertowana na warto\u015B\u0107 typu Byte
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Inicjalizuj nowy plik diagramu Ecore
DeleteAssignmentAction.DeleteAssignment=Skasuj przypisanie
BusinessDiagramEditor.canNotSaveTitle=Ostrze\u017Cenie

View File

@@ -64,3 +64,4 @@ BusinessNewDiagramFileWizard.SelectSemanticModelElement=Selecione o elemento de
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=Iniciar novo arquivo de Diagrama Ecore
BusinessTooltipFigure.assignedMeta=Metadados atribuidos à {0}
DeleteAssignmentAction.DeleteAssignment=Apagar Cessão
BusinessDiagramEditor.canNotSaveTitle=Advertência

View File

@@ -73,3 +73,4 @@ BusinessAbstractParser.StringValueDoesNotConvertToByteValue=\u0421\u0442\u0440\u
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0444\u0430\u0439\u043B \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B Ecore
BusinessTooltipFigure.assignedMeta={0} \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u044B \u043C\u0435\u0442\u0430-\u0434\u0430\u043D\u043D\u044B\u0435
DeleteAssignmentAction.DeleteAssignment=\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435
BusinessDiagramEditor.canNotSaveTitle=\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435

View File

@@ -1,3 +1,4 @@
AssignmentPropertySection.Type=Tip
AssignmentPropertySection.Name=Ad\u0131
BusinessInitDiagramFileAction.Error=Hata
BusinessPaletteFactory.InputComment=Yeni giri\u015F olu\u015Ftur

View File

@@ -0,0 +1,81 @@
BusinessInitDiagramFileAction.DiagramFile=\u56FE\u8868\u6587\u4EF6
BusinessAbstractParser.ValueOfLongIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3ALong
BusinessAbstractParser.ValueOfFloatIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3AFloat
BusinessPaletteFactory.DataComment=\u521B\u5EFA\u65B0\u7684\u6570\u636E
CreateDiagramAction.CreateBusinessModel=\u521B\u5EFA\u4E1A\u52A1\u6A21\u578B
BusinessCreationWizardPage.CreatenewBusinessDiagram=\u521B\u5EFA\u65B0\u7684\u903B\u8F91\u56FE\u3002
BusinessAbstractParser.StringIntegerConvertError=String\u7C7B\u578B\u7684\u503C\u4E0D\u80FD\u8F6C\u6362\u4E3AInteger\u7C7B\u578B
BusinessPaletteFactory.CreateGear=\u521B\u5EFA\u9F7F\u8F6E
SimpleBusinessCreationWizardPage.Title=\u65B0\u7684\u4E1A\u52A1\u6A21\u578B
BusinessNewDiagramFileWizard.CreateNewDiagram=\u521B\u5EFA\u65B0\u7684\u56FE\u8868
BusinessAbstractParser.UnknownLiteral=\u65E0\u6548\u7684\u6587\u5B57
BusinessAbstractParser.StringLongConverError=String\u7C7B\u578B\u7684\u503C\u4E0D\u80FD\u8F6C\u6362\u4E3ALong\u7C7B\u578B
AssignmentPropertySection.DeleteAssignment=\u5220\u9664\u8D4B\u503C
AssignmentPropertySection.Type=\u7C7B\u578B
BusinessModelingAssistantProvider.AvaiableDomainModelElements=\u65E0\u6548\u7684\u57DF\u6A21\u578B\u5143\u7D20
BusinessPaletteFactory.BidirectionalRelationShip=\u53CC\u5411\u5173\u8054
BusinessPaletteFactory.CreateDirectionalRelationShip=\u521B\u5EFA\u65B9\u5411\u5173\u8054
BusinessPaletteFactory.CreateBidirectionalRelationShip=\u521B\u5EFA\u53CC\u5411\u5173\u8054
AssignmentPropertySection.Name=\u540D\u79F0
CreateAssignmentCommand.CannotAssign=\u4E0D\u80FD\u5206\u914D\u3002
BusinessNewDiagramFileWizard.DiagramRootElement=\u56FE\u8868\u6839\u5143\u7D20
BusinessNewDiagramFileWizard.NoDiagramRootElementSelectedError=\u6CA1\u6709\u56FE\u8868\u6839\u5143\u7D20\u88AB\u9009\u4E2D
BusinessVisualIDRegistry.ParseError=\u4E0D\u80FD\u628A\u89C6\u56FE\u7C7B\u578B\u5F53\u4F5CvisialID\u6570\u5B57\u6765\u8F6C\u6362
OpenDiagramAction.EditBusinessModel=\u7F16\u8F91\u4E1A\u52A1\u6A21\u578B
BusinessAbstractParser.ValueOfTypeByteIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3AByte
BusinessAbstractParser.ValueOfTypeCharacterIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3ACharacter
BusinessPaletteFactory.ActionComment=\u521B\u5EFA\u65B0\u7684\u52A8\u4F5C
BusinessAbstractParser.ValueOfTypeStringIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3AString
BusinessInitDiagramFileAction.Error=\u9519\u8BEF
BusinessNewDiagramFileWizard.SelectRootElement=\u9009\u62E9\u56FE\u8868\u6839\u5143\u7D20
RepositoryFactoryProxyLabelProvider.Deleted=\uFF08\u5220\u9664\uFF09
BusinessPaletteFactory.TerminalComment=\u521B\u5EFA\u65B0\u7684\u4E2D\u65AD\u70B9
BusinessAbstractParser.ValueOfShortIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3AShort
BusinessPaletteFactory.DatabaseComment=\u521B\u5EFA\u65B0\u7684\u6570\u636E\u5E93
AssignmentPropertySection.Comment=\u6CE8\u91CA
SimpleBusinessCreationWizard.NewBusinessModel=\u65B0\u7684\u4E1A\u52A1\u578B
BusinessNewDiagramFileWizard.InvalidDiagramRootElementSelected=\u9009\u4E2D\u4E86\u65E0\u6548\u7684\u56FE\u8868\u6839\u5143\u7D20
BusinessInitDiagramFileAction.IntialNew=\u521D\u59CB\u5316\u65B0\u7684
FindAssignmentAction.FindAssignments=\u67E5\u627E\u5206\u914D\u4EFB\u52A1
RepositoryFactoryProxyLabelProvider.NotFound=\uFF08\u672A\u53D1\u73B0\uFF09
BusinessPaletteFactory.Terminal=\u4E2D\u65AD\u70B9
BusinessAbstractParser.InvalidInputAt=\u65E0\u6548\u7684\u8F93\u5165\u5728
BusinessPaletteFactory.Gear=\u9F7F\u8F6E
BusinessPaletteFactory.InputComment=\u521B\u5EFA\u65B0\u7684\u8F93\u5165
BusinessPaletteFactory.Data=\u6570\u636E
BusinessPaletteFactory.Ellipse=\u692D\u5706
BusinessPaletteFactory.Input=\u8F93\u5165
BusinessPaletteFactory.List=\u5217\u8868
BusinessPaletteFactory.Relationshop=\u5173\u7CFB
BusinessAbstractParser.ValueOfBooleanIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3ABoolean
BusinessPaletteFactory.decision=\u51B3\u7B56
BusinessPaletteFactory.Document=\u6587\u6863
BusinessModelingAssistantProvider.SelectDomainModelElement=\u9009\u62E9\u57DF\u6A21\u578B\u5143\u7D20
BusinessPaletteFactory.CreateActor=\u521B\u5EFA\u89D2\u8272
BusinessAbstractParser.StringDoubleConvertError=String\u7C7B\u578B\u7684\u503C\u4E0D\u80FD\u8F6C\u6362\u4E3ADoule\u7C7B\u578B
BusinessPaletteFactory.Actor=\u89D2\u8272
EditAction.Edit=\u7F16\u8F91\u5206\u914D\u4EFB\u52A1
BusinessCreationWizardPage.CreateBusinessDiagram=\u521B\u5EFA\u903B\u8F91\u56FE
BusinessPaletteFactory.Database=\u6570\u636E\u6E90
BusinessPaletteFactory.ListComment=\u521B\u5EFA\u65B0\u7684\u5217\u8868
BusinessPaletteFactory.DirectionalRelationShip=\u65B9\u5411\u5173\u8054
BusinessPaletteFactory.Action=\u52A8\u4F5C
BusinessPaletteFactory.RelationshopComment=\u521B\u5EFA\u65B0\u7684\u5173\u7CFB
BusinessInitDiagramFileAction.LoadFaild=\u6A21\u578B\u6587\u4EF6\u88C5\u8F7D\u5931\u8D25
BusinessPaletteFactory.DecisionComment=\u521B\u5EFA\u65B0\u7684\u51B3\u7B56
BusinessAbstractParser.ValueOfDoubleIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3ADouble
OpenDiagramAction.ReadBusinessModel=\u8BFB\u53D6\u4E1A\u52A1\u6A21\u578B
BusinessInitDiagramFileAction.UnableToLoadResource=\u4E0D\u80FD\u53BB\u88C5\u8F7D\u8D44\u6E90:
BusinessPaletteFactory.CreateEllipse=\u521B\u5EFA\u692D\u5706
BusinessNewDiagramFileWizard.DiagramFile=\u56FE\u8868\u6587\u4EF6
BusinessAbstractParser.StringShortConverError=String\u7C7B\u578B\u7684\u503C\u4E0D\u80FD\u8F6C\u6362\u4E3AShort\u7C7B\u578B
BusinessPaletteFactory.DocuemntComment=\u521B\u5EFA\u65B0\u7684\u6587\u6863
BusinessAbstractParser.ValueOfIntegerIsExpected=\u503C\u7684\u7C7B\u578B\u5E94\u8BE5\u4E3AInteger
BusinessNewDiagramFileWizard.SelectDiagramRootElement=\u9009\u62E9\u56FE\u8868\u6839\u5143\u7D20\uFF1A
BusinessNewDiagramFileWizard.SelectSemanticModelElement=\u9009\u62E9\u8981\u5728\u56FE\u8868\u4E0A\u63CF\u8FF0\u7684\u8BED\u4E49\u6A21\u578B\u5143\u7D20
BusinessAbstractParser.StringFloatConvertError=String\u7C7B\u578B\u7684\u503C\u4E0D\u80FD\u8F6C\u6362\u4E3AFloat\u7C7B\u578B
BusinessAbstractParser.StringValueDoesNotConvertToByteValue=String\u7C7B\u578B\u7684\u503C\u4E0D\u80FD\u8F6C\u6362\u4E3AByte\u7C7B\u578B
BusinessNewDiagramFileWizard.IntialNewEcoreDiagramFile=\u521D\u59CB\u5316\u65B0\u7684Ecore\u56FE\u8868\u6587\u4EF6
BusinessTooltipFigure.assignedMeta={0}\u5206\u914D\u5143\u6570\u636E
DeleteAssignmentAction.DeleteAssignment=\u5220\u9664\u8D4B\u503C
BusinessDiagramEditor.canNotSaveTitle=\u8B66\u544A

View File

@@ -82,3 +82,5 @@ RepositoryFactoryProxyLabelProvider.Deleted=\ (Deleted)
AssignmentPropertySection.Type=Type
AssignmentPropertySection.Name=Name
AssignmentPropertySection.Comment=Comment
BusinessDiagramEditor.canNotSaveTitle=Warning
BusinessDiagramEditor.canNotSaveMessage=Business Model is not locked by user, can not save.

View File

@@ -13,14 +13,25 @@
package org.talend.designer.business.diagram.custom.actions;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.EditorPart;
import org.osgi.framework.FrameworkUtil;
import org.talend.commons.exception.PersistenceException;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.ui.runtime.exception.MessageBoxExceptionHandler;
import org.talend.commons.ui.runtime.image.ECoreImage;
import org.talend.commons.ui.runtime.image.ImageProvider;
import org.talend.core.CorePlugin;
@@ -73,8 +84,8 @@ public class SaveAsBusinessModelWizard extends Wizard {
RepositoryNode repositoryNode = repositoryEditorInput.getRepositoryNode();
// see: RepositoryEditorInput.setRepositoryNode(IRepositoryNode repositoryNode)
if (repositoryNode == null) {
repositoryNode = (RepositoryNode) CorePlugin.getDefault().getRepositoryService().getRepositoryNode(
repositoryEditorInput.getItem().getProperty().getId(), false);
repositoryNode = (RepositoryNode) CorePlugin.getDefault().getRepositoryService()
.getRepositoryNode(repositoryEditorInput.getItem().getProperty().getId(), false);
}
IRepositoryService service = DesignerPlugin.getDefault().getRepositoryService();
@@ -120,13 +131,7 @@ public class SaveAsBusinessModelWizard extends Wizard {
isUpdate = isUpdate();
if (isUpdate) {
assginVlaues(oldProperty, property);
repositoryFactory.save(oldBusinessProcessItem);
// assign value
businessProcessItem = oldBusinessProcessItem;
update();
} else {
property.setId(repositoryFactory.getNextId());
@@ -152,6 +157,34 @@ public class SaveAsBusinessModelWizard extends Wizard {
return ok;
}
private void update() {
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
@Override
public void run(IProgressMonitor monitor) throws CoreException {
try {
assginVlaues(oldProperty, property);
repositoryFactory.save(oldBusinessProcessItem);
// assign value
businessProcessItem = oldBusinessProcessItem;
} catch (PersistenceException pe) {
throw new CoreException(new Status(IStatus.ERROR, FrameworkUtil.getBundle(this.getClass()).getSymbolicName(),
"persistance error", pe)); //$NON-NLS-1$
}
}
};
IWorkspace workspace = ResourcesPlugin.getWorkspace();
try {
ISchedulingRule schedulingRule = workspace.getRoot();
// the update the project files need to be done in the workspace runnable to avoid all notification
// of changes before the end of the modifications.
workspace.run(runnable, schedulingRule, IWorkspace.AVOID_UPDATE, null);
} catch (CoreException e) {
MessageBoxExceptionHandler.process(e.getCause());
}
}
public BusinessProcessItem getBusinessProcessItem() {
return this.businessProcessItem;
}

View File

@@ -82,6 +82,7 @@ import org.talend.designer.core.ui.views.jobsettings.JobSettingsView;
import org.talend.designer.core.ui.views.jobsettings.tabs.AbstractTabComposite;
import org.talend.designer.core.utils.EmfPropertyHelper;
import org.talend.designer.core.utils.KeyHelper;
import org.talend.repository.ProjectManager;
import org.talend.repository.model.IRepositoryNode;
import org.talend.repository.model.IRepositoryNode.ENodeType;
import org.talend.repository.model.IRepositoryNode.EProperties;
@@ -411,11 +412,12 @@ public class BusinessAssignmentComposite extends AbstractTabComposite {
}
}
}
if (ProjectManager.getInstance().isInCurrentMainProject(repositoryNode)) {
CorePlugin.getDefault().getDiagramModelService()
.addDeleteAssignmentAction(mgr, tableViewer.getSelection());
}
}
CorePlugin.getDefault().getDiagramModelService().addDeleteAssignmentAction(mgr, tableViewer.getSelection());
}
}
});
Menu menu = menuMgr.createContextMenu(tableViewer.getControl());

View File

@@ -24,6 +24,7 @@ import org.eclipse.gmf.runtime.diagram.ui.internal.editparts.NoteAttachmentEditP
import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer;
import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.StorageDiagramDocumentProvider;
import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.editor.FileDiagramEditor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IEditorInput;
@@ -57,13 +58,16 @@ import org.talend.designer.business.diagram.custom.dnd.BusinessDiagramDropTarget
import org.talend.designer.business.diagram.custom.edit.parts.BaseBusinessItemRelationShipEditPart;
import org.talend.designer.business.diagram.custom.edit.parts.BusinessItemShapeEditPart;
import org.talend.designer.business.diagram.custom.figures.BusinessItemShapeFigure;
import org.talend.designer.business.diagram.i18n.Messages;
import org.talend.designer.business.model.business.diagram.edit.parts.BusinessEditPartFactory;
import org.talend.designer.business.model.business.diagram.edit.parts.BusinessProcessEditPart;
import org.talend.designer.business.model.business.diagram.providers.BusinessDiagramActionProvider;
import org.talend.designer.core.ui.ActiveProcessTracker;
import org.talend.designer.core.ui.views.jobsettings.JobSettingsView;
import org.talend.repository.editor.RepositoryEditorInput;
import org.talend.repository.model.ERepositoryStatus;
import org.talend.repository.model.IProxyRepositoryFactory;
import org.talend.repository.model.IRepositoryService;
import org.talend.repository.model.RepositoryNode;
/**
@@ -171,10 +175,29 @@ public class BusinessDiagramEditor extends FileDiagramEditor implements IGotoMar
@Override
public void doSave(IProgressMonitor progressMonitor) {
super.doSave(progressMonitor);
if (repositoryEditorInput != null) {
DiagramResourceManager diagramResourceManager = new DiagramResourceManager();
BusinessProcessItem businessProcessItem = (BusinessProcessItem) repositoryEditorInput.getItem();
IRepositoryService service = CorePlugin.getDefault().getRepositoryService();
IProxyRepositoryFactory repFactory = service.getProxyRepositoryFactory();
try {
repFactory.updateLockStatus();
// For TDI-23825, if not lock by user try to lock again.
boolean locked = repFactory.getStatus(businessProcessItem) == ERepositoryStatus.LOCK_BY_USER;
if (!locked) {
repFactory.lock(businessProcessItem);
}
} catch (Exception e) {
ExceptionHandler.process(e);
}
ERepositoryStatus status = repFactory.getStatus(businessProcessItem);
if (!status.equals(ERepositoryStatus.LOCK_BY_USER) && !repFactory.getRepositoryContext().isEditableAsReadOnly()) {
MessageDialog.openWarning(getEditorSite().getShell(),
Messages.getString("BusinessDiagramEditor.canNotSaveTitle"), //$NON-NLS-1$
Messages.getString("BusinessDiagramEditor.canNotSaveMessage")); //$NON-NLS-1$
return;
}
super.doSave(progressMonitor);
DiagramResourceManager diagramResourceManager = new DiagramResourceManager();
diagramResourceManager.updateFromResource(businessProcessItem, repositoryEditorInput.getFile());
// remove the function of sve SVG file because the imported business model can't save SVG file.
// saveSVG(businessProcessItem);

View File

@@ -0,0 +1,2 @@
pluginName=\u7EC4\u4EF6\u6A21\u5757
format=\u683C\u5F0F

View File

@@ -87,7 +87,7 @@ FAMILY.Misc=Verschiedenes
FAMILY.MySQL=MySQL
FAMILY.Netezza=Netezza
FAMILY.OLAP_Cube=OLAP Würfel
FAMILY.Oracle=Dieser Quellcode wurde automatisiert generiert durch {0}
FAMILY.Oracle=Oracle
FAMILY.Orchestration=Instrumentation
FAMILY.Output= Ausgabe
FAMILY.ParAccel=Paraccel

View File

@@ -13,6 +13,7 @@ FAMILY.Access=Access
FAMILY.Business=negocio
FAMILY.Connections=Conexiones
FAMILY.DB2=DB2
FAMILY.eXist=Existe
FAMILY.File=Fichero
FAMILY.FireBird=Firebird
FAMILY.Greenplum=Greenplum
@@ -33,5 +34,6 @@ FAMILY.PostgreSQL=PostgreSQL
FAMILY.PostgresPlus=PostgresPlus
FAMILY.SQLite=SQLite
FAMILY.Sybase=Sybase
FAMILY.System=Sistema
FAMILY.Teradata=Teradata
FAMILY.Vertica=Vertica

View File

@@ -43,7 +43,7 @@ CodeGeneratorEmittersPoolFactory.dialogContent=La g
CodeGeneratorEmittersPoolFactory.operationCanceled=Opération annulée
ComponentsFactory.afterSystemComponent=après le(s) composant(s) système
ComponentsFactory.componentNotFound=Impossible de trouver le dossier du composant :
ComponentsFactory.load.components=Charger des composants...
ComponentsFactory.load.components=Chargement des composants...
ComponentsFactory.parentNotRecompiled=Attention\: les parents de *.inc.javajet ne sont pas recompilés.
ComponentsLocalProviderService.componentLoadError=Erreur de chargement du composant
ComponentsLocalProviderService.talendExchangeError=Erreur de Talend Exchange

View File

@@ -25,3 +25,4 @@ FAMILY.Input=Unos
FAMILY.MySQL=MySQL
FAMILY.Oracle=Oracle
FAMILY.PostgreSQL=PostgreSQL
FAMILY.XML=XML

View File

@@ -57,8 +57,8 @@ ComponentsProviderManager.unableLoad=\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\
ComponenttRunJobPreferencePage.label=tRunJob\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u5F8C\u3001\u5BFE\u5FDC\u30B8\u30E7\u30D6\u3092\u8868\u793A\u3057\u306A\u3044\u3002
ComponentJobletPreferencePage.label=Joblet\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u5F8C\u3001\u5BFE\u5FDC\u30B8\u30E7\u30D6\u3092\u8868\u793A\u3057\u306A\u3044\u3002
ComponenttRunJobPreferencePage.showCorrespondingJob=tRunJob\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u5F8C\u3001\u5BFE\u5FDC\u30B8\u30E7\u30D6\u3092\u8868\u793A\u3059\u308B\u3002
XsdValidationCacheManager.unableLoadxsd=XSD\u306E\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u306E\u30AD\u30E3\u30C3\u30B7\u30E5\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3002
XsdValidationCacheManager.unableSavexsd=XSD\u306E\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u306E\u30AD\u30E3\u30C3\u30B7\u30E5\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093
XsdValidationCacheManager.unableLoadxsd=XSD\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u306E\u30AD\u30E3\u30C3\u30B7\u30E5\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3002
XsdValidationCacheManager.unableSavexsd=XSD\u30D0\u30EA\u30C7\u30FC\u30B7\u30E7\u30F3\u306E\u30AD\u30E3\u30C3\u30B7\u30E5\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093
prefs.configuration.LINK_STYLE.AUTO=\u81EA\u52D5
prefs.configuration.LINK_STYLE.BEZIER_CURVE=\u66F2\u7DDA
prefs.configuration.LINK_STYLE.LINE=\u76F4\u7DDA(\u6700\u901F)

View File

@@ -0,0 +1,45 @@
CodeGeneratorEmittersPoolFactory.JETEmitters.NoPresent=JETEmitters\u5DE5\u7A0B\u4E0D\u5B58\u5728\uFF0C\u9700\u8981\u91CD\u65B0\u5B8C\u6574\u521D\u59CB\u5316\u3002
CodeGeneratorEmittersPoolFactory.Class.NotFound=\u6A21\u677F\u4F9D\u7136\u5B58\u5728\uFF0C\u4F46\u662F\u7C7B{0}
CodeGeneratorEmittersPoolFactory.PersitentData.Error=\u6301\u4E45\u5316\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58\uFF1A
CodeGeneratorEmittersPoolFactory.initMessage=\u521D\u59CB\u5316\u4EE3\u7801\u751F\u6210\u5F15\u64CE...
EmfEmittersPersistence.CodeGen.DataMissing=\u4EE3\u7801\u751F\u6210\u6570\u636E\u6D41\u5931\uFF0C\u5F00\u59CB\u91CD\u65B0\u751F\u6210\u4EE3\u7801\u3002
CodeGenerator.JET.TimeOut=JET\u521D\u59CB\u5316\u8D85\u65F6\uFF01
generatedcode.copyright.body4=\u4F60\u53EF\u4EE5\u5728\u5728GNU LGPL \u8BB8\u53EF\u8BC1\u4E0B\u652F\u914D\u8FD9\u4E9B\u4EE3\u7801
CodeGenerator.Node.NotFound=\u5728\u5F53\u524D
generatedcode.copyright.body3=\u4F60\u53EF\u4EE5\u5728www.talend.com\u53D1\u73B0\u66F4\u591A\u5173\u4E8ETalend\u4EA7\u54C1\u4FE1\u606F
generatedcode.copyright.body2=/ \u4F5C\u4E1A\u8BBE\u8BA1 (CodeGenerator version {0}).
generatedcode.copyright.body1=\u6E90\u4EE3\u7801\u88AB{0}\u81EA\u52A8\u751F\u6210
JetSkeletonManager.updateProblem=\u5F53\u66F4\u65B0\u6301\u4E45\u6570\u636E\u65F6\u51FA\u73B0\u9519\u8BEF
CodeGeneratorEmittersPoolFactory.codeThread=\u4EE3\u7801\u751F\u6210\u540E\u53F0\u7EBF\u7A0B
CodeGeneratorEmittersPoolFactory.componentCompiled=\u7EC4\u4EF6\u7F16\u8BD1{0}\u6BEB\u79D2
CodeGeneratorEmittersPoolFactory.failCompail=\u7EC4\u4EF6\u7F16\u8BD1\u5931\u8D25: \r\n
CodeGeneratorEmittersPoolFactory.initialException=\u521D\u59CB\u5316\u5F02\u5E38
CodeGeneratorEmittersPoolFactory.jetEmitterInitialException=\u521D\u59CB\u5316JetEmitter\u51FA\u9519
CodeGeneratorService.invalidLanguage1=\u65E0\u6548\u7684\u8BED\u8A00\u7C7B\u578B.
CodeGeneratorService.invalidLanguage2=\u65E0\u6548\u7684\u8BED\u8A00\u7C7B\u578B.
CodeGenInit.addMarkers=\u5DE5\u4F5C\u533A\u4E2D\u6DFB\u52A0\u6807\u8BB0
CodeGenInit.createProject=\u521B\u5EFA{0} \u5DE5\u7A0B
CodeGenInit.deleteProject=\u5220\u9664{0} \u5DE5\u7A0B
CodeGenInit.initTemplate=\u521D\u59CB\u5316\u6A21\u677F
CodeGenInit.removeLink=\u5220\u9664\u94FE\u63A5\u8D44\u6E90
CodeGenInit.saveWorkspace=\u4FDD\u5B58\u5DE5\u4F5C\u533A
DocumentRootImpl.mixed=\ (\u6DF7\u5408:
ComponentsFactory.afterSystemComponent=\u5728\u7CFB\u7EDF\u7EC4\u4EF6
ComponentsLocalProviderService.componentLoadError=\u7EC4\u4EF6\u52A0\u8F7D\u9519\u8BEF
ComponentsLocalProviderService.talendExchangeError=Talend Exchange\u9519\u8BEF
ComponentsPreferencePage.ButtonLabel0=\u786E\u5B9A
ComponentsPreferencePage.configuration.LINK_STYLE=\u9ED8\u8BA4\u94FE\u63A5\u663E\u793A\u4E3A\uFF1A
ComponentsPreferencePage.rowLimit=\u884c\u9650\u5236
ComponentsPreferencePage.WarningTitle=\u8B66\u544A
ComponenttRunJobPreferencePage.label=\u53CC\u51FBtRunJob\u7EC4\u4EF6\u540E\u4E0D\u663E\u793A\u5BF9\u5E94\u7684JOB
ComponenttRunJobPreferencePage.showCorrespondingJob=\u53CC\u51FBtRunJob\u7EC4\u4EF6\u540E\u663E\u793A\u5BF9\u5E94JOB
XsdValidationCacheManager.unableLoadxsd=\u52A0\u8F7Dxsd\u9A8C\u8BC1\u7F13\u5B58\u6587\u4EF6\u5931\u8D25
XsdValidationCacheManager.unableSavexsd=\u4FDD\u5B58xsd\u9A8C\u8BC1\u7F13\u5B58\u6587\u4EF6\u5931\u8D25
prefs.configuration.LINK_STYLE.AUTO=\u81EA\u52A8
FAMILY.Access=Access
FAMILY.Business=\u4E1A\u52A1
FAMILY.Business_Intelligence=\u5546\u4E1A\u667A\u80FD
FAMILY.File=\u6587\u4ef6
FAMILY.Input=\u8F93\u5165
FAMILY.Output=\u6807\u51c6\u8f93\u51fa
FAMILY.System=\u7CFB\u7EDF

View File

@@ -56,7 +56,7 @@
<page
category="org.talend.designer.codegen.components.localprovider.page1"
class="org.talend.designer.components.preference.labelformat.ComponentsFormatPreferencePage"
id="org.talend.designer.codegen.components.localprovider.page1"
id="org.talend.designer.codegen.components.localprovider.page2"
name="%format">
</page>
</extension>

View File

@@ -43,7 +43,7 @@
List< ? extends INode> processNodes = (List< ? extends INode>)process.getGeneratingNodes();
%>
return new RouteBuilder() {
public void configure() throws Exception {
public void configure() throws java.lang.Exception {
<%
for (INode node : processNodes) {
if (node.getComponent().getName().equals("cCXF")) {

View File

@@ -21,7 +21,7 @@
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
context.store(baos, "");
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
%>

View File

@@ -387,7 +387,7 @@ this.globalResumeTicket = true;//to run tPreJob
%>
try {
<%=statCatcherNode.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%
@@ -449,7 +449,7 @@ this.globalResumeTicket = false;//to run others jobs
while (runningThreadCount.getCount() > 0) {
try {
Thread.sleep(10);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
@@ -512,7 +512,7 @@ this.globalResumeTicket = true;//to run tPostJob
<%=statCatcherNode.getUniqueName() %>.addMessage(status==""?"end":status, (end-startTime));
try {
<%=statCatcherNode.getDesignSubjobStartNode().getUniqueName() %>Process(globalMap);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%
@@ -573,13 +573,26 @@ if (execStat) {
<%
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
}
}
<%
}
%>
private java.util.Map<String, Object> getJmsConnections() {
java.util.Map<String, Object> jmsConnections = new java.util.HashMap<String, Object>();
<%
for (INode momNode : momComponentsList) {
%>
jmsConnections.put("connection_<%=momNode.getUniqueName() %>", globalMap.get("connection_<%=momNode.getUniqueName() %>"));
jmsConnections.put("session_<%=momNode.getUniqueName() %>", globalMap.get("session_<%=momNode.getUniqueName() %>"));
<%
}
%>
return jmsConnections;
}
private void evalParam(String arg) {
if (arg.startsWith("--resuming_logs_dir_path")) {
resuming_logs_dir_path = arg.substring(25);

View File

@@ -29,7 +29,7 @@
%>
protected void doStart() throws Exception {
protected void doStart() throws java.lang.Exception {
// init uriMap first
initUriMap();
@@ -102,7 +102,7 @@ if(librariesSb.length()>0){
}
protected void doStop() throws Exception {
protected void doStop() throws java.lang.Exception {
super.doStop();
getCamelContexts().get(0).stop();
}
@@ -111,11 +111,11 @@ if(librariesSb.length()>0){
return getCamelContexts().get(0).createProducerTemplate();
}
public void stop() throws Exception {
public void stop() throws java.lang.Exception {
super.stop();
}
public void shutdown() throws Exception {
public void shutdown() throws java.lang.Exception {
super.shutdown();
}
@@ -149,7 +149,7 @@ if(librariesSb.length()>0){
}
%>
Thread.sleep(1000);
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}
@@ -312,7 +312,7 @@ for (IContextParameter ctxParam : params) {
try {
run();
} catch (Exception e) {
} catch (java.lang.Exception e) {
System.err.println(e.getMessage());
e.printStackTrace();
return 1;

View File

@@ -307,30 +307,30 @@ public String getExceptionStackTrace() {
return null;
}
private Exception exception = null;
private java.lang.Exception exception = null;
public Exception getException() {
public java.lang.Exception getException() {
if ("failure".equals(this.getStatus())) {
return this.exception;
}
return null;
}
private class TalendException extends Exception {
private class TalendException extends java.lang.Exception {
private static final long serialVersionUID = 1L;
private java.util.Map<String, Object> globalMap = null;
private Exception e = null;
private java.lang.Exception e = null;
private String currentComponent = null;
private TalendException(Exception e, String errorComponent, final java.util.Map<String, Object> globalMap) {
private TalendException(java.lang.Exception e, String errorComponent, final java.util.Map<String, Object> globalMap) {
this.currentComponent= errorComponent;
this.globalMap = globalMap;
this.e = e;
}
public Exception getException() {
public java.lang.Exception getException() {
return this.e;
}
@@ -457,17 +457,6 @@ private class TalendException extends Exception {
}
}
%>
} else {
<%
if (isRunInMultiThread ) {
%>
((java.util.Map)threadLocal.get()).put("status", "failure");
<%
} else {%>
status = "failure";
<%
}
%>
}
}
}
@@ -477,7 +466,7 @@ private class TalendException extends Exception {
for (INode node : processNodes) {
if (node.isActivate()) {
%>
public void <%=node.getUniqueName() %>_error(Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
public void <%=node.getUniqueName() %>_error(java.lang.Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
end_Hash.put("<%=node.getUniqueName() %>", System.currentTimeMillis());
<%
boolean ifBeforRunError = NodeUtil.checkComponentErrorConnectionAfterNode(node);
@@ -540,7 +529,7 @@ private class TalendException extends Exception {
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%
@@ -611,7 +600,7 @@ private class TalendException extends Exception {
for (INode node : processNodes) {
if (node.isDesignSubjobStartNode()) {
%>
public void <%=node.getUniqueName() %>_onSubJobError(Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
public void <%=node.getUniqueName() %>_onSubJobError(java.lang.Exception exception, String errorComponent, final java.util.Map<String, Object> globalMap) throws TalendException {
<%
List< ? extends IConnection> conns = node.getOutgoingConnections();
int count = 0;
@@ -661,7 +650,7 @@ resumeUtil.addLog("SYSTEM_LOG", "NODE:"+ errorComponent, "", Thread.currentThrea
<%
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
e.printStackTrace();
}
<%

View File

@@ -232,7 +232,7 @@ for (INode node : graphicalNodes) {
}
}
String delay = ElementParameterParser.getValue(node, "__DELAY__");
if(delay!=null && !delay.trim().equals("") && !"1000".equals(delay)){
if(delay!=null && !delay.trim().equals("")){
if(sb.length()==0){
sb.append("+\"?delay=\"+");
sb.append(delay);

View File

@@ -58,7 +58,7 @@ if(execStat){
<%
}
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
this.status = "failure";
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
if (localErrorCode != null) {

View File

@@ -203,7 +203,7 @@ if(execStat){
for (IConnection inLineConn : allInLineJobConns) {
%>
if(execStat){
runStat.updateStatOnConnection("<%=inLineConn.getUniqueName() %>", 3, "exec" + NB_ITERATE_<%=iterateNodeName %>);
runStat.updateStatOnConnection("<%=inLineConn.getUniqueName() %>", 3, 0);
}
<%
}

View File

@@ -36,7 +36,7 @@
if(isParallelize){
%>
} catch (Exception e) {
} catch (java.lang.Exception e) {
this.status = "failure";
Integer localErrorCode = (Integer) (((java.util.Map) threadLocal.get()).get("errorCode"));
if (localErrorCode != null) {
@@ -84,7 +84,7 @@
}
} catch (InterruptedException e) {
e.printStackTrace();
} catch (Exception te) {
} catch (java.lang.Exception te) {
throw new TalendException(te, currentComponent, globalMap);
}
<%
@@ -204,7 +204,7 @@
%>
} catch(Exception e) {
} catch(java.lang.Exception e) {
throw new TalendException(e, currentComponent, globalMap);
@@ -217,7 +217,7 @@
<%
}
%>
throw new java.lang.Error(error);
throw error;
}
<%

View File

@@ -134,8 +134,12 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
if (metadata !=null) {
for (IMetadataColumn column: metadata.getListColumns()) {
JavaType javaType = JavaTypesManager.getJavaTypeFromId(column.getTalendType());
String typeToGenerate = JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable());
if("id_Document".equals(javaType.getId())) {
typeToGenerate = javaType.getNullableClass().getCanonicalName();
}
%>
public <%= JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable()) %> <%=column.getLabel() %><%
public <%= typeToGenerate %> <%=column.getLabel() %><%
if(javaType == JavaTypesManager.CHARACTER && !column.isNullable()) {
%> = ' '<%
@@ -143,11 +147,11 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
%>;
public <%= JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable()) %> get<%=column.getLabel().substring(0, 1).toUpperCase()%><%=column.getLabel().substring(1)%> () {
public <%= typeToGenerate %> get<%=column.getLabel().substring(0, 1).toUpperCase()%><%=column.getLabel().substring(1)%> () {
return this.<%=column.getLabel()%>;
}
<%
if("id_Document".equals(javaType.getId())) {
if((conn.getLineStyle() == EConnectionType.FLOW_REF) && conn.getTarget().getUniqueName().startsWith("tXMLMap") && "id_Document".equals(javaType.getId())) {
%>
public java.util.Map<String,Object> documentLookupResult = new java.util.HashMap<String,Object>();
<%
@@ -560,6 +564,9 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
<%
} else if(javaType.isObjectBased() || typeToGenerate.equals("Geometry") || typeToGenerate.equals("Dynamic")) {
hasAtLeastOneObjectType = true;
if("id_Document".equals(javaType.getId())) {
typeToGenerate = javaType.getNullableClass().getCanonicalName();
}
%>
this.<%=column.getLabel() %> = (<%= typeToGenerate %>) dis.readObject();
<%
@@ -733,6 +740,9 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
<%
} else if(typeToGenerate.equals("Object") || typeToGenerate.equals("Geometry") || typeToGenerate.equals("BigDecimal") || typeToGenerate.equals("List") || typeToGenerate.equals("Dynamic") || typeToGenerate.equals("Document")) {
hasAtLeastOneObjectType = true;
if("id_Document".equals(javaType.getId())) {
typeToGenerate = javaType.getNullableClass().getCanonicalName();
}
%>
this.<%=column.getLabel() %> = (<%= typeToGenerate %>) ois.readObject();
<%
@@ -1005,7 +1015,7 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
try {
String currentMethodName = new Exception().getStackTrace()[0].getMethodName();
String currentMethodName = new java.lang.Exception().getStackTrace()[0].getMethodName();
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
if( resumeEntryMethodName == null || resumeIt || globalResumeTicket){//start the resume
globalResumeTicket = true;

View File

@@ -48,7 +48,6 @@ public class ComponentFileChecker {
checkFiles(currentFolder, languageSuffix);
File xmlMainFile = new File(currentFolder, ComponentFilesNaming.getInstance().getMainXMLFileName(currentFolder.getName(),
languageSuffix));
XsdValidationCacheManager xsdValidationCacheManager = XsdValidationCacheManager.getInstance();
long currentCRC = 0;
FileInputStream fis = null;
@@ -58,9 +57,8 @@ public class ComponentFileChecker {
// do not check anymore XSD when be in headless mode.
// check is mainly usefull for GUI to be able to check why component is not loaded after be developped.
// if be in headless mode (like commandline), it's supposed to use only stable components
if (!CommonsPlugin.isHeadless() && xsdValidationCacheManager.needCheck(xmlMainFile, currentCRC)) {
if (!CommonsPlugin.isHeadless()) {
checkXSD(xmlMainFile);
xsdValidationCacheManager.setChecked(xmlMainFile, currentCRC);
}
} catch (FileNotFoundException e) {
ExceptionHandler.process(e);

View File

@@ -14,33 +14,30 @@ package org.talend.designer.codegen.components.model;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.Priority;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubMonitor;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.EcoreUtil;
@@ -53,10 +50,14 @@ import org.osgi.framework.ServiceReference;
import org.osgi.service.packageadmin.PackageAdmin;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.exception.BusinessException;
import org.talend.commons.ui.runtime.CommonUIPlugin;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.utils.io.FilesUtils;
import org.talend.commons.utils.io.SHA1Util;
import org.talend.core.CorePlugin;
import org.talend.core.GlobalServiceRegister;
import org.talend.core.language.ECodeLanguage;
import org.talend.core.context.Context;
import org.talend.core.context.RepositoryContext;
import org.talend.core.language.LanguageManager;
import org.talend.core.model.component_cache.ComponentCachePackage;
import org.talend.core.model.component_cache.ComponentInfo;
@@ -67,7 +68,6 @@ import org.talend.core.model.components.ComponentUtilities;
import org.talend.core.model.components.IComponent;
import org.talend.core.model.components.IComponentsFactory;
import org.talend.core.model.general.Project;
import org.talend.core.model.properties.ComponentSetting;
import org.talend.core.ui.branding.IBrandingService;
import org.talend.core.utils.TalendCacheUtils;
import org.talend.designer.codegen.CodeGeneratorActivator;
@@ -78,14 +78,7 @@ import org.talend.designer.core.model.components.EmfComponent;
import org.talend.designer.core.model.components.manager.ComponentManager;
import org.talend.designer.core.model.process.AbstractProcessProvider;
import org.talend.designer.core.ui.editor.palette.TalendEntryEditPart;
import org.talend.repository.ProjectManager;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.talend.repository.model.ComponentsFactoryProvider;
/**
* Component factory that look for each component and load their information. <br/>
@@ -107,15 +100,15 @@ public class ComponentsFactory implements IComponentsFactory {
private static HashSet<IComponent> componentList = null;
private static List<IComponent> customComponentList = null;
private static HashSet<IComponent> customComponentList = null;
private List<IComponent> userComponentList = null;
private HashSet<IComponent> userComponentList = null;
private IProgressMonitor monitor;
private SubMonitor subMonitor;
private static Map<String, IComponent> componentsCache = new HashMap<String, IComponent>();
private static Map<String, Map<String, IComponent>> componentsCache = new HashMap<String, Map<String, IComponent>>();
// keep a list of the current provider for the selected component, to have the family translation
// only for components that are loaded
@@ -123,8 +116,6 @@ public class ComponentsFactory implements IComponentsFactory {
private static Map<String, AbstractComponentsProvider> componentsAndProvider = new HashMap<String, AbstractComponentsProvider>();
private Map<String, String> allComponents;
// 1. only the in the directory /components ,not including /resource
// 2. include the skeleton files and external include files
private static ArrayList<String> skeletonList = null;
@@ -133,117 +124,11 @@ public class ComponentsFactory implements IComponentsFactory {
private static final String INCLUDEFILEINJET_SUFFIX = ".inc.javajet"; //$NON-NLS-1$
private static final String FAMILY_SPEARATOR = "--FAMILY--"; //$NON-NLS-1$
private boolean isCreated = false;
private boolean isReset = false;
// public XmiResourceManager xmiResourceManager = new XmiResourceManager();
// this list of component is always needed, they must always be loaded at least, since they can be used for code
// generation indirectly.
// tFileInputFullRow + tSocketOutput : needed for DataViewer
private static final String[] COMPONENTS_ALWAYS_NEEDED = { "tPrejob", "tPostjob", //$NON-NLS-1$ //$NON-NLS-2$
"tJava", "tLibraryLoad", "tFileInputFullRow", "tSocketOutput", "tFilterRow", "tELTMysqlMap" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
private static boolean cleanDone = false;
public ComponentsFactory() {
if (!INCLUDEFILEINJET_SUFFIX.equals(".inc.javajet")) { //$NON-NLS-1$
ExceptionHandler.process(new IllegalStateException(Messages.getString("ComponentsFactory.parentNotRecompiled")), //$NON-NLS-1$
Priority.WARN);
}
}
private List<ComponentSetting> getComponentsFromProject() {
// TODO check components used from ref projects.
Project currentProject = ProjectManager.getInstance().getCurrentProject();
if (currentProject != null && currentProject.getEmfProject() != null) {
List<ComponentSetting> components = currentProject.getEmfProject().getComponentsSettings();
return components;
}
return Collections.emptyList();
}
private boolean isComponentVisible(String componentName) {
Boolean visible = Boolean.TRUE;
if (ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, componentName)) {
return true;
}
List<ComponentSetting> settingsFromCompName = new ArrayList<ComponentSetting>();
// here we just check if the component is visible somewhere in the settings.
// if it's visible in any category, we will load the component
// if the component is unknown (new component?), we will load also
// (technical components will always loaded by default as they're not saved in componentSettings)
// to avoid any problem, we also load by default the category named "Technical".
for (ComponentSetting componentSetting : getComponentsFromProject()) {
String name = componentSetting.getName();
if (name != null && name.equals(componentName)) {
settingsFromCompName.add(componentSetting);
// if (componentSetting.isHidden()) {
// // hide component only if hidden in all projects
// if (manager.getReferencedProjects(manager.getCurrentProject()).size() > 0
// && isHiddenInRefProjects(componentName)) {
// visible = Boolean.FALSE;
// } else {
// visible = Boolean.TRUE;
// componentSetting.setHidden(false);
// }
// } else {
// return true;
// }
if ("Technical".equals(componentSetting.getFamily())) { //$NON-NLS-1$
return true;
}
}
}
// load components those visible in any category
int hideCount = 0;
for (ComponentSetting componentSetting : settingsFromCompName) {
if (componentSetting.isHidden()) {
// hide component only if hidden in all projects
if (isHiddenInRefProjects(componentSetting)) {
hideCount++;
} else {
visible = Boolean.TRUE;
componentSetting.setHidden(false);
}
} else {
visible = Boolean.TRUE;
}
}
if (settingsFromCompName.size() > 0 && hideCount == settingsFromCompName.size()) {
visible = Boolean.FALSE;
}
return visible;
}
private boolean isHiddenInRefProjects(ComponentSetting settingInMain) {
if (settingInMain == null) {
return false;
}
int hiddenCount = 0;
ProjectManager manager = ProjectManager.getInstance();
List<Project> referencedProjects = manager.getReferencedProjects();
for (Project curProject : referencedProjects) {
List<ComponentSetting> componentsSettings = curProject.getEmfProject().getComponentsSettings();
for (ComponentSetting setting : componentsSettings) {
if (setting.isHidden() && setting.getName().equals(settingInMain.getName())
&& setting.getFamily().equals(settingInMain.getFamily())) {
hiddenCount++;
}
}
}
if (hiddenCount == referencedProjects.size()) {
return true;
}
return false;
}
private void init(boolean duringLogon) {
@@ -257,51 +142,38 @@ public class ComponentsFactory implements IComponentsFactory {
// TimeMeasure.begin("initComponents");
componentList = new HashSet<IComponent>();
customComponentList = new ArrayList<IComponent>();
customComponentList = new HashSet<IComponent>();
skeletonList = new ArrayList<String>();
userComponentList = new HashSet<IComponent>();
String installLocation = new Path(Platform.getConfigurationLocation().getURL().getPath()).toFile().getAbsolutePath();
componentToProviderMap = new HashMap<IComponent, AbstractComponentsProvider>();
boolean isNeedClean = TalendCacheUtils.cleanComponentCache();
boolean isNeedClean = !cleanDone && TalendCacheUtils.isSetCleanComponentCache();
cleanDone = true; // only check this parameter one time, or it will reinitialize things all the time...
isCreated = hasComponentFile(installLocation) && !isNeedClean;
if (isReset) {
isCreated = false;
}
ComponentsCache cache = ComponentManager.getInstance();
ComponentsCache cache = ComponentManager.getComponentCache();
try {
if (isCreated) {
ComponentsCache loadCache = loadComponentResource(installLocation);
cache.getComponentEntryMap().putAll(loadCache.getComponentEntryMap());
// if cache is created and empty, means we never loaded it before.
// if it was already loaded, then no need to go again, since it's a static variable, it's still in
// memory.
// it avoids to reload from disk again even more for commandline at each logon, since it's no use.
if (cache.getComponentEntryMap().isEmpty()) {
ComponentsCache loadCache = loadComponentResource(installLocation);
cache.getComponentEntryMap().putAll(loadCache.getComponentEntryMap());
}
} else {
cache.getComponentEntryMap().clear();
}
// check if any component is missing from any provider
// if yes, re-create the cache.
if (isCreated && isAnyComponentMissing()) {
cache.getComponentEntryMap().clear();
isCreated = false;
}
} catch (IOException e) {
ExceptionHandler.process(e);
cache.getComponentEntryMap().clear();
isCreated = false;
}
XsdValidationCacheManager.getInstance().load();
// XsdValidationCacheManager.getInstance().load();
// 1.Load Component from extension point: components_provider
if (isCreated) {
try {
reloadComponentsFromCache();
} catch (Exception e) {
ExceptionHandler.process(e);
// if any exception happen, reset all cache
cache.getComponentEntryMap().clear();
isCreated = false;
}
}
if (!isCreated) {
loadComponentsFromComponentsProviderExtension();
}
loadComponentsFromComponentsProviderExtension();
// TimeMeasure.step("initComponents", "loadComponentsFromProvider");
// 2.Load Component from extension point: component_definition
@@ -310,17 +182,11 @@ public class ComponentsFactory implements IComponentsFactory {
// TimeMeasure.step("initComponents", "reloadFromCache");
if (!isCreated) {
XsdValidationCacheManager.getInstance().save();
ComponentManager.saveResource();
isReset = false;
}
// TimeMeasure.step("initComponents", "createCache");
ComponentManager.saveResource(); // will save only if needed.
log.debug(componentList.size() + " components loaded in " + (System.currentTimeMillis() - startTime) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$
if (!duringLogon) {
// CorePlugin.getDefault().getRunProcessService().updateLibraries(new HashSet<String>(), null);
}
// TimeMeasure.step("initComponents", "updateLibraries");
// TimeMeasure.end("initComponents");
@@ -328,118 +194,23 @@ public class ComponentsFactory implements IComponentsFactory {
// TimeMeasure.display = false;
// TimeMeasure.displaySteps = false;
// TimeMeasure.measureActive = false;
}
private boolean isAnyComponentMissing() throws IOException {
Iterator it = ComponentManager.getInstance().getComponentEntryMap().entrySet().iterator();
List<String> componentsList = new ArrayList<String>();
while (it.hasNext()) {
Map.Entry<String, ComponentInfo> entry = (Map.Entry<String, ComponentInfo>) it.next();
componentsList.add(entry.getKey());
}
ECodeLanguage currentLanguage = LanguageManager.getCurrentLanguage();
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
for (AbstractComponentsProvider componentsProvider : componentsProviderManager.getProviders()) {
if (componentsProvider.getInstallationFolder().exists()) {
File source = componentsProvider.getInstallationFolder();
File[] childDirectories;
FileFilter fileFilter = new FileFilter() {
@Override
public boolean accept(final File file) {
return file.isDirectory() && file.getName().charAt(0) != '.'
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER)
&& isComponentVisible(file.getName());
}
};
if (source == null) {
continue;
}
childDirectories = source.listFiles(fileFilter);
for (File component : childDirectories) {
if (!componentsList.contains(component.getName())) {
String mainXmlFileName = ComponentFilesNaming.getInstance().getMainXMLFileName(component.getName(),
currentLanguage.getName());
File mainXmlFile = new File(component, mainXmlFileName);
if (mainXmlFile.exists()) {
return true;
}
// no xml file for this language, ignore it
}
}
if (!CommonUIPlugin.isFullyHeadless()) {
RepositoryContext repositoryContext = (RepositoryContext) CorePlugin.getContext().getProperty(
Context.REPOSITORY_CONTEXT_KEY);
if (repositoryContext == null) {
return;
}
}
return false;
}
/**
* DOC guanglong.du Comment method "reloadComponentsFromCache".
*
* @throws BusinessException
*/
private void reloadComponentsFromCache() throws BusinessException {
Map<String, String> bundleIdToPath = new HashMap<String, String>();
ComponentsCache cache = ComponentManager.getInstance();
Iterator it = cache.getComponentEntryMap().entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, ComponentInfo> entry = (Map.Entry<String, ComponentInfo>) it.next();
ComponentInfo info = entry.getValue();
String name = entry.getKey();
if (!isComponentVisible(name)) {
continue;
Project project = repositoryContext.getProject();
if (project == null) {
return;
}
IBrandingService service = (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class);
String[] availableComponents = service.getBrandingConfiguration().getAvailableComponents();
EmfComponent currentComp = new EmfComponent(info.getUriString(), info.getSourceBundleName(), name,
info.getPathSource(), cache, true);
// if the component is not needed in the current branding,
// and that this one IS NOT a specific component for code generation
// just don't load it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& !(ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
continue;
org.talend.core.model.properties.Project emfProject = project.getEmfProject();
if (emfProject == null) {
return;
}
// if the component is not needed in the current branding,
// and that this one IS a specific component for code generation,
// hide it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& (ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
currentComp.setVisible(false);
currentComp.setTechnical(true);
}
if (currentComp.getSourceBundleName().contains("camel")) {
currentComp.setPaletteType("CAMEL");
} else {
currentComp.setPaletteType("DI");
}
String applicationPath = bundleIdToPath.get(info.getSourceBundleName());
if (applicationPath == null) {
try {
applicationPath = FileLocator.getBundleFile(Platform.getBundle(info.getSourceBundleName())).getPath();
applicationPath = (new Path(applicationPath)).toPortableString();
} catch (IOException e2) {
ExceptionHandler.process(e2);
return;
}
bundleIdToPath.put(info.getSourceBundleName(), applicationPath);
}
if (!componentList.contains(currentComp)) {
currentComp.setResourceBundle(getComponentResourceBundle(currentComp, applicationPath + info.getUriString(),
info.getPathSource(), null));
File currentFile = new File(applicationPath + info.getUriString());
loadIcons(currentFile.getParentFile(), currentComp);
componentList.add(currentComp);
EList list = emfProject.getComponentsSettings();
if (list.isEmpty()) {
ComponentsFactoryProvider.saveComponentVisibilityStatus();
}
}
}
@@ -489,15 +260,6 @@ public class ComponentsFactory implements IComponentsFactory {
}
}
public void loadComponentsFromExtension(String id) {
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
for (AbstractComponentsProvider componentsProvider : componentsProviderManager.getProviders()) {
if (componentsProvider.getId() != null && componentsProvider.getId().equals(id)) {
loadComponents(componentsProvider);
}
}
}
private void loadComponents(AbstractComponentsProvider componentsProvider) {
if (componentsProvider != null) {
try {
@@ -518,8 +280,8 @@ public class ComponentsFactory implements IComponentsFactory {
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
AbstractComponentsProvider componentsProvider = componentsProviderManager.loadUserComponentsProvidersFromExtension();
// remove old user components
if (this.userComponentList != null) {
ComponentsCache cache = ComponentManager.getInstance();
if (!this.userComponentList.isEmpty()) {
ComponentsCache cache = ComponentManager.getComponentCache();
for (IComponent component : userComponentList) {
if (componentList != null && componentList.contains(component)) {
componentList.remove(component);
@@ -529,13 +291,12 @@ public class ComponentsFactory implements IComponentsFactory {
}
if (cache.getComponentEntryMap().get(component.getName()) != null) {
cache.getComponentEntryMap().remove(component.getName());
ComponentManager.setModified(true);
}
}
}
loadComponents(componentsProvider);
if (!CommonsPlugin.isHeadless()) {
ComponentManager.saveResource();
}
ComponentManager.saveResource();
}
private void removeOldComponentsUserFolder() {
@@ -556,16 +317,6 @@ public class ComponentsFactory implements IComponentsFactory {
private void loadComponentsFromFolder(String pathSource, AbstractComponentsProvider provider) {
if (pathSource != null) {
Path userComponent = new Path(pathSource);
Path templatePath = new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER + File.separatorChar
+ IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER + File.separatorChar
+ ComponentUtilities.getExtFolder(OLD_COMPONENTS_USER_INNER_FOLDER));
if (userComponent.equals(templatePath)) {
this.userComponentList = new ArrayList<IComponent>();
}
}
boolean isCustom = false;
if ("org.talend.designer.components.model.UserComponentsProvider".equals(provider.getId())
|| "org.talend.designer.components.exchange.ExchangeComponentsProvider".equals(provider.getId())) {
@@ -586,8 +337,7 @@ public class ComponentsFactory implements IComponentsFactory {
@Override
public boolean accept(final File file) {
return file.isDirectory() && file.getName().charAt(0) != '.'
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER)
&& isComponentVisible(file.getName());
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER);
}
};
@@ -624,19 +374,14 @@ public class ComponentsFactory implements IComponentsFactory {
if (context == null) {
context = CodeGeneratorActivator.getDefault().getBundle().getBundleContext();
}
// if (Platform.getProduct() != null) {
// context = Platform.getProduct().getDefiningBundle().getBundleContext();
// } else {
// context = CodeGeneratorActivator.getDefault().getBundle().getBundleContext();
// }
// if (context == null) {
// context = Platform.getProduct().getDefiningBundle().getBundleContext();
// if (context == null)
// context = CodeGeneratorActivator.getDefault().getBundle().getBundleContext();
// }
ServiceReference sref = context.getServiceReference(PackageAdmin.class.getName());
PackageAdmin admin = (PackageAdmin) context.getService(sref);
String bundleName;
if (!isCustom) {
bundleName = admin.getBundle(provider.getClass()).getSymbolicName();
} else {
bundleName = IComponentsFactory.COMPONENTS_LOCATION;
}
if (childDirectories != null) {
if (monitor != null) {
this.subMonitor = SubMonitor.convert(monitor,
@@ -654,26 +399,60 @@ public class ComponentsFactory implements IComponentsFactory {
}
try {
ComponentFileChecker.checkComponentFolder(currentFolder, getCodeLanguageSuffix());
File xmlMainFile = new File(currentFolder, ComponentFilesNaming.getInstance().getMainXMLFileName(
currentFolder.getName(), getCodeLanguageSuffix()));
if (CommonsPlugin.isHeadless() && componentsCache.containsKey(xmlMainFile.getAbsolutePath())) {
// In headless mode, we assume the components won't change and we will use a cache
componentList.add(componentsCache.get(xmlMainFile.getAbsolutePath()));
if (isCustom) {
customComponentList.add(componentsCache.get(xmlMainFile.getAbsolutePath()));
String currentXmlSha1 = null;
try {
currentXmlSha1 = SHA1Util.calculateFromTextStream(new FileInputStream(xmlMainFile));
} catch (FileNotFoundException e) {
// nothing since exceptions are directly in the check bellow
}
// Need to check if this component is already in the cache or not.
// if yes, then we compare the sha1... and if different we reload the component
// if component is not in the cache, of course just load it!
ComponentsCache cache = ComponentManager.getComponentCache();
boolean foundComponentIsSame = false;
ComponentInfo existingComponentInfoInCache = null;
if (cache.getComponentEntryMap().containsKey(currentFolder.getName())) {
EList<ComponentInfo> infos = cache.getComponentEntryMap().get(currentFolder.getName());
for (ComponentInfo info : infos) {
if (StringUtils.equals(bundleName, info.getSourceBundleName())) {
existingComponentInfoInCache = info;
if (StringUtils.equals(info.getSha1(), currentXmlSha1)) {
foundComponentIsSame = true;
}
break; // found component, no matter changed or not
}
}
continue;
}
if (foundComponentIsSame) {
// check if component is already loaded in memory, if yes it will only reload existing xml
// it should go here mainly for commandline or if use like ctrl+shift+f3
if (componentsCache.containsKey(xmlMainFile.getAbsolutePath())) {
IComponent componentFromThisProvider = null;
for (IComponent component : componentsCache.get(xmlMainFile.getAbsolutePath()).values()) {
if (component instanceof EmfComponent) {
if (bundleName.equals(((EmfComponent) component).getSourceBundleName())) {
componentFromThisProvider = component;
break;
}
}
}
if (componentFromThisProvider != null) {
// In headless mode, we assume the components won't change and we will use a cache
componentList.add(componentFromThisProvider);
if (isCustom) {
customComponentList.add(componentFromThisProvider);
}
continue;
}
}
}
if (!foundComponentIsSame) {
ComponentFileChecker.checkComponentFolder(currentFolder, getCodeLanguageSuffix());
}
String pathName = xmlMainFile.getAbsolutePath();
String bundleName;
if (!isCustom) {
bundleName = admin.getBundle(provider.getClass()).getSymbolicName();
} else {
bundleName = IComponentsFactory.COMPONENTS_LOCATION;
}
String applicationPath;
try {
applicationPath = FileLocator.getBundleFile(Platform.getBundle(bundleName)).getPath();
@@ -688,30 +467,38 @@ public class ComponentsFactory implements IComponentsFactory {
// pathName = C:\myapp\plugins\myplugin\components\mycomponent\mycomponent.xml
pathName = (new Path(pathName)).toPortableString();
// pathName = C:/myapp/plugins/myplugin/components/mycomponent/mycomponent.xml
pathName = pathName.replace(applicationPath, "");
pathName = pathName.replace(applicationPath, ""); //$NON-NLS-1$
// pathName = /components/mycomponent/mycomponent.xml
EmfComponent currentComp = new EmfComponent(pathName, bundleName, xmlMainFile.getParentFile().getName(),
pathSource, ComponentManager.getInstance(), isCreated);
// force to call some functions to update the cache. (to improve)
currentComp.isVisibleInComponentDefinition();
currentComp.isTechnical();
currentComp.getOriginalFamilyName();
currentComp.getTranslatedFamilyName();
currentComp.getPluginExtension();
currentComp.getVersion();
currentComp.getModulesNeeded();
currentComp.getPluginDependencies();
// end of force cache update.
pathSource, ComponentManager.getComponentCache(), foundComponentIsSame);
if (!foundComponentIsSame) {
// force to call some functions to update the cache. (to improve)
currentComp.isVisibleInComponentDefinition();
currentComp.isTechnical();
currentComp.getOriginalFamilyName();
currentComp.getTranslatedFamilyName();
currentComp.getPluginExtension();
currentComp.getVersion();
currentComp.getModulesNeeded();
currentComp.getPluginDependencies();
// end of force cache update.
EList<ComponentInfo> componentsInfo = cache.getComponentEntryMap().get(currentFolder.getName());
for (ComponentInfo cInfo : componentsInfo) {
if (cInfo.getSourceBundleName().equals(bundleName)) {
cInfo.setSha1(currentXmlSha1);
break;
}
}
ComponentManager.setModified(true); // this will force to save the cache later.
}
// if the component is not needed in the current branding,
// and that this one IS NOT a specific component for code generation
// just don't load it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& !(ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
if (availableComponents != null && !ArrayUtils.contains(availableComponents, currentComp.getName())
&& !(currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
continue;
}
@@ -720,10 +507,8 @@ public class ComponentsFactory implements IComponentsFactory {
// if the component is not needed in the current branding,
// and that this one IS a specific component for code generation,
// hide it
if (availableComponents != null
&& !ArrayUtils.contains(availableComponents, currentComp.getName())
&& (ArrayUtils.contains(COMPONENTS_ALWAYS_NEEDED, currentComp.getName())
|| currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
if (availableComponents != null && !ArrayUtils.contains(availableComponents, currentComp.getName())
&& (currentComp.getOriginalFamilyName().contains("Technical") || currentComp.isTechnical())) {
currentComp.setVisible(false);
currentComp.setTechnical(true);
}
@@ -754,9 +539,13 @@ public class ComponentsFactory implements IComponentsFactory {
}
}
if (CommonsPlugin.isHeadless()) {
componentsCache.put(xmlMainFile.getAbsolutePath(), currentComp);
// componentsCache only used bellow in case of headless (commandline) or if use like
// ctrl+shift+f3
String componentName = xmlMainFile.getAbsolutePath();
if (!componentsCache.containsKey(componentName)) {
componentsCache.put(componentName, new HashMap<String, IComponent>());
}
componentsCache.get(xmlMainFile.getAbsolutePath()).put(currentComp.getPaletteType(), currentComp);
} catch (MissingMainXMLComponentFileException e) {
log.trace(currentFolder.getName() + " is not a " + getCodeLanguageSuffix() + " component", e); //$NON-NLS-1$ //$NON-NLS-2$
} catch (BusinessException e) {
@@ -971,25 +760,7 @@ public class ComponentsFactory implements IComponentsFactory {
if (customComponentList == null) {
init(false);
}
return customComponentList;
}
/*
* (non-Javadoc)
*
* @see org.talend.core.model.components.IComponentsFactory#getComponentPath()
*/
@Override
public URL getComponentPath() throws IOException {
String componentsPath = IComponentsFactory.COMPONENTS_LOCATION;
IBrandingService breaningService = (IBrandingService) GlobalServiceRegister.getDefault().getService(
IBrandingService.class);
if (breaningService.isPoweredOnlyCamel()) {
componentsPath = IComponentsFactory.CAMEL_COMPONENTS_LOCATION;
}
Bundle b = Platform.getBundle(componentsPath);
URL url = FileLocator.toFileURL(FileLocator.find(b, new Path(IComponentsFactory.COMPONENTS_INNER_FOLDER), null));
return url;
return new ArrayList<IComponent>(customComponentList);
}
/*
@@ -1007,22 +778,16 @@ public class ComponentsFactory implements IComponentsFactory {
@Override
public void reset() {
componentsImageRegistry.clear();
componentList = null;
skeletonList = null;
customComponentList = null;
allComponents = null;
}
@Override
public void resetCache() {
componentsImageRegistry.clear();
componentList = null;
skeletonList = null;
customComponentList = null;
allComponents = null;
isReset = true;
if (!CommonsPlugin.isHeadless()) {
TalendEntryEditPart.resetImageCache();
}
@@ -1060,152 +825,6 @@ public class ComponentsFactory implements IComponentsFactory {
return translated;
}
/*
* (non-Javadoc)
*
* @see org.talend.core.model.components.IComponentsFactory#getAllComponentsCanBeProvided()
*/
@Override
public Map<String, String> getAllComponentsCanBeProvided() {
List source = new ArrayList();
if (allComponents == null) {
allComponents = new HashMap<String, String>();
source.add(IComponentsFactory.COMPONENTS_INNER_FOLDER);
ComponentsProviderManager componentsProviderManager = ComponentsProviderManager.getInstance();
source.addAll(componentsProviderManager.getProviders());
for (int i = 0; i < source.size(); i++) {
String path = null;
AbstractComponentsProvider provider = null;
Object object = source.get(i);
if (object instanceof String) {
path = (String) object;
} else if (object instanceof AbstractComponentsProvider) {
provider = ((AbstractComponentsProvider) object);
path = provider.getComponentsLocation();
}
if (path != null) {
// **if the components is from provider,should get components from provider path,see bug TDI-18036
File sourceFile = getComponentsLocation(path, provider);
File[] childDirectories;
FileFilter fileFilter = new FileFilter() {
@Override
public boolean accept(final File file) {
return file.isDirectory() && file.getName().charAt(0) != '.'
&& !file.getName().equals(IComponentsFactory.EXTERNAL_COMPONENTS_INNER_FOLDER);
}
};
if (sourceFile == null) {
ExceptionHandler.process(new Exception("Component Not Found")); //$NON-NLS-1$
continue;
}
childDirectories = sourceFile.listFiles(fileFilter);
if (childDirectories != null) {
for (File currentFolder : childDirectories) {
try {
ComponentFileChecker.checkComponentFolder(currentFolder, getCodeLanguageSuffix());
} catch (BusinessException e) {
continue;
}
File xmlMainFile = new File(currentFolder, ComponentFilesNaming.getInstance().getMainXMLFileName(
currentFolder.getName(), getCodeLanguageSuffix()));
List<String> families = getComponentsFamilyFromXML(xmlMainFile);
ComponentIconLoading cil = new ComponentIconLoading(componentsImageRegistry, currentFolder);
cil.getImage32();
if (families != null) {
for (String family : families) {
allComponents.put(family + FAMILY_SPEARATOR + currentFolder.getName(),
currentFolder.getName() + "_32");
if (object instanceof AbstractComponentsProvider) {
if (!componentsAndProvider.containsKey(family)) {
componentsAndProvider.put(family, (AbstractComponentsProvider) object);
}
}
}
}
}
}
}
}
}
return allComponents;
}
private List<String> getComponentsFamilyFromXML(File xmlMainFile) {
final DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();
final String familysTag = "FAMILIES"; //$NON-NLS-1$
final String header = "HEADER"; //$NON-NLS-1$
final String technical = "TECHNICAL"; //$NON-NLS-1$
List<String> familyNames = new ArrayList<String>();
DocumentBuilder analyseur;
try {
analyseur = fabrique.newDocumentBuilder();
analyseur.setErrorHandler(new ErrorHandler() {
@Override
public void error(final SAXParseException exception) throws SAXException {
throw exception;
}
@Override
public void fatalError(final SAXParseException exception) throws SAXException {
throw exception;
}
@Override
public void warning(final SAXParseException exception) throws SAXException {
throw exception;
}
});
Document document = analyseur.parse(xmlMainFile);
NodeList elementsByTagName = document.getElementsByTagName(header);
String technicalValue = null;
if (elementsByTagName != null && elementsByTagName.getLength() > 0) {
Node item = elementsByTagName.item(0);
NamedNodeMap attributes = item.getAttributes();
if (attributes != null) {
Node namedItem = attributes.getNamedItem(technical);
if (namedItem != null) {
technicalValue = namedItem.getNodeValue();
}
}
}
// techenical node are not visible ,so no need to return it's family
if (technicalValue == null || !"true".equals(technicalValue)) { //$NON-NLS-1$
NodeList element = document.getElementsByTagName(familysTag);
if (element != null && element.getLength() > 0) {
Node family = element.item(0);
NodeList childNodes = family.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
final Node item = childNodes.item(i);
if (item instanceof com.sun.org.apache.xerces.internal.dom.DeferredElementImpl
|| item instanceof org.apache.xerces.dom.DeferredElementImpl) {
familyNames.add(item.getTextContent());
}
}
}
}
} catch (ParserConfigurationException e) {
ExceptionHandler.process(e);
} catch (SAXException e) {
ExceptionHandler.process(e);
} catch (IOException e) {
ExceptionHandler.process(e);
}
return familyNames;
}
/*
* (non-Javadoc)
*

View File

@@ -16,6 +16,8 @@ import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.net.URL;
import java.util.HashSet;
import java.util.Set;
import org.apache.log4j.Logger;
import org.eclipse.core.runtime.FileLocator;
@@ -97,9 +99,11 @@ public class UserComponentsProvider extends AbstractComponentsProvider {
// synchroniz shared custom component
if (PluginChecker.isSVNProviderPluginLoaded()) {
Project currentProject = ProjectManager.getInstance().getCurrentProject();
if (currentProject != null) {
String projectLabel = currentProject.getTechnicalLabel();
Set<Project> allProjects = new HashSet<Project>();
allProjects.add(ProjectManager.getInstance().getCurrentProject());
allProjects.addAll(ProjectManager.getInstance().getReferencedProjects());
for (Project project : allProjects) {
String projectLabel = project.getTechnicalLabel();
String sourcePath = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath()
+ File.separatorChar + projectLabel + File.separatorChar
+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.COMPONENTS);

View File

@@ -87,6 +87,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
/**
* @see org.eclipse.jface.preference.FieldEditor#refreshValidState()
*/
@Override
protected void refreshValidState() {
super.refreshValidState();
}
@@ -95,6 +96,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
* Clears the error message from the message line if the error message is the error message from this field
* editor.
*/
@Override
protected void clearErrorMessage() {
if (canClearErrorMessage()) {
super.clearErrorMessage();
@@ -122,6 +124,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
addField(dbTypeField);
}
@Override
public void propertyChange(PropertyChangeEvent event) {
if (event.getSource() == filePathTemp) {
@@ -242,6 +245,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
addField(doNotShowJobletAfterDoubleClickCheckBoxField);
}
@Override
public void createFieldEditors() {
final Composite parent = getFieldEditorParent();
filePathTemp = new DirectoryFieldEditor(IComponentPreferenceConstant.USER_COMPONENTS_FOLDER,
@@ -253,10 +257,11 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
String oldPath = getPreferenceStore().getString(IComponentPreferenceConstant.USER_COMPONENTS_FOLDER);
@Override
public void modifyText(ModifyEvent e) {
String newPath = filePathTemp.getTextControl(parent).getText();
File file = new File(newPath);
if (!file.exists()) {
if (!file.exists() && !"".equals(newPath)) {
// getPreferenceStore().setValue(IComponentPreferenceConstant.USER_COMPONENTS_FOLDER, "");
filePathTemp.showErrorMessage();
setValid(false);
@@ -287,6 +292,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
}
@Override
public void init(IWorkbench workbench) {
}
@@ -299,6 +305,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
final IRunnableWithProgress runnable = new IRunnableWithProgress() {
@Override
public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
monitor.beginTask("Loading user component ......", 100);
Display display = Display.getCurrent();
@@ -308,6 +315,7 @@ public class ComponentsPreferencePage extends FieldEditorPreferencePage implemen
if (display != null) {
display.syncExec(new Runnable() {
@Override
public void run() {
IComponentsFactory components = ComponentsFactoryProvider.getInstance();

View File

@@ -19,6 +19,9 @@ import org.eclipse.core.runtime.ProgressMonitorWrapper;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.widgets.Display;
import org.talend.commons.ui.gmf.util.DisplayUtils;
import org.talend.commons.ui.runtime.CommonUIPlugin;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
/**
* DOC mhirt class global comment. Detailled comment <br/>
@@ -72,7 +75,19 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
* @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked()
*/
public void clearBlocked() {
Dialog.getBlockedHandler().clearBlocked();
if (CommonUIPlugin.isFullyHeadless()) {
return;
}
final Display disp = DisplayUtils.getDisplay();
disp.syncExec(new Runnable() {
@Override
public void run() {
Dialog.getBlockedHandler().clearBlocked();
}
});
}
/**
@@ -140,8 +155,20 @@ public class CodeGeneratorProgressMonitor extends ProgressMonitorWrapper impleme
*
* @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#setBlocked(org.eclipse.core.runtime.IStatus)
*/
public void setBlocked(IStatus reason) {
Dialog.getBlockedHandler().showBlocked(this, reason, taskName);
public void setBlocked(final IStatus reason) {
if (CommonUIPlugin.isFullyHeadless()) {
return;
}
final Display disp = DisplayUtils.getDisplay();
disp.syncExec(new Runnable() {
@Override
public void run() {
Dialog.getBlockedHandler().showBlocked(CodeGeneratorProgressMonitor.this, reason, taskName);
}
});
}
/**

View File

@@ -111,7 +111,7 @@ public class NodesTree {
for (INode node : nodes) {
String componentName = node.getComponent().getName();
if ((node.isStart()) && (node.isActivate()) && (!componentName.equals("tPrejob")) //$NON-NLS-1$
if ((node.isStart()) && (node.isActivate()) && node.isDesignSubjobStartNode() && !node.isThereLinkWithHash() && (!componentName.equals("tPrejob")) //$NON-NLS-1$
&& (!componentName.equals("tPostjob"))) { //$NON-NLS-1$
rootNodes.add(node);
}

View File

@@ -182,21 +182,17 @@ public class TalendJetEmitter extends JETEmitter {
project.create(new SubProgressMonitor(progressMonitor, 1));
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreatingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
IProjectDescription description = workspace.newProjectDescription(project.getName());
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
description.setLocation(null);
project.open(new SubProgressMonitor(progressMonitor, 1));
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
} else {
project.open(new SubProgressMonitor(progressMonitor, 5));
IProjectDescription description = project.getDescription();
// only in case it's one old workspace and got no nature defined.
if (!ArrayUtils.contains(description.getNatureIds(), JavaCore.NATURE_ID)) {
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
}
}
if (!project.isOpen()) {
project.open(new SubProgressMonitor(progressMonitor, 5));
project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(progressMonitor, 1));
}
IProjectDescription description = project.getDescription();
// only in case it's one old workspace and got no nature defined.
if (!ArrayUtils.contains(description.getNatureIds(), JavaCore.NATURE_ID)) {
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
}
javaProject = JavaCore.create(project);
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETInitializingProject_message", //$NON-NLS-1$

View File

@@ -24,8 +24,11 @@ import java.util.HashMap;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang.ArrayUtils;
import org.apache.log4j.Logger;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -37,14 +40,17 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.emf.codegen.CodeGenPlugin;
import org.eclipse.emf.codegen.jet.JETEmitter;
import org.eclipse.emf.codegen.jet.JETException;
import org.eclipse.emf.common.CommonPlugin;
import org.eclipse.emf.common.util.URI;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;
import org.talend.commons.CommonsPlugin;
import org.talend.commons.exception.BusinessException;
import org.talend.commons.ui.runtime.CommonUIPlugin;
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
import org.talend.commons.utils.StringUtils;
import org.talend.commons.utils.io.IOUtils;
@@ -105,6 +111,8 @@ public final class CodeGeneratorEmittersPoolFactory {
private static IStatus status = null;
private static DelegateProgressMonitor delegateMonitor = new DelegateProgressMonitor();
public static final String JET_PROJECT = ".JETEmitters"; //$NON-NLS-1$
/***/
private static class JobRunnable extends Thread {
@@ -114,6 +122,7 @@ public final class CodeGeneratorEmittersPoolFactory {
initializeStart = true;
}
@Override
public void run() {
status = doRun();
}
@@ -125,17 +134,19 @@ public final class CodeGeneratorEmittersPoolFactory {
TimeMeasure.measureActive = CommonsPlugin.isDebugMode();
TimeMeasure.begin("initialize Jet Emitters");
ComponentsFactoryProvider.saveComponentVisibilityStatus();
jetFilesCompileFail.clear();
IProgressMonitor monitorWrap = null;
if (!CommonsPlugin.isHeadless()) {
boolean headless = CommonUIPlugin.isFullyHeadless();
if (!headless) {
monitorWrap = new CodeGeneratorProgressMonitor(delegateMonitor);
} else {
monitorWrap = new NullProgressMonitor();
}
}
ECodeLanguage codeLanguage = LanguageManager.getCurrentLanguage();
initializeJetEmittersProject(monitorWrap);
CodeGeneratorInternalTemplatesFactory templatesFactory = CodeGeneratorInternalTemplatesFactoryProvider
.getInstance();
@@ -143,8 +154,6 @@ public final class CodeGeneratorEmittersPoolFactory {
templatesFactory.init();
IComponentsFactory componentsFactory = ComponentsFactoryProvider.getInstance();
// do not call init because it may be already loaded by
// ComponentsFactoryProvider.saveComponentVisibilityStatus
componentsFactory.getComponents();
long startTime = System.currentTimeMillis();
@@ -174,11 +183,9 @@ public final class CodeGeneratorEmittersPoolFactory {
if (components != null) {
ECodePart codePart = ECodePart.MAIN;
for (IComponent component : new ArrayList<IComponent>(components)) {
// if (component.isTechnical() || component.isVisible()) {
if (component.getAvailableCodeParts().size() > 0) {
initComponent(codeLanguage, jetBeans, codePart, component);
}
// }
monitorBuffer++;
if (monitorBuffer % 100 == 0) {
monitorWrap.worked(100);
@@ -194,6 +201,7 @@ public final class CodeGeneratorEmittersPoolFactory {
if (!CommonsPlugin.isHeadless()) {
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
CorePlugin.getDefault().getDesignerCoreService()
.synchronizeDesignerUI(new PropertyChangeEvent(this, ComponentUtilities.NORMAL, null, null));
@@ -245,6 +253,42 @@ public final class CodeGeneratorEmittersPoolFactory {
CorePlugin.getDefault().getRcpService().activeSwitchProjectAction();
return Status.OK_STATUS;
}
private void initializeJetEmittersProject(final IProgressMonitor progressMonitor) throws CoreException {
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject project = workspace.getRoot().getProject(JET_PROJECT);
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETPreparingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
File file = new File(workspace.getRoot().getLocation().append(JET_PROJECT).toPortableString());
if (file.exists() && !project.isAccessible()) {
// .metadata missing, so need to reimport project to add it in the metadata.
progressMonitor.subTask("Reinitilializing project " + project.getName()); //$NON-NLS-1$
project.create(new SubProgressMonitor(progressMonitor, 1));
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreatingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
} else if (!project.isAccessible()) {
// project was deleted manually on the disk. The delete here will remove infos from metadata
// then we'll be able to create a new clean project.
project.delete(true, progressMonitor);
}
if (!project.exists()) {
progressMonitor.subTask("JET creating project " + project.getName()); //$NON-NLS-1$
project.create(new SubProgressMonitor(progressMonitor, 1));
progressMonitor.subTask(CodeGenPlugin.getPlugin().getString("_UI_JETCreatingProject_message", //$NON-NLS-1$
new Object[] { project.getName() }));
}
if (!project.isOpen()) {
project.open(new SubProgressMonitor(progressMonitor, 5));
project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(progressMonitor, 1));
}
IProjectDescription description = project.getDescription();
// only in case it's one old workspace and got no nature defined.
if (!ArrayUtils.contains(description.getNatureIds(), JavaCore.NATURE_ID)) {
description.setNatureIds(new String[] { JavaCore.NATURE_ID });
project.setDescription(description, new SubProgressMonitor(progressMonitor, 1));
}
}
};
@@ -462,6 +506,7 @@ public final class CodeGeneratorEmittersPoolFactory {
if (!CommonsPlugin.isHeadless()) {
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
MessageDialog.openError(Display.getDefault().getActiveShell(),
Messages.getString("CodeGeneratorEmittersPoolFactory.operationCanceled"), //$NON-NLS-1$
@@ -706,24 +751,28 @@ public final class CodeGeneratorEmittersPoolFactory {
delegates.clear();
}
@Override
public void beginTask(String name, int totalWork) {
for (IProgressMonitor delegate : delegates) {
delegate.beginTask(name, totalWork);
}
}
@Override
public void done() {
for (IProgressMonitor delegate : delegates) {
delegate.done();
}
}
@Override
public void internalWorked(double work) {
for (IProgressMonitor delegate : delegates) {
delegate.internalWorked(work);
}
}
@Override
public boolean isCanceled() {
for (IProgressMonitor monitor : delegates) {
if (monitor.isCanceled()) {
@@ -733,22 +782,26 @@ public final class CodeGeneratorEmittersPoolFactory {
return cancelled;
}
@Override
public void setCanceled(boolean cancelled) {
this.cancelled = cancelled;
}
@Override
public void setTaskName(String name) {
for (IProgressMonitor delegate : delegates) {
delegate.setTaskName(name);
}
}
@Override
public void subTask(String name) {
for (IProgressMonitor delegate : delegates) {
delegate.subTask(name);
}
}
@Override
public void worked(int work) {
for (IProgressMonitor delegate : delegates) {
delegate.worked(work);

View File

@@ -0,0 +1,3 @@
Exchange=Training
DownloadComponenentsAction.Label=\u4E0B\u8F7D\u9009\u62E9\u7684\u7EC4\u4EF6
RefreshComponenentsAction.Label=\u5237\u65B0\u7EC4\u4EF6\u6E05\u5355

View File

@@ -1,5 +1,6 @@
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Instalar
AvailableExtensionsComposite.ViewDetail.WriteReview=Escribir un comentario
DownloadedExtensionsComposite.installOperateStatus=Instalar
MyExtensionsComposite.ModifyOperateStatus=Modificar
MyExtensionsComposite.DeleteOperateStatus=Borrar
MyExtensionsComposite.Form.Description=Descripción

View File

@@ -3,17 +3,19 @@ AvailableExtensionsComposite.ExtensionName=Nom de l'extension
AvailableExtensionsComposite.Version=Version
AvailableExtensionsComposite.Rating=Note
AvailableExtensionsComposite.Author=Auteur
AvailableExtensionsComposite.FilterTitle=Filtre
AvailableExtensionsComposite.ViewDetail.installOperateStatus=Installer
AvailableExtensionsComposite.ViewDetail.WriteReview=Donnez votre avis
AvailableExtensionsComposite.ViewDetail.InsertionReviewFailureTip=Veuillez vérifier.
DownloadedExtensionsComposite.DownloadedVersion=Version téléchargée
DownloadedExtensionsComposite.DownloadDate=Date de téléchargement
DownloadedExtensionsComposite.installedOperateStatus=Installé
DownloadedExtensionsComposite.updateOperateStatus=Mettre à jour
DownloadedExtensionsComposite.updateOperateStatus=UPDATE
MyExtensionsComposite.Version=Version
MyExtensionsComposite.UploadDate=Date du chargement
MyExtensionsComposite.AddNewExtensionTitle=Ajouter une nouvelle extension
MyExtensionsComposite.UpLoadNewVersionOperateStatus=Charger une nouvelle version
MyExtensionsComposite.UpdateOperateStatus=UPDATE
MyExtensionsComposite.ModifyOperateStatus=Modifier
MyExtensionsComposite.DeleteOperateStatus=DELETE
MyExtensionsComposite.Form.Return=Retourner

View File

@@ -4,5 +4,6 @@ MyExtensionsComposite.Version=Verzija
MyExtensionsComposite.UpdateOperateStatus=A\u017Euriraj
MyExtensionsComposite.DeleteOperateStatus=Obri\u0161i
MyExtensionsComposite.Form.Compatibility.Version=Verzija
MyExtensionsComposite.Form.Description=Opis
ImportExchangeDialog.WARNING=Upozorenje
ImportExchangeDialog.REFRESH_BUTTON=Osvje\u017Ei

View File

@@ -2,13 +2,19 @@ AvailableExtensionsComposite.Version=Versione
AvailableExtensionsComposite.Author=Autore
AvailableExtensionsComposite.FilterTitle=Filtro
DownloadedExtensionsComposite.installedOperateStatus=Installato
DownloadedExtensionsComposite.updateOperateStatus=Aggiornato
MyExtensionsComposite.Version=Versione
MyExtensionsComposite.UpdateOperateStatus=Aggiornato
MyExtensionsComposite.DeleteOperateStatus=Cancellare
MyExtensionsComposite.Form.Compatibility.Version=Versione
MyExtensionsComposite.Form.Description=Descrizione
MyExtensionsComposite.Form.Upload=Carica
MyExtensionsComposite.Form.Upload.Browse=Naviga...
ImportExchangeDialog.dialogTitle=Seleziona oggetto da Talend Exchange
ImportExchangeDialog.WARNING=Avvertimento
ImportExchangeDialog.LATEST_REVISION=Ultima Revisione
ImportExchangeDialog.EXTENSION_DESCRIPTION=Descrizione estensione
ImportExchangeDialog.JOB_BUTTON=Progetti job
ImportExchangeDialog.DOWNLOAD_JOB=Scarica alcuni Job Designs...
ImportExchangeDialog.ROUTINES_BUTTON=Routine
ImportExchangeDialog.REFRESH_BUTTON=Aggiorna

View File

@@ -1,7 +1,13 @@
AvailableExtensionsComposite.Version=Versie
DownloadedExtensionsComposite.updateOperateStatus=Update
MyExtensionsComposite.Version=Versie
MyExtensionsComposite.UpdateOperateStatus=Update
MyExtensionsComposite.ModifyOperateStatus=Wijzigen
MyExtensionsComposite.DeleteOperateStatus=Verwijderen
MyExtensionsComposite.Form.Compatibility.Version=Versie
MyExtensionsComposite.Form.Upload.Browse=Blader...
RefreshJob.FindExtensions.Title=Beschikbare extensies zoeken
RefreshJob.FindExtensions.Message=Extensies zoeken op Exchange...
UploadRevisionJob.Title=Upload Revisie...
UploadRevisionJob.Message=Upload Revisie...
UploadRevisionAction.InstalledFailure=Upload Revisie gefaald.

View File

@@ -2,3 +2,4 @@ AvailableExtensionsComposite.Version=Versiyon
MyExtensionsComposite.Version=Versiyon
MyExtensionsComposite.DeleteOperateStatus=Sil
MyExtensionsComposite.Form.Compatibility.Version=Versiyon
MyExtensionsComposite.Form.Description=Aç\u0131klama

View File

@@ -0,0 +1,27 @@
ExchangeView.Exchange=Training
AvailableExtensionsComposite.ExtensionName=\u6269\u5C55\u540D
AvailableExtensionsComposite.Version=\u7248\u672C
AvailableExtensionsComposite.Author=\u4F5C\u8005
AvailableExtensionsComposite.FilterTitle=\u8FC7\u6EE4
DownloadedExtensionsComposite.ExtensionName=\u6269\u5C55\u540D
DownloadedExtensionsComposite.installedOperateStatus=\u5DF2\u88C5\u8F7D
DownloadedExtensionsComposite.updateOperateStatus=\u66F4\u65B0
MyExtensionsComposite.ExtensionName=\u6269\u5C55\u540D
MyExtensionsComposite.Version=\u7248\u672C
MyExtensionsComposite.UpdateOperateStatus=\u66F4\u65B0
MyExtensionsComposite.DeleteOperateStatus=\u5220\u9664
MyExtensionsComposite.Form.Compatibility.Version=\u7248\u672C
MyExtensionsComposite.Form.Description=\u5FC5\u8981\u7684
MyExtensionsComposite.Form.Upload=\u4E0A\u4F20
MyExtensionsComposite.Form.Upload.Browse=\u6D4F\u89C8...
DownloadComponenentsAction.DownloadTaskName=\u4ECEURL\u4E0B\u8F7D\u6587\u4EF6
ImportExchangeDialog.dialogTitle=\u4ECETalend Exchange\u9009\u62E9\u4E00\u4E2A\u9879\u76EE
ImportExchangeDialog.WARNING=\u8B66\u544A
ImportExchangeDialog.EXTENSION_NAME=\u6269\u5C55\u540D
ImportExchangeDialog.LATEST_REVISION=\u6700\u65B0\u7248\u672C
ImportExchangeDialog.JOB_BUTTON=\u4F5C\u4E1A\u8BBE\u8BA1
ImportExchangeDialog.DOWNLOAD_JOB=\u4E0B\u8F7D\u4F5C\u4E1A\u8BBE\u8BA1
ImportExchangeDialog.ROUTINES_BUTTON=\u5E38\u89C4
ImportExchangeDialog.TEMPLATES_PROGRESSBAR=\u4E0B\u8F7DSQL\u6A21\u677F......
ImportExchangeDialog.REFRESH_BUTTON=\u5237\u65B0
ImportExchangeDialog.OPERATION_CANCELLED=\u64CD\u4F5C\u5DF2\u53D6\u6D88

View File

@@ -80,6 +80,24 @@
checkedType = "only"
filtervalue = document.getElementById(checkedType).value;
}
<!-- validate the createNewExtension text start-->
var labelValidate = document.getElementById("extension_label").value;
var lastVersionAvailableValidate = document.getElementById("lastVersionAvailable").value;
var filename = document.getElementById("filename").value;
if(labelValidate==0){
alert("Extension Title is empty");
}else if(labelValidate=="null"){
alert("Extension Title can not be null");
}else if(lastVersionAvailableValidate==0){
alert("Initial Version is empty");
}else if(lastVersionAvailableValidate=="null"){
alert("Initial Version can not be null");
}else if(filename==0){
alert("Please input a vaild File path");
}
<!-- validate the createNewExtension text end-->
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
var filter = "filter:" + "'" + filtervalue + "'";
@@ -116,6 +134,15 @@
checkedType = "only"
filtervalue = document.getElementById(checkedType + "_update").value;
}
<!-- validate the updateExtension text start-->
var lastVersionAvailable_updateValidate = document.getElementById("lastVersionAvailable_update").value;
if(lastVersionAvailable_updateValidate==0){
alert("New Version is empty");
}else if(lastVersionAvailable_updateValidate=="null"){
alert("New Version can not be null");
}
<!-- validate the updateExtension text end-->
var listVersionCompatibles = "listVersionCompatibles:" + "'" + checkedType + "'";
var filter = "filter:" + "'" + filtervalue + "'";

View File

@@ -162,6 +162,14 @@ public class AvailableCompositeProvider implements IIntroXHTMLContentProvider {
if (fAvailableExtensions != null) {
for (int i = 0; i < fAvailableExtensions.size(); i++) {
ComponentExtension extension = fAvailableExtensions.get(i);
// hide null entries directly
if (extension.getLabel().equals("null")) {
continue;
}
// set 0.1 as a default version
if (extension.getVersionExtension().equals("") || extension.getVersionExtension().equals("null")) {
extension.setVersionExtension("0.1");
}
Element trExtension = dom.createElement("tr");
Element tdExtension = dom.createElement("td");

View File

@@ -165,7 +165,14 @@ public class DownloadExtensionProvider implements IIntroXHTMLContentProvider {
while (ite.hasNext()) {
count++;
ComponentExtension object = (ComponentExtension) ite.next();
// hide null entries directly
if (object.getLabel().equals("null")) {
continue;
}
// set 0.1 as a default version
if (object.getDownloadedVersion().equals("") || object.getDownloadedVersion().equals("null")) {
object.setDownloadedVersion("0.1");
}
Element trExtension = dom.createElement("tr");
Element tdExtension = dom.createElement("td");
@@ -189,6 +196,7 @@ public class DownloadExtensionProvider implements IIntroXHTMLContentProvider {
style = style + ";background:#F7F7F7";
}
tdExtension.setAttribute("style", style);
// set 0.1 as a default version
tdExtension.appendChild(dom.createTextNode(object.getDownloadedVersion()));
trExtension.appendChild(tdExtension);
@@ -234,7 +242,7 @@ public class DownloadExtensionProvider implements IIntroXHTMLContentProvider {
String url = "http://org.eclipse.ui.intro/runAction?pluginId=org.talend.designer.components.exchange&"
+ "class=org.talend.designer.components.exchange.ui.actions.UpdateAction&"
+ "id=org.talend.designer.components.exchange.ui.actions.UpdateAction&"
+ AvailableCompositeProvider.NUMBER + count;
+ AvailableCompositeProvider.NUMBER + "=" + count;
;
hyperlink.setAttribute("href", url);
Text view = dom.createTextNode(Messages

View File

@@ -527,7 +527,7 @@ public class ExchangeWebService {
tokenMessage.put("versionCompatibles", listVersionCompatibles);
tokenMessage.put("filename", new Path(filename).lastSegment());
tokenMessage.put("content", asHex(fileBytes));
tokenMessage.put("description", description);
tokenMessage.put("description", description.replace(" ", "%20"));
tokenMessage.put("agreement", agreement);
JSONObject token = new us.monoid.json.JSONObject();
token.put("newRevision", tokenMessage);
@@ -576,7 +576,7 @@ public class ExchangeWebService {
tokenMessage.put("typeExtension", typeExtension);
tokenMessage.put("version", version);
tokenMessage.put("listVersionCompatibles", listVersionCompatibles);
tokenMessage.put("description", description);
tokenMessage.put("description", description.replace(" ", "%20"));
tokenMessage.put("agreement", agreement);
JSONObject token = new us.monoid.json.JSONObject();
token.put("revision", tokenMessage);

View File

@@ -20,7 +20,7 @@ import org.xml.sax.helpers.DefaultHandler;
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
@@ -71,15 +71,15 @@ public class SAXLooper {
}
private void judgeIsSimple() {
if (this.loopPath.indexOf("..") >= 0 || this.loopPath.indexOf("*") >= 0) {
this.isSimpleParse = false;
}
for (int i = 0; i < nodePaths.length; i++) {
if (nodePaths[i].indexOf("..") >= 0 || nodePaths[i].indexOf("*") >= 0) {
this.isSimpleParse = false;
isSimpleParse = isSimplePath(loopPath);
for(String path : nodePaths) {
if(!isSimpleParse) {
break;
}
isSimpleParse = isSimplePath(path);
}
if (this.isSimpleParse) {
looper = new SimpleSAXLooper(loopPath, nodePaths, asXMLs);
} else {
@@ -88,30 +88,61 @@ public class SAXLooper {
}
private void judegeMultiIsSimple() {
if (this.rootPath.indexOf("..") >= 0 || this.rootPath.indexOf("*") >= 0) {
this.isSimpleParse = false;
isSimpleParse = isSimplePath(rootPath);
for(String path : arrOrigLoopPath) {
if(!isSimpleParse) {
break;
}
isSimpleParse = isSimplePath(path);
}
for (int i = 0; isSimpleParse && i < arrOrigLoopPath.length; i++) {
if (arrOrigLoopPath[i].indexOf("..") >= 0 || arrOrigLoopPath[i].indexOf("*") >= 0) {
this.isSimpleParse = false;
for(String[] arrNodePath : arrNodePaths) {
for(String path : arrNodePath) {
if(!isSimpleParse) {
break;
}
isSimpleParse = isSimplePath(path);
}
if(!isSimpleParse) {
break;
}
}
for (int i = 0; isSimpleParse && i < arrNodePaths.length; i++) {
for (int j = 0; j < arrNodePaths[i].length; j++) {
if (arrNodePaths[i][j].indexOf("..") >= 0 || arrNodePaths[i][j].indexOf("*") >= 0) {
this.isSimpleParse = false;
break;
}
}
}
this.isSimpleParse = false;
if (this.isSimpleParse) {
looper = new SimpleSAXLooper(rootPath, arrOrigLoopPath, arrNodePaths);
} else {
looper = new ComplexSAXLooper(rootPath, arrOrigLoopPath, arrNodePaths);
}
}
/**
* ../../../@attr also can read like a stream(now only consider the case)
* @param path
* @return
*/
private boolean isSimplePath(String path) {
if(path == null || !path.contains("..") && !path.contains("*")) {
return true;
}
boolean isSimplePath = true;
String[] nodes = path.split("/");
for(int i = 0;i<nodes.length;i++) {
String node = nodes[i];
if(i < (nodes.length - 1)) {
isSimplePath = isSimplePath && "..".equals(node);
} else {
isSimplePath = isSimplePath && node.startsWith("@");
}
}
return isSimplePath;
}
private String charset = "UTF-8";
@@ -156,6 +187,17 @@ public class SAXLooper {
}
}
/**
* stop the read action asap
*
*/
public void stopRead() {
if(this.isSimpleParse) {
SimpleSAXLooper ssl = (SimpleSAXLooper)this.looper;
ssl.stopRead();
}
}
public static void main(String args[]) {
try {

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -0,0 +1,35 @@
// ============================================================================
//
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.xml.sax.exception;
public class EnoughDataException extends RuntimeException {
private static final long serialVersionUID = 3652240965496042451L;
public EnoughDataException() {
super();
}
public EnoughDataException(String message, Throwable cause) {
super(message, cause);
}
public EnoughDataException(String message) {
super(message);
}
public EnoughDataException(Throwable cause) {
super(cause);
}
}

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -0,0 +1,179 @@
// ============================================================================
//
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.xml.sax.simpleparser;
import java.util.LinkedList;
import java.util.Map;
/**
* DOC Administrator class global comment. Detailled comment
*/
public class DataBufferCache2 {
// private static DataBufferCache instance = new DataBufferCache();
private long bufferSize = 5000;
private boolean isEnd = false;
private int bufferNum = 10;
private LinkedList<Buffer> buffers = new LinkedList<Buffer>();
private Buffer currentReadBuff = null;
private Buffer currentWriteBuff = null;
private DataBufferCache2() {
}
public static DataBufferCache2 getInstance() {
return new DataBufferCache2();
}
public void setIsEnd() {
synchronized (buffers) {
try {
if (!isEnd && currentWriteBuff != null) {
buffers.add(currentWriteBuff);
}
this.isEnd = true;
} finally {
this.buffers.notifyAll();
}
}
}
public void setBufferNum(int num) {
if (num <= 0)
return;
this.bufferNum = num;
}
public void setBufferSize(long size) {
if (size <= 0)
return;
this.bufferSize = size;
}
public boolean hasData() {
getCurrReadBuffer();
if (currentReadBuff == null) {
return false;
}
return this.currentReadBuff.hasNext();
}
public Map<String,Map<String,String>> readData() {
return this.currentReadBuff.Next();
}
private void getCurrReadBuffer() {
if (currentReadBuff != null && currentReadBuff.hasNext())
return;
synchronized (this.buffers) {
try {
while (!this.isEnd && buffers.size() < 1) {
try {
buffers.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
if (buffers.size() > 0) {
currentReadBuff = buffers.remove();
}
} finally {
this.buffers.notifyAll();
}
}
}
public void writeData(Map<String,Map<String,String>> map) {
if (currentWriteBuff == null) {
currentWriteBuff = new Buffer();
}
if (currentWriteBuff.size() < this.bufferSize) {
currentWriteBuff.add(map);
} else {
currentWriteBuff.add(map);
synchronized (buffers) {
try {
while (buffers.size() > bufferNum) {
try {
buffers.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
if (currentWriteBuff.size() > 0) {
this.buffers.add(currentWriteBuff);
}
currentWriteBuff = null;
} finally {
this.buffers.notifyAll();
}
}
}
}
public void notifyErrorOccurred() {
setIsEnd();
}
class Buffer {
private LinkedList<Map<String,Map<String,String>>> buffer = null;
private boolean isForRead = false; // false for write, true for read
public Buffer() {
buffer = createNewBuffer();
}
public void setIsForRead(boolean isForRead) {
this.isForRead = isForRead;
}
public boolean isForRead() {
return this.isForRead;
}
public boolean hasNext() {
return buffer.size() > 0;
}
public Map<String,Map<String,String>> Next() {
return buffer.remove();
}
public void add(Map<String,Map<String,String>> o) {
this.buffer.add(o);
}
public int size() {
return this.buffer.size();
}
public void clear() {
this.buffer.clear();
buffer = null;
}
private LinkedList<Map<String,Map<String,String>>> createNewBuffer() {
return new LinkedList<Map<String,Map<String,String>>>();
}
}
}

View File

@@ -1,144 +0,0 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.xml.sax.simpleparser;
import java.util.LinkedList;
import java.util.Map;
/**
* DOC Administrator class global comment. Detailled comment
*/
public class DataCache {
private LinkedList<Map<String, String>> cache = new LinkedList<Map<String, String>>();
private boolean isReadEnd = false;
private static DataCache instance = new DataCache();
private long bufferSize = 10000;
int startIndex = 0;
private DataCache() {
}
public static DataCache getInstance() {
if (instance == null)
instance = new DataCache();
return instance;
}
public void setBufferSize(long size) {
this.bufferSize = size;
}
public boolean isReadEnd() {
return isReadEnd;
}
public boolean hasData() {
return !(this.isReadEnd && this.cache.size() <= 0);
}
public void setReadEnd(boolean isEnd) {
synchronized (this.cache) {
this.isReadEnd = isEnd;
this.cache.notifyAll();
}
}
public Map<String, String> readData() {
Map<String, String> result = null;
synchronized (this.cache) {
if (!isReadEnd && this.cache.size() <= 0) {
try {
this.cache.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
if (cache.size() > 0)
result = this.cache.remove();
this.cache.notifyAll();
// System.out.println(result.get("@swid") + "#" + result.get("@login_date") + "#");
return result;
}
// if (cache.size() > 0) {
// result = cache.remove();
// if (this.isWriteWait) {
// synchronized (this) {
// this.notifyAll();
// }
// }
// return result;
// }
//
// while (!isReadEnd && cache.isEmpty()) {
// synchronized (this) {
// try {
// this.isReadWait = true;
// this.wait();
// result = cache.remove();
// this.isReadWait = false;
// this.notifyAll();
// return result;
// } catch (Exception ex) {
// System.err.println(ex.getMessage());
// }
// }
// }
// return result;
}
public void writeData(Map<String, String> map) {
synchronized (this.cache) {
if (this.cache.size() >= bufferSize) {
try {
this.cache.wait();
} catch (InterruptedException ex) {
System.err.println(ex.getMessage());
}
}
this.cache.add(map);
this.cache.notifyAll();
}
// if (this.cache.size() < this.bufferSize) {
// cache.add(map);
// if (this.isReadWait) {
// synchronized (this) {
// this.notifyAll();
// }
// }
// return;
// }
// while (this.cache.size() >= this.bufferSize) {
// synchronized (this) {
// try {
// this.isReadWait = true;
// this.wait();
// } catch (Exception ex) {
// System.err.println(ex.getMessage());
// }
// cache.add(map);
//
// isWriteWait = false;
//
// this.notifyAll();
// }
// }
}
}

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
@@ -17,6 +17,7 @@ import java.util.HashMap;
import java.util.Map;
import org.talend.xml.sax.EscapeEntityHelper;
import org.talend.xml.sax.exception.EnoughDataException;
import org.talend.xml.sax.simpleparser.model.XMLNode;
import org.talend.xml.sax.simpleparser.model.XMLNodes;
import org.xml.sax.Attributes;
@@ -33,6 +34,10 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
private String currentPath = "";
private DataBufferCache bufferCache = null;
private boolean stop = false;
private DataBufferCache2 multiCache;
public SimpleSAXLoopHandler(XMLNodes nodes, DataBufferCache bcache) {
super();
@@ -40,6 +45,12 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
this.bufferCache = bcache;
}
public SimpleSAXLoopHandler(XMLNodes nodes, DataBufferCache2 multiCache) {
super();
this.nodes = nodes;
this.multiCache = multiCache;
}
/*
* (non-Javadoc)
*
@@ -55,8 +66,11 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
* @see org.xml.sax.helpers.DefaultHandler#endDocument()
*/
public void endDocument() throws SAXException {
// DataCache.getInstance().setReadEnd(true);
bufferCache.setIsEnd();
if(multiCache!=null) {
multiCache.setIsEnd();
} else {
bufferCache.setIsEnd();
}
}
/*
@@ -110,6 +124,18 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
}
}
} else {//process the attribute out of the loop
int index = node.nodePath.lastIndexOf("@");
if (index > 0) {
if (currentPath.equals(node.nodePath.substring(0, index - 1))) {
String attribute = attributes.getValue(node.nodePath.substring(index + 1));
if (attribute != null) {
node.addTextValue(attribute);
} else {
node.addTextValue("");
}
}
}
}
}
}
@@ -170,14 +196,18 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
Map<String, String> map = new HashMap<String, String>();
for (XMLNode node : nodes.getNodesCollection()) {
map.put(node.originPath, node.getTextValue());
// ---------------------------------------------
// System.out.print("" + node.getTextValue() + "#");
// ---------------------------------------------
}
bufferCache.writeData(map);
// System.out.println();
if(multiCache!=null) {
HashMap<String, Map<String, String>> row = new HashMap<String, Map<String, String>>(1);
row.put(nodes.getOriginalLoopPath(), map);
multiCache.writeData(row);
} else {
bufferCache.writeData(map);
}
if (stop) {
throw new EnoughDataException("Get enough data,now stop the xml parse action");
}
}
nodes.resetAll();
}
@@ -222,5 +252,12 @@ public class SimpleSAXLoopHandler extends DefaultHandler2 {
}
}
/**
* stop the read action asap
*/
public void stopRead() {
stop = true;
}
}

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
@@ -13,7 +13,9 @@
package org.talend.xml.sax.simpleparser;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
@@ -21,6 +23,7 @@ import java.util.concurrent.FutureTask;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.talend.xml.sax.SAXLoopCompositeHandler;
import org.talend.xml.sax.commons.ISAXLooper;
import org.talend.xml.sax.io.UnicodeReader;
import org.talend.xml.sax.simpleparser.model.XMLNode;
@@ -35,6 +38,8 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
private XMLNodes nodes = new XMLNodes();
private DataBufferCache bcache;
private DataBufferCache2 multiCache;
private Thread task;
@@ -42,6 +47,16 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
private boolean ignoreDTD = false;
SimpleSAXLoopHandler hd = null;
private String[] arrOrigLoopPath;
private String rootPath;
private String[] arrLoopPath;
private List<XMLNodes> nodesList = new ArrayList<XMLNodes>();
public SimpleSAXLooper(String loopPath, String[] nodePaths, boolean[] asXMLs) {
futureTask = new FutureTask(this);
task = new Thread(futureTask);
@@ -52,7 +67,53 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
}
public SimpleSAXLooper(String rootPath, String[] arrLoopPath, String[][] arrNodePaths) {
futureTask = new FutureTask(this);
task = new Thread(futureTask);
this.arrOrigLoopPath = arrLoopPath;
String tmpRootPath = rootPath;
if (tmpRootPath.endsWith("/")) {
tmpRootPath = tmpRootPath.substring(0, tmpRootPath.length() - 1);
}
this.rootPath = tmpRootPath;
this.arrLoopPath = getLoopPaths(arrLoopPath);
for(int j = 0;j<arrNodePaths.length;j++) {
String[] nodePaths = arrNodePaths[j];
XMLNodes ns = new XMLNodes();
for (int i = 0; i < nodePaths.length; i++) {
ns.addNode(new XMLNode(this.arrOrigLoopPath[j], this.arrLoopPath[j],nodePaths[i], null));
}
nodesList.add(ns);
}
initLoopEntries();
}
private String[] getLoopPaths(String[] arrLoops) {
String[] loopPaths = new String[arrLoops.length];
for (int i = 0; i < arrLoops.length; i++) {
String column = arrLoops[i];
String resultCol = this.rootPath;
String[] splits = column.split("/");
for (String tmp : splits) {
if (tmp.equals("..")) {
resultCol = resultCol.substring(0, resultCol.lastIndexOf("/"));
} else if (tmp.equals(".")) {
} else if (!("").equals(tmp)) {
resultCol += "/" + tmp;
}
}
loopPaths[i] = resultCol;
}
return loopPaths;
}
/**
@@ -74,7 +135,10 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
String resultCol = node.loopPath;
String[] splits = column.split("/");
for (String tmp : splits) {
if (tmp.equals(".")) {
if (tmp.equals("..")) {
resultCol = resultCol.substring(0, resultCol.lastIndexOf("/"));
node.setAttrOutOfLoop(true);
} else if (tmp.equals(".")) {
node.isDot = true;
} else {
resultCol += "/" + tmp;
@@ -85,7 +149,30 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
}
private void initLoopEntries() {
multiCache = DataBufferCache2.getInstance();
for(XMLNodes ns : nodesList) {
for (XMLNode node : ns.getNodes().values()) {
String column = node.originPath;
String resultCol = node.loopPath;
String[] splits = column.split("/");
for (String tmp : splits) {
if (tmp.equals("..")) {
resultCol = resultCol.substring(0, resultCol.lastIndexOf("/"));
node.setAttrOutOfLoop(true);
} else if (tmp.equals(".")) {
node.isDot = true;
} else {
resultCol += "/" + tmp;
}
}
node.nodePath = resultCol;
}
}
}
/**
@@ -116,7 +203,19 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
public Object call() throws Exception {
Reader reader = null;
try {
DefaultHandler hd = new SimpleSAXLoopHandler(nodes, bcache);
DefaultHandler handler = null;
if(nodesList.size() > 0) {
SAXLoopCompositeHandler chd = new SAXLoopCompositeHandler();
for(int i=0;i<nodesList.size();i++) {
XMLNodes ns = nodesList.get(i);
chd.register(new SimpleSAXLoopHandler(ns, multiCache));
}
handler = chd;
} else {
hd = new SimpleSAXLoopHandler(nodes, bcache);
handler = hd;
}
SAXParser saxParser = null;
if(!ignoreDTD) { //orginal code
saxParser = SAXParserFactory.newInstance().newSAXParser();
@@ -125,16 +224,16 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
spf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
saxParser = spf.newSAXParser();
}
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", hd);
saxParser.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
if (fileURL != null) {
// routines.system.UnicodeReader.java is used to ignore the BOM of the source file.
reader = new UnicodeReader(new java.io.FileInputStream(fileURL),this.charset);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(reader);
saxParser.parse(inSource, hd);
saxParser.parse(inSource, handler);
} else {
reader = new UnicodeReader(is,this.charset);
org.xml.sax.InputSource inSource = new org.xml.sax.InputSource(reader);
saxParser.parse(inSource, hd);
saxParser.parse(inSource, handler);
}
} finally {
try {
@@ -142,7 +241,13 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
reader.close();
}
} finally {
bcache.notifyErrorOccurred();
if(multiCache!=null) {
multiCache.notifyErrorOccurred();
}
if(bcache!=null) {
bcache.notifyErrorOccurred();
}
}
}
return null;
@@ -202,8 +307,7 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
* @see org.talend.xml.sax.commons.ISAXLooper#multiIterator()
*/
public Iterator<Map<String, Map<String, String>>> multiIterator() {
// TODO Auto-generated method stub
return null;
return new SimpleSAXMultiLoopIterator(multiCache);
}
public void setIgnoreDTD(boolean ignoreDTD) {
@@ -212,4 +316,10 @@ public class SimpleSAXLooper implements ISAXLooper,Callable {
}
public void stopRead() {
if(hd != null) {
hd.stopRead();
}
}
}

View File

@@ -0,0 +1,26 @@
package org.talend.xml.sax.simpleparser;
import java.util.Iterator;
import java.util.Map;
public class SimpleSAXMultiLoopIterator implements Iterator<Map<String, Map<String, String>>> {
private DataBufferCache2 cache;
public SimpleSAXMultiLoopIterator(DataBufferCache2 bcache) {
this.cache = bcache;
}
public boolean hasNext() {
return cache.hasData();
}
public Map<String,Map<String, String>> next() {
return cache.readData();
}
public void remove() {
throw new UnsupportedOperationException();
}
}

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
@@ -23,6 +23,8 @@ public class XMLNode {
public boolean outputText = false;
public String originLoopPath;
public String loopPath;
public String nodePath;
@@ -32,6 +34,14 @@ public class XMLNode {
public boolean isAsXML = false;
public boolean isDot = false;
private boolean isAttrOutOfLoop = false;
private String attrValueOutOfLoop = "";
public void setAttrOutOfLoop(boolean isAttrOutOfLoop) {
this.isAttrOutOfLoop = isAttrOutOfLoop;
}
private StringBuffer value = new StringBuffer();
private boolean isNullValue = true;
@@ -51,8 +61,18 @@ public class XMLNode {
public XMLNode(String loopPath, String originPath, String nodePath) {
this(loopPath, originPath, nodePath, false, false);
}
public XMLNode(String originLoopPath,String loopPath, String originPath, String nodePath) {
this(loopPath, originPath, nodePath, false, false);
this.originLoopPath = originLoopPath;
}
public void addTextValue(String appendValue) {
if(isAttrOutOfLoop) {
attrValueOutOfLoop = appendValue;
return;
}
isNullValue = false;
if (appendValue != null) {
@@ -61,11 +81,19 @@ public class XMLNode {
}
public String getTextValue() {
if(isAttrOutOfLoop) {
return attrValueOutOfLoop;
}
if(isNullValue) return null;
return value.toString();
}
public void resetValue() {
if(isAttrOutOfLoop) {
return;
}
isNullValue = true;
value.setLength(0);
}

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
@@ -24,7 +24,9 @@ public class XMLNodes {
private Map<String, XMLNode> nodes = new HashMap<String, XMLNode>();
private String loopPath = null;
private String originLoopPath = null;
public void addNode(XMLNode node) {
if (node != null) {
nodes.put(node.originPath, node);
@@ -72,4 +74,22 @@ public class XMLNodes {
return nodes.size();
}
/**
* DOC talend2 Comment method "getOriginalLoopPath".
* @return
*/
public String getOriginalLoopPath() {
if (this.originLoopPath != null)
return this.originLoopPath;
for (XMLNode node : nodes.values()) {
if (node.originLoopPath != null) {
this.originLoopPath = node.originLoopPath;
return node.originLoopPath;
}
}
return null;
}
}

View File

@@ -1,6 +1,6 @@
// ============================================================================
//
// Copyright (C) 2006-2012 Talend Inc. - www.talend.com
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
@@ -142,22 +142,17 @@ public class FileCopy {
if (position + MAP_SIZE >= size) {
buf = in.map(FileChannel.MapMode.READ_ONLY, position, size - position);
out.write(buf);
if (delSrc) {
// here must clean first, or it can't delete
clean(buf);
}
//For But TDI-26493, here must clean first, or it can't delete
clean(buf);
break;
} else {
buf = in.map(FileChannel.MapMode.READ_ONLY, position, MAP_SIZE);
out.write(buf);
if (delSrc) {
// here must clean first, or it can't delete
clean(buf);
}
// here must clean first, or it can't delete
clean(buf);
position += MAP_SIZE;
}
}
in.close();
out.close();

View File

@@ -22,10 +22,8 @@ import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
@@ -33,6 +31,7 @@ import org.jdom.input.DOMBuilder;
import org.jdom.output.XMLOutputter;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
public class SOAPUtil {
@@ -170,15 +169,15 @@ public class SOAPUtil {
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.newDocument();
Element element;
Node content;
Element headerRootElem = document.createElement("Header");
Iterator childElements = header.getChildElements();
org.w3c.dom.Node domNode = null;
while (childElements.hasNext()) {
domNode = (org.w3c.dom.Node) childElements.next();
element = (Element) document.importNode(domNode, true);
headerRootElem.appendChild(element);
content = (Node) document.importNode(domNode, true);
headerRootElem.appendChild(content);
}
document.appendChild(headerRootElem);
return document;

View File

@@ -88,6 +88,7 @@ public class Client {
public Client(String endpoint, String secretKey, String clientAccessID) throws ServiceException, MalformedURLException {
// 1. change the endpoint.
MktMktowsApiService service = new MktMktowsApiServiceLocator();
((MktMktowsApiServiceLocator)service).setMktowsApiSoapPortEndpointAddress(endpoint);
URL portAddress = new URL(endpoint);
stub = service.getMktowsApiSoapPort(portAddress);
// 2.assign secretKey and clientAccessID

View File

@@ -18,6 +18,7 @@ import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.apache.poi.ss.usermodel.FormulaEvaluator;
public class ExcelTool {
@@ -220,7 +221,7 @@ public class ExcelTool {
}
private CellStyle getPreCellStyle() {
if (isAbsY && keepCellFormat) {
if (preSheet!=null && isAbsY && keepCellFormat) {
CellStyle preCellStyle =null;
if (preCell == null) {
preCellStyle = preSheet.getColumnStyle(curCell.getColumnIndex());
@@ -258,6 +259,11 @@ public class ExcelTool {
curCell.setCellValue(stringValue);
curCell.setCellStyle(getNormalCellStyle());
}
public void addCellNullValue() {
addCell();
curCell.setCellStyle(getNormalCellStyle());
}
public void setColAutoSize(int colNum) {
sheet.autoSizeColumn(startX + colNum, true);
@@ -280,10 +286,27 @@ public class ExcelTool {
}
}
FileOutputStream fileOutput = new FileOutputStream(fileName);
if(appendWorkbook && appendSheet){
evaluateFormulaCell();
}
wb.write(fileOutput);
fileOutput.close();
}
public void evaluateFormulaCell(){
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
for(int sheetNum = 0; sheetNum < wb.getNumberOfSheets(); sheetNum++) {
sheet = wb.getSheetAt(sheetNum);
for(Row r : sheet) {
for(Cell c : r) {
if(c.getCellType() == Cell.CELL_TYPE_FORMULA) {
evaluator.evaluateFormulaCell(c);
}
}
}
}
}
public void flushRowInMemory() throws Exception{
if (wb instanceof SXSSFWorkbook) {
((SXSSFSheet) sheet).flushRows();

View File

@@ -2,7 +2,7 @@
//
// Talend Community Edition
//
// Copyright (C) 2006-2012 Talend - www.talend.com
// Copyright (C) 2006-2013 Talend - www.talend.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@ -565,6 +565,14 @@ public class TOSDelimitedReader {
if (readCount < maxReadLength) {
if (readCount == -1) {
streamEndMeet = true;
} else {
if(inputStream.markSupported()) {
inputStream.mark(1);
if(inputStream.read() == -1) {
streamEndMeet = true;
}
inputStream.reset();
}
}
}

View File

@@ -0,0 +1 @@
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

View File

@@ -0,0 +1,3 @@
CLOSE.NAME=\u5173\u95ed\u8fde\u63a5
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

View File

@@ -0,0 +1,14 @@
DBNAME.NAME=\u6570\u636e\u5e93
ENCODING.NAME=\u7f16\u7801
HOST.NAME=\u4e3b\u673a
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
NB_LINE.NAME=\u884c\u6570
NULL_CHAR.NAME=Null\u5b57\u7b26
PASS.NAME=\u5bc6\u7801
PORT.NAME=\u7aef\u53e3
USER.NAME=\u7528\u6237\u540D
DB_VERSION.NAME=\u6570\u636e\u5e93\u7248\u672c
SHARED_CONNECTION_NAME.NAME=\u5171\u4EAB\u6570\u636E\u5E93\u8FDE\u63A5\u540D
AUTO_COMMIT.NAME=\u81EA\u52A8\u63D0\u4EA4
TYPE.NAME=\u6570\u636e\u5e93\u9a71\u52a8
PROPERTY.NAME=\u5c5e\u6027\u7c7b\u578b

View File

@@ -0,0 +1,19 @@
DBNAME.NAME=\u6570\u636e\u5e93
HOST.NAME=\u4e3b\u673a
LONG_NAME=\u521B\u5EFA\u4E00\u4E2A\u6C38\u4E0D\u505C\u6B62\u7684\u5FAA\u73AF
PASS.NAME=\u5bc6\u7801
QUERY.NAME=\u67e5\u8be2
QUERYSTORE.NAME=\u67e5\u8be2\u7c7b\u578b
SCHEMA_DB.NAME=\u67B6\u6784
USER.NAME=\u7528\u6237\u540D
USE_EXISTING_CONNECTION.NAME=\u5E94\u7528\u5DF2\u5B58\u5728\u7684\u8FDE\u63A5
TRIM_COLUMN.ITEM.TRIM=\u6574\u7406\u7A7A\u683C
TABLE.NAME=\u8868
DB_VERSION.NAME=\u6570\u636e\u5e93\u7248\u672c
GUESS_SCHEMA.NAME=\u8BA1\u7B97schema
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868
PROPERTY.NAME=\u5c5e\u6027\u7c7b\u578b
TYPE.NAME=\u6570\u636e\u5e93\u9a71\u52a8
SCHEMA.NAME=\u67B6\u6784
ENCODING.NAME=\u7f16\u7801
MAPPING.NAME=\u6620\u5c04

View File

@@ -0,0 +1,2 @@
SCHEMA.NAME=\u67B6\u6784
CONNECTION.NAME=\u7ec4\u4ef6\u5217\u8868

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