Community
Participate
Working Groups
Now that bug 259281 is fixed, editing multi-line environment variables does not play well (in a single line text widget).
Perhaps the edit dialog could adjust to a multi-line text widget when there are newlines in the text.
Hi Darin, currently I'm working on this bug and would like to discuss 2 scenarios: - User editing a single line environment variable. Should he/she be able to enter a new line? (create a new multi-line environment variable) - User adding a new environment variable. As above - should he/she be able to enter a new line and thus create a new multi-lined environment variable? In my opinion not, since it's rather a rare scenario, plus doing so, would break the current user experience: pressing enter would cause a new line, enter + shift - approving the changes. Right now by pressing enter we approve the changes. On the other hand, if decided to swap those combinations (enter approve, enter + shift a new line) to maintain the current behaviour, we would break the general eclipse behaviour for multi-lined text widgets. I would like to see what others think about it.
Created attachment 209509 [details] Proposed patch for the bug. Attached patch contains a proposed solution: if the variable that is being edited contains new lines, it creates a multiline Text widget with a scrollbar.
(In reply to comment #2) > I would like to see what others think about it. I agree with you that we should not allow users to create new multi-line variables, but we should support allowing them to edit them.
Created attachment 209692 [details] update This is an updated patch that fixes the compile error (using 1.5 code in a 1.4 bundle). I will have to test the fix on my Linux machine as Windows seem to strip out newline chars from env entries.
Created attachment 209701 [details] UI update Tested on Linux, fix works as expected. This patch just polish's the UI a bit.
pushed patch to master, thanks Jan. http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=960c355261b433b7fbf35a96e8d9bf09cb851142
Verified with I20120123-2200