Bug 191359 - [projection] Folding hides multi-line field declarations
Summary: [projection] Folding hides multi-line field declarations
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 16:41 EDT by Missing name Mising name CLA
Modified: 2022-10-27 13:03 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot with missing code and folding control (1.81 KB, image/png)
2007-06-07 14:42 EDT, Missing name Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name Mising name CLA 2007-06-06 16:41:41 EDT
3.3RC2 I20070525-1350

public class A {
	// Numbers
	int one, two, three, four, five, six, seven, eight, nine, ten, eleven,
			twelve, thirteen, fourteen, fifteen;
}

Configuration:

 - Enable Java folding.
 - Have all element types folded by default.
 - Using the Eclipse [built-in] code formatter.
 
Steps:

1. Paste the above code as a new class file.
2. Format the code (in case Bugzilla has reformatted it).
3. Close and reopen the file.
   -> The variable declarations are not visible.
   -> Line numbers (if visible) show 1, 2, 5.
   -> No fold marks (+/-) are visible in the margin.
4. Select each variable in turn from the Outline view.
   -> Each highlights the third visible line (}).
      
There is no obvious way to access the first fifteen fields in the editor.  (This is possible with the Folding -> Expand All option, though to a casual user this isn't immediately obvious as a folding issue).

Variant:
 - Without the comment line
   -> The declarations vanish but reappear when selecting a
      field node.
Comment 1 Dani Megert CLA 2007-06-07 03:11:38 EDT
>There is no obvious way to access the first fifteen fields in the editor. 
Hit the + on the left side.

Same bug in 3.2.x. Might have been introduced by fix for 60688.
Comment 2 Missing name Mising name CLA 2007-06-07 14:42:03 EDT
Created attachment 70544 [details]
Screenshot with missing code and folding control

> Hit the + on the left side.

There is no + in the margin - see attached screenshot.
Comment 3 Missing name Mising name CLA 2007-06-07 14:49:53 EDT
Perhaps the + is there, but on line 3 - which is hidden.
Comment 4 Eclipse Genie CLA 2020-07-11 01:49:16 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.

If you have further information on the current state of the bug, please add it. 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.
Comment 5 Jeff Johnston CLA 2020-07-11 20:36:09 EDT
This bug still occurs in latest Eclipse and also occurs on Linux.  Removing stalebug keyword.
Comment 6 Jeff Johnston CLA 2020-07-13 14:40:57 EDT
(In reply to Jeff Johnston from comment #5)
> This bug still occurs in latest Eclipse and also occurs on Linux.  Removing
> stalebug keyword.

Replacing stalebug keyword as it still applies.
Comment 7 Eclipse Genie CLA 2022-10-27 13:03:39 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.

If you have further information on the current state of the bug, please add it. 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.