Community
Participate
Working Groups
Build Identifier: CVS, 16.04.2011 Initially, the idea comes from: https://bugs.eclipse.org/bugs/show_bug.cgi?id=77730#c3 I think that it's very useful, because that behavior will save a user operation. Reproducible: Always Steps to Reproduce: To reproduce, just paste a stack trace in the initialized stack trace console. The initial console message will remain.
Created attachment 193410 [details] possible fix The attached fix is based on DocumentListener, which is added on the first initialization and removed after the first usage.
Fixed as part of the debug patch day. Thanks for the contribution! http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=07c5f52b120128c0562ef7dc7ed2aed8388a2e68
Verified in: Version: 4.3.0 Build id: I20121210-2000
There a corner case which is now broken, see bug 396734.
None of the fixes proposed here or in bug 396734 have been satisfactory. At this point I can't put more time into debugging the console document adapter for this trivial feature. Hopefully someone from the community can make an attempt at a better fix. Reverted fix: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=1ddf9e9d7369dfd82cf95476a6744906c6bc48d2
does not work with 4.3M6
(In reply to comment #6) > does not work with 4.3M6 Please read comment 5.
New Gerrit change created: https://git.eclipse.org/r/141483
(In reply to Eclipse Genie from comment #8) > New Gerrit change created: https://git.eclipse.org/r/141483 This change implements the initial clear including a bunch of test cases. If stack trace console is loaded with initial default content the first user edit will be modified as if user selected the initial content before typing, pasting, whatever. A programmatically content change before first user edit is recognized and the content will not cleaned on following user edits. If content was explicit set and this content is equal to the default content it will not be removed on first user edit. I.e. cleaning depends on how content was set not on actual content.
Gerrit change https://git.eclipse.org/r/141483 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=4a46acd98b93107350796f50c41cc03a5cc7035d
Thanks Paul! Please add a N&N entry for this.
(In reply to Sarika Sinha from comment #11) > Thanks Paul! Please add a N&N entry for this. @Paul! N&N needs to go by Wendnesday may 22nd.
New Gerrit change created: https://git.eclipse.org/r/142419
Gerrit change https://git.eclipse.org/r/142419 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=161442a88b05dc90a5ab49147d21c077198f8fa0
Verified using Build id: I20190520-1805.