The EclipsePasteAsJavaString plug-in allows you to insert text as a Java string by Ctrl + Shift + V
Example
Paste as usual via Ctrl+V:
some text with tabs
and new
lines
Paste as Java string via Ctrl+Shift+V
"some text\twith tabs\r\n" +
"and new \r\n" +
"lines"