Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 115743

Summary: [typing] Commenting folded code block and few other actions break the source
Product: [Eclipse Project] JDT Reporter: Eugene Kuleshov <ekuleshov>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Eugene Kuleshov CLA 2005-11-09 22:34:48 EST
When Ctrl-/ shortcut is used in Java editor on a line that is representing a
folded block without explicitly selecting this line the only first line of
folded block gets commented. 

Similar situation happens for Alt-Up and Alt-Down shortcuts.

It would be more natural to implicitly select the entire block on these actions,
so its content won't be broken.
Comment 1 Tom Hofmann CLA 2005-11-10 06:31:09 EST
Agreed. Line-based actions should always consider the entire line range covered
by a folded line:

- comment line
- move/copy line
- shift
- correct indentation

The action would probably expand the folded region... not sure though.
Comment 2 Eugene Kuleshov CLA 2005-11-10 16:00:08 EST
Please don't expand the region, it may not fit to the screen.
Comment 3 Eclipse Genie CLA 2020-03-26 18:35:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.