imports inside tJavaRow

One Star

imports inside tJavaRow

How can I import a java package inside a tJavaRow component? I am aware that I can use the fully qualified name of the class I wish to use, but the code becomes a mess and unreadable very quickly.
But clearly, simply writing "import java.util.regex" for example won't work as the import statement is written right in the middle of the java-code.
Employee

Re: imports inside tJavaRow

Hello,
This is not available yet.
You can try to open a new feature request on our bugtracker.
Regards,
One Star

Re: imports inside tJavaRow

done
One Star

Re: imports inside tJavaRow

Any chance this feature has been implemented yet?
Employee

Re: imports inside tJavaRow

Hello,
You can monitor 2812
Regards,
Community Manager

Re: imports inside tJavaRow

Hello exhuma
You can create a new routine for your code and import a Java package in this routine, then use this routine in tJavaRow.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog