Content assistant is also available via @NamedQuery annotation. If it makes no difference for you to store configuration in XML file or using annotations over Entity class, then you can take advantage of the latter. As soon as you begin editing 'query' element of a @NamedQuery, the same content assistant is available as in JPA Details / Queries. It gives you plenty of space; however, since it's a String constant defined in Java code, you'll have to deal with extra quotes and concatenation in case of query split into multiple lines. At the same time, you will be able to review this query in JPA Details view.
As for JPA Details view, I doubt if this Query editbox is configurable, unless modifying plug-in sources and rebuilding.
EDIT In response to comment (3),- here's a 'direction':
- JPA Details view along with panels/panes defined in org.eclipse.jpt.jpa.ui plug-in
- Named Query edit views are defined in classes
NamedQueryPropertyComposite and NamedQueryProperty2_0Composite for JPA v1 and JPA v2 accordingly.
the code fragment that adjusts named query editor box to 4 lines, looks as following:
adjustMultiLineTextLayout(
4,
provider.getStyledText(),
provider.getStyledText().getLineHeight()
);
.. where 4 is line count.
The sources are found here: :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools (not sure which specific Eclipse version they are targeted on, but this is definitely newer than what comes with Indigo).