[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-debug-dev] Changing variable values
|
http://bugs.eclipse.org/bugs/show_bug.cgi?id=17491
For this bug report, I changed the variables view to replace control
characters like newline with their two-character equivalent. For example,
newlines are displayed as "\n". This solves the problem of displaying
multi-line strings in a single line text field.
However, this is still a problem when modifying variable values.
There are two options here. We can display the modified text in the editor
text field. This would maintain consistency for the user. If they want a
newline in their string, they'd have to enter "\n" instead of hitting return.
However, this is inconvenient and I imagine it would be very unwieldy if you
were trying to edit a large string, such as the contents of a document.
Another problem with this approach is that we'd have to manage the case where
the user types a control character by either replacing it automatically or
ignoring the keystroke.
The other option is to get rid of the inline editor and pop up a dialog with
a multi-line text field. We could display the text unaltered in this field,
which would make it easier for the user to enter the text they want and
should also be better for large strings. I favor this approach
Thoughts?
- Jared