When opening files with deeply nested code (and urls
in comments) the text of a Java program can easily go
beyond view limits.
Supporting line wrapping in the definitions pane of
DrJava would make viewing that code easier.
An easy conceptual model of line wrapping is to think
of them as making the code be a 3-dimensional entity,
rather than the 2-dimensional one. Code, stored
typically in a file, is 1-dimensional (can be accessed
using 1 number: byteoffset). "Newline" characters make
it 2-dimensional (characters accessed using line
number and column). "Long" lines (with length longer
the user-defined limit, say 80) make it 3D. This third-
dimension would be used only for display purposes. The
compiler does need to be aware of it. It also changes
dynamically according to the width of the current
user's view width, and can be disabled/enabled.
(Getting this to work with the earlier feature I
requested (Collapse/Expand Code) may be challenging,
so probably both would be allowed at the same time).
TextPad, and many text editors, offer a similar
capability for the sort of line wrapping I'm looking
for in DrJava.
(This is somewhat similar to, but more general than,
feature request #1008787)
Logged In: YES
user_id=666678
Originator: NO
This shouldn't be too hard to do. It wouldn't surprise me if Swing has support for this built-in.